git.iko.soy/typeable/nixpkgs
on master help sign in
ocamlPackages.zarith: 1.7 -> 1.8
commit1c84236afb6e5c1285112fb1e71539f3ca89ab27 authorVincent Laporte <Vincent.Laporte@gmail.com> dateWed 3 Apr 2019, 09:34 (8 years ago) parentb5c224d
1 file changed+7−12
pkgs/development/ocaml-modules/zarith/default.nix+7−12
pkgs/development/ocaml-modules/zarith/default.nix+7−12
@@ -1,4 +1,4 @@
1−{ stdenv, buildOcaml, fetchurl
1+{ stdenv, fetchurl
22, ocaml, findlib, pkgconfig, perl
33, gmp
44}:
@@ -6,9 +6,9 @@
66let source =
77 if stdenv.lib.versionAtLeast ocaml.version "4.02"
88 then {
9− version = "1.7";
10− url = https://github.com/ocaml/Zarith/archive/release-1.7.tar.gz;
11− sha256 = "0fmblap5nsbqq0dab63d6b7lsxpc3snkgz7jfldi2qa4s1kbnhfn";
9+ version = "1.8";
10+ url = https://github.com/ocaml/Zarith/archive/release-1.8.tar.gz;
11+ sha256 = "1cn63c97aij19nrw5hc1zh1jpnbsdkzq99zyyk649c4s3xi3iqq7";
1212 } else {
1313 version = "1.3";
1414 url = http://forge.ocamlcore.org/frs/download.php/1471/zarith-1.3.tgz;
@@ -16,25 +16,20 @@ let source =
1616 };
1717in
1818
19−buildOcaml rec {
20− name = "zarith";
19+stdenv.mkDerivation rec {
20+ name = "ocaml${ocaml.version}-zarith-${version}";
2121 inherit (source) version;
2222 src = fetchurl { inherit (source) url sha256; };
2323
24− minimumSupportedOcamlVersion = "3.12.1";
25−
2624 nativeBuildInputs = [ pkgconfig ];
2725 buildInputs = [ ocaml findlib perl ];
2826 propagatedBuildInputs = [ gmp ];
2927
30− # needed so setup-hook.sh sets CAML_LD_LIBRARY_PATH for dllzarith.so
31− hasSharedObjects = true;
32−
3328 patchPhase = "patchShebangs ./z_pp.pl";
3429 configurePhase = ''
3530 ./configure -installdir $out/lib/ocaml/${ocaml.version}/site-lib
3631 '';
37− preInstall = "mkdir -p $out/lib/ocaml/${ocaml.version}/site-lib";
32+ createFindlibDestdir = true;
3833
3934 meta = with stdenv.lib; {
4035 description = "Fast, arbitrary precision OCaml integers";