mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 02:06:46 +01:00
37 lines
998 B
Nix
37 lines
998 B
Nix
{ lib, stdenv, fetchurl, ocaml, findlib, ocamlbuild, topkg, uchar, uutf, cmdliner }:
|
|
let
|
|
pname = "uunf";
|
|
webpage = "https://erratique.ch/software/${pname}";
|
|
version = "14.0.0";
|
|
in
|
|
|
|
if !lib.versionAtLeast ocaml.version "4.03"
|
|
then throw "${pname} is not available for OCaml ${ocaml.version}"
|
|
else
|
|
|
|
stdenv.mkDerivation {
|
|
name = "ocaml${ocaml.version}-${pname}-${version}";
|
|
inherit version;
|
|
|
|
src = fetchurl {
|
|
url = "${webpage}/releases/${pname}-${version}.tbz";
|
|
sha256 = "sha256:17wv0nm3vvwcbzb1b09akw8jblmigyhbfmh1sy9lkb5756ni94a2";
|
|
};
|
|
|
|
buildInputs = [ ocaml findlib ocamlbuild topkg uutf cmdliner ];
|
|
|
|
propagatedBuildInputs = [ uchar ];
|
|
|
|
prePatch = lib.optionalString stdenv.isAarch64 "ulimit -s 16384";
|
|
|
|
inherit (topkg) buildPhase installPhase;
|
|
|
|
meta = with lib; {
|
|
description = "An OCaml module for normalizing Unicode text";
|
|
homepage = webpage;
|
|
inherit (ocaml.meta) platforms;
|
|
license = licenses.bsd3;
|
|
maintainers = [ maintainers.vbgl ];
|
|
};
|
|
}
|