mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2025-01-06 21:42:35 +03:00
Revert "ocamlPackages.zarith: use buildOcaml instead of mkDerivation"
This reverts commit 9d5a7af4e5
.
This commit is contained in:
parent
9d5a7af4e5
commit
b44d5136e8
@ -1,9 +1,8 @@
|
|||||||
{ stdenv, buildOcaml, fetchurl
|
{ stdenv, fetchurl, ocaml, findlib, pkgconfig, gmp, perl }:
|
||||||
, ocaml, findlib, pkgconfig, perl
|
|
||||||
, gmp
|
|
||||||
}:
|
|
||||||
|
|
||||||
let source =
|
assert stdenv.lib.versionAtLeast ocaml.version "3.12.1";
|
||||||
|
|
||||||
|
let param =
|
||||||
if stdenv.lib.versionAtLeast ocaml.version "4.02"
|
if stdenv.lib.versionAtLeast ocaml.version "4.02"
|
||||||
then {
|
then {
|
||||||
version = "1.7";
|
version = "1.7";
|
||||||
@ -16,20 +15,18 @@ let source =
|
|||||||
};
|
};
|
||||||
in
|
in
|
||||||
|
|
||||||
buildOcaml rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "zarith";
|
name = "zarith-${version}";
|
||||||
inherit (source) version;
|
inherit (param) version;
|
||||||
src = fetchurl { inherit (source) url sha256; };
|
|
||||||
|
|
||||||
minimumSupportedOcamlVersion = "3.12.1";
|
src = fetchurl {
|
||||||
|
inherit (param) url sha256;
|
||||||
|
};
|
||||||
|
|
||||||
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
|
||||||
|
Loading…
Reference in New Issue
Block a user