ocamlPackages.uunf: 14.0.0 → 15.0.0
This commit is contained in:
parent
333d0ec1d3
commit
e2420ef939
|
@ -1,8 +1,11 @@
|
||||||
{ lib, stdenv, fetchurl, ocaml, findlib, ocamlbuild, topkg, uchar, uutf, cmdliner }:
|
{ lib, stdenv, fetchurl, ocaml, findlib, ocamlbuild, topkg, uchar, uutf, cmdliner
|
||||||
|
, cmdlinerSupport ? lib.versionAtLeast cmdliner.version "1.1"
|
||||||
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
pname = "uunf";
|
pname = "uunf";
|
||||||
webpage = "https://erratique.ch/software/${pname}";
|
webpage = "https://erratique.ch/software/${pname}";
|
||||||
version = "14.0.0";
|
version = "15.0.0";
|
||||||
in
|
in
|
||||||
|
|
||||||
if lib.versionOlder ocaml.version "4.03"
|
if lib.versionOlder ocaml.version "4.03"
|
||||||
|
@ -15,11 +18,12 @@ stdenv.mkDerivation {
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "${webpage}/releases/${pname}-${version}.tbz";
|
url = "${webpage}/releases/${pname}-${version}.tbz";
|
||||||
sha256 = "sha256:17wv0nm3vvwcbzb1b09akw8jblmigyhbfmh1sy9lkb5756ni94a2";
|
sha256 = "sha256-B/prPAwfqS8ZPS3fyDDIzXWRbKofwOCyCfwvh9veuug=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ ocaml findlib ocamlbuild topkg ];
|
nativeBuildInputs = [ ocaml findlib ocamlbuild topkg ];
|
||||||
buildInputs = [ topkg uutf cmdliner ];
|
buildInputs = [ topkg uutf ]
|
||||||
|
++ lib.optional cmdlinerSupport cmdliner;
|
||||||
|
|
||||||
propagatedBuildInputs = [ uchar ];
|
propagatedBuildInputs = [ uchar ];
|
||||||
|
|
||||||
|
@ -27,7 +31,15 @@ stdenv.mkDerivation {
|
||||||
|
|
||||||
prePatch = lib.optionalString stdenv.isAarch64 "ulimit -s 16384";
|
prePatch = lib.optionalString stdenv.isAarch64 "ulimit -s 16384";
|
||||||
|
|
||||||
inherit (topkg) buildPhase installPhase;
|
buildPhase = ''
|
||||||
|
runHook preBuild
|
||||||
|
${topkg.run} build \
|
||||||
|
--with-uutf true \
|
||||||
|
--with-cmdliner ${lib.boolToString cmdlinerSupport}
|
||||||
|
runHook postBuild
|
||||||
|
'';
|
||||||
|
|
||||||
|
inherit (topkg) installPhase;
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "An OCaml module for normalizing Unicode text";
|
description = "An OCaml module for normalizing Unicode text";
|
||||||
|
|
Loading…
Reference in a new issue