ocamlPackages.mlgmpidl: 1.2.7 -> 1.2.8

This version builds even if profiling is not available (e.g., on Aarch).
This commit is contained in:
Vincent Laporte 2019-02-21 14:43:19 +00:00 committed by Vincent Laporte
parent 77201a115b
commit 79bc38c1bc

View File

@ -2,25 +2,23 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "ocaml${ocaml.version}-mlgmpidl-${version}"; name = "ocaml${ocaml.version}-mlgmpidl-${version}";
version = "1.2.7"; version = "1.2.8";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "nberth"; owner = "nberth";
repo = "mlgmpidl"; repo = "mlgmpidl";
rev = version; rev = version;
sha256 = "063hy1divbiabqm5x307iamw942sivzw9fr8vczy3kgndfp12nic"; sha256 = "1csqplyxi5gq6ma7g4la2x20mhz1plmjallsankv0mn0x69zb1id";
}; };
buildInputs = [ perl gmp mpfr ocaml findlib camlidl ]; buildInputs = [ perl gmp mpfr ocaml findlib camlidl ];
configurePhase = '' prefixKey = "-prefix ";
echo CAML_PREFIX = ${ocaml} > Makefile.config configureFlags = [
cat Makefile.config.model >> Makefile.config "--gmp-prefix ${gmp.dev}"
sed -i Makefile.config \ "--mpfr-prefix ${mpfr.dev}"
-e 's|^MLGMPIDL_PREFIX.*$|MLGMPIDL_PREFIX = $out|' \ ];
-e 's|^GMP_PREFIX.*$|GMP_PREFIX = ${gmp.dev}|' \
-e 's|^MPFR_PREFIX.*$|MPFR_PREFIX = ${mpfr.dev}|' \ postConfigure = ''
-e 's|^CAMLIDL_DIR.*$|CAMLIDL_DIR = ${camlidl}/lib/ocaml/${ocaml.version}/site-lib/camlidl|'
echo HAS_NATIVE_PLUGINS = 1 >> Makefile.config
sed -i Makefile \ sed -i Makefile \
-e 's|^ /bin/rm | rm |' -e 's|^ /bin/rm | rm |'
''; '';