2017-11-28 16:56:47 +00:00
|
|
|
{ stdenv, fetchFromGitHub, perl, ocaml, findlib, camlidl, gmp, mpfr }:
|
2016-10-12 11:12:46 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "ocaml${ocaml.version}-mlgmpidl-${version}";
|
2019-06-10 12:49:37 +01:00
|
|
|
version = "1.2.10";
|
2016-10-12 11:12:46 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nberth";
|
|
|
|
repo = "mlgmpidl";
|
|
|
|
rev = version;
|
2019-06-10 12:49:37 +01:00
|
|
|
sha256 = "181vpqx8zdairq645b8qpkzj4fnkb508iavk7sqzskag1s8613qn";
|
2016-10-12 11:12:46 +01:00
|
|
|
};
|
|
|
|
|
2017-11-28 16:56:47 +00:00
|
|
|
buildInputs = [ perl gmp mpfr ocaml findlib camlidl ];
|
2016-10-12 11:12:46 +01:00
|
|
|
|
2019-02-21 14:43:19 +00:00
|
|
|
prefixKey = "-prefix ";
|
|
|
|
configureFlags = [
|
|
|
|
"--gmp-prefix ${gmp.dev}"
|
|
|
|
"--mpfr-prefix ${mpfr.dev}"
|
|
|
|
];
|
|
|
|
|
|
|
|
postConfigure = ''
|
2016-10-12 11:12:46 +01:00
|
|
|
sed -i Makefile \
|
|
|
|
-e 's|^ /bin/rm | rm |'
|
|
|
|
'';
|
|
|
|
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "OCaml interface to the GMP library";
|
|
|
|
homepage = https://www.inrialpes.fr/pop-art/people/bjeannet/mlxxxidl-forge/mlgmpidl/;
|
|
|
|
license = stdenv.lib.licenses.lgpl21;
|
|
|
|
inherit (ocaml.meta) platforms;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.vbgl ];
|
|
|
|
};
|
|
|
|
}
|