Merge pull request #60094 from thoughtpolice/nixpkgs/zarith-fixes
ocamlPackages: fix regression in zarith-dependent libraries
This commit is contained in:
commit
ed1b59a98e
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchurl
|
{ stdenv, buildOcaml, fetchurl
|
||||||
, ocaml, findlib, pkgconfig, perl
|
, ocaml, findlib, pkgconfig, perl
|
||||||
, gmp
|
, gmp
|
||||||
}:
|
}:
|
||||||
@ -16,20 +16,25 @@ let source =
|
|||||||
};
|
};
|
||||||
in
|
in
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
buildOcaml rec {
|
||||||
name = "ocaml${ocaml.version}-zarith-${version}";
|
name = "zarith";
|
||||||
inherit (source) version;
|
inherit (source) version;
|
||||||
src = fetchurl { inherit (source) url sha256; };
|
src = fetchurl { inherit (source) url sha256; };
|
||||||
|
|
||||||
|
minimumSupportedOcamlVersion = "3.12.1";
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
nativeBuildInputs = [ pkgconfig ];
|
||||||
buildInputs = [ ocaml findlib perl ];
|
buildInputs = [ ocaml findlib perl ];
|
||||||
propagatedBuildInputs = [ gmp ];
|
propagatedBuildInputs = [ gmp ];
|
||||||
|
|
||||||
|
# needed so setup-hook.sh sets CAML_LD_LIBRARY_PATH for dllzarith.so
|
||||||
|
hasSharedObjects = true;
|
||||||
|
|
||||||
patchPhase = "patchShebangs ./z_pp.pl";
|
patchPhase = "patchShebangs ./z_pp.pl";
|
||||||
configurePhase = ''
|
configurePhase = ''
|
||||||
./configure -installdir $out/lib/ocaml/${ocaml.version}/site-lib
|
./configure -installdir $out/lib/ocaml/${ocaml.version}/site-lib
|
||||||
'';
|
'';
|
||||||
createFindlibDestdir = true;
|
preInstall = "mkdir -p $out/lib/ocaml/${ocaml.version}/site-lib";
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Fast, arbitrary precision OCaml integers";
|
description = "Fast, arbitrary precision OCaml integers";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user