2022-12-17 10:02:37 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub, perl, gmp, mpfr, ppl, ocaml, findlib, camlidl, mlgmpidl
|
2023-10-09 19:29:22 +00:00
|
|
|
, flint, pplite
|
2022-12-17 10:02:37 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2022-02-10 20:34:41 +00:00
|
|
|
pname = "ocaml${ocaml.version}-apron";
|
2024-06-20 14:57:18 +00:00
|
|
|
version = "0.9.15";
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "antoinemine";
|
|
|
|
repo = "apron";
|
|
|
|
rev = "v${version}";
|
2024-06-20 14:57:18 +00:00
|
|
|
hash = "sha256-gHLCurydxX1pS66DTAWUJGl9Yqu9RWRjkZh6lXzM7YY=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
nativeBuildInputs = [ ocaml findlib perl ];
|
|
|
|
buildInputs = [ gmp mpfr ppl camlidl flint pplite ];
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = [ mlgmpidl ];
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
outputs = [ "out" "dev" ];
|
2020-11-06 00:33:48 +00:00
|
|
|
|
|
|
|
configurePhase = ''
|
|
|
|
runHook preConfigure
|
2024-09-26 11:04:55 +00:00
|
|
|
./configure -prefix $out ${lib.optionalString stdenv.hostPlatform.isDarwin "--no-strip"}
|
2020-11-06 00:33:48 +00:00
|
|
|
mkdir -p $out/lib/ocaml/${ocaml.version}/site-lib/stublibs
|
|
|
|
runHook postConfigure
|
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $dev/lib
|
|
|
|
mv $out/lib/ocaml $dev/lib/
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = {
|
2021-01-15 22:18:51 +00:00
|
|
|
license = lib.licenses.lgpl21;
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "http://apron.cri.ensmp.fr/library/";
|
2021-01-15 22:18:51 +00:00
|
|
|
maintainers = [ lib.maintainers.vbgl ];
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Numerical abstract domain library";
|
|
|
|
inherit (ocaml.meta) platforms;
|
|
|
|
};
|
|
|
|
}
|