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";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "0.9.14";
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "antoinemine";
|
|
|
|
repo = "apron";
|
|
|
|
rev = "v${version}";
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-e8bSf0FPB6E3MFHHoSrE0x/6nrUStO+gOKxJ4LDHBi0=";
|
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-02-09 11:40:11 +00:00
|
|
|
# TODO: Doesn't produce the library correctly if true
|
2022-03-05 16:20:37 +00:00
|
|
|
strictDeps = false;
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
outputs = [ "out" "dev" ];
|
2020-11-06 00:33:48 +00:00
|
|
|
|
|
|
|
configurePhase = ''
|
|
|
|
runHook preConfigure
|
2023-10-09 19:29:22 +00:00
|
|
|
./configure -prefix $out ${lib.optionalString stdenv.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;
|
|
|
|
};
|
|
|
|
}
|