mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 23:13:19 +00:00
ocamlPackages.uunf: 15.0.0 → 15.1.0
This commit is contained in:
parent
12f69cd485
commit
cec13baa2d
@ -1,11 +1,15 @@
|
|||||||
{ lib, stdenv, fetchurl, ocaml, findlib, ocamlbuild, topkg, uchar, uutf, cmdliner
|
{ lib, stdenv, fetchurl, ocaml, findlib, ocamlbuild, topkg, uutf, cmdliner
|
||||||
, cmdlinerSupport ? lib.versionAtLeast cmdliner.version "1.1"
|
, cmdlinerSupport ? lib.versionAtLeast cmdliner.version "1.1"
|
||||||
|
, version ? if lib.versionAtLeast ocaml.version "4.14" then "15.1.0" else "15.0.0"
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
pname = "uunf";
|
pname = "uunf";
|
||||||
webpage = "https://erratique.ch/software/${pname}";
|
webpage = "https://erratique.ch/software/${pname}";
|
||||||
version = "15.0.0";
|
hash = {
|
||||||
|
"15.0.0" = "sha256-B/prPAwfqS8ZPS3fyDDIzXWRbKofwOCyCfwvh9veuug=";
|
||||||
|
"15.1.0" = "sha256-D8yvb7hVWaYxMqMZ5089/5tWDfvyGXKUOjhfU/4zSeQ=";
|
||||||
|
}."${version}";
|
||||||
in
|
in
|
||||||
|
|
||||||
if lib.versionOlder ocaml.version "4.03"
|
if lib.versionOlder ocaml.version "4.03"
|
||||||
@ -18,15 +22,13 @@ stdenv.mkDerivation {
|
|||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "${webpage}/releases/${pname}-${version}.tbz";
|
url = "${webpage}/releases/${pname}-${version}.tbz";
|
||||||
sha256 = "sha256-B/prPAwfqS8ZPS3fyDDIzXWRbKofwOCyCfwvh9veuug=";
|
inherit hash;
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ ocaml findlib ocamlbuild topkg ];
|
nativeBuildInputs = [ ocaml findlib ocamlbuild topkg ];
|
||||||
buildInputs = [ topkg uutf ]
|
buildInputs = [ topkg uutf ]
|
||||||
++ lib.optional cmdlinerSupport cmdliner;
|
++ lib.optional cmdlinerSupport cmdliner;
|
||||||
|
|
||||||
propagatedBuildInputs = [ uchar ];
|
|
||||||
|
|
||||||
strictDeps = true;
|
strictDeps = true;
|
||||||
|
|
||||||
prePatch = lib.optionalString stdenv.isAarch64 "ulimit -s 16384";
|
prePatch = lib.optionalString stdenv.isAarch64 "ulimit -s 16384";
|
||||||
|
Loading…
Reference in New Issue
Block a user