2022-11-12 06:05:48 +00:00
|
|
|
{
|
|
|
|
stdenv,
|
|
|
|
lib,
|
|
|
|
fetchFromGitHub,
|
|
|
|
perl,
|
|
|
|
ocaml,
|
|
|
|
findlib,
|
|
|
|
camlidl,
|
|
|
|
gmp,
|
|
|
|
mpfr,
|
|
|
|
bigarray-compat,
|
|
|
|
}:
|
2016-10-12 10:12:46 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2022-02-06 22:35:27 +00:00
|
|
|
pname = "ocaml${ocaml.version}-mlgmpidl";
|
2024-02-12 12:56:05 +00:00
|
|
|
version = "1.3.0";
|
2016-10-12 10:12:46 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nberth";
|
|
|
|
repo = "mlgmpidl";
|
|
|
|
rev = version;
|
2024-02-12 12:56:05 +00:00
|
|
|
hash = "sha256-ZmSDKZiHko8MCeIuZL53HjupfwO6PAm8QOCc9O3xJOk=";
|
2016-10-12 10:12:46 +00:00
|
|
|
};
|
|
|
|
|
2022-03-04 10:30:58 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
perl
|
|
|
|
ocaml
|
|
|
|
findlib
|
|
|
|
camlidl
|
2022-02-22 09:59:04 +00:00
|
|
|
];
|
|
|
|
buildInputs = [
|
|
|
|
gmp
|
|
|
|
mpfr
|
2024-12-10 19:26:33 +00:00
|
|
|
];
|
2022-11-12 06:05:48 +00:00
|
|
|
propagatedBuildInputs = [ bigarray-compat ];
|
2022-02-22 09:59:04 +00:00
|
|
|
|
|
|
|
strictDeps = true;
|
2016-10-12 10:12:46 +00:00
|
|
|
|
2019-02-21 14:43:19 +00:00
|
|
|
prefixKey = "-prefix ";
|
|
|
|
|
|
|
|
postConfigure = ''
|
2020-01-28 09:25:19 +00:00
|
|
|
mkdir -p $out/lib/ocaml/${ocaml.version}/site-lib/stublibs
|
2016-10-12 10:12:46 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "OCaml interface to the GMP library";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://www.inrialpes.fr/pop-art/people/bjeannet/mlxxxidl-forge/mlgmpidl/";
|
2021-01-11 12:49:15 +00:00
|
|
|
license = lib.licenses.lgpl21;
|
2016-10-12 10:12:46 +00:00
|
|
|
inherit (ocaml.meta) platforms;
|
2021-01-11 12:49:15 +00:00
|
|
|
maintainers = [ lib.maintainers.vbgl ];
|
2016-10-12 10:12:46 +00:00
|
|
|
};
|
|
|
|
}
|