2022-12-17 07:35:35 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub, perl, gmp, mpfr, ppl, ocaml, findlib, camlidl, mlgmpidl
|
2023-09-21 05:24:49 +00:00
|
|
|
, flint, pplite
|
2022-12-17 07:35:35 +00:00
|
|
|
}:
|
2016-10-12 10:35:21 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2022-02-10 00:28:00 +00:00
|
|
|
pname = "ocaml${ocaml.version}-apron";
|
2023-09-21 05:24:07 +00:00
|
|
|
version = "0.9.14";
|
2020-02-03 10:10:21 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "antoinemine";
|
|
|
|
repo = "apron";
|
|
|
|
rev = "v${version}";
|
2023-09-21 05:24:07 +00:00
|
|
|
hash = "sha256-e8bSf0FPB6E3MFHHoSrE0x/6nrUStO+gOKxJ4LDHBi0=";
|
2016-10-12 10:35:21 +00:00
|
|
|
};
|
|
|
|
|
2023-09-21 05:24:07 +00:00
|
|
|
nativeBuildInputs = [ ocaml findlib perl ];
|
2023-09-21 05:24:49 +00:00
|
|
|
buildInputs = [ gmp mpfr ppl camlidl flint pplite ];
|
2016-10-12 10:35:21 +00:00
|
|
|
propagatedBuildInputs = [ mlgmpidl ];
|
|
|
|
|
2022-03-01 15:42:22 +00:00
|
|
|
# TODO: Doesn't produce the library correctly if true
|
2022-03-03 13:52:47 +00:00
|
|
|
strictDeps = false;
|
2022-02-22 09:59:04 +00:00
|
|
|
|
2023-09-21 05:24:07 +00:00
|
|
|
outputs = [ "out" "dev" ];
|
2020-11-04 06:35:52 +00:00
|
|
|
|
|
|
|
configurePhase = ''
|
|
|
|
runHook preConfigure
|
2023-09-28 08:54:32 +00:00
|
|
|
./configure -prefix $out ${lib.optionalString stdenv.isDarwin "-no-strip"}
|
2020-11-04 06:35:52 +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/
|
|
|
|
'';
|
2016-10-12 10:35:21 +00:00
|
|
|
|
|
|
|
meta = {
|
2021-01-11 12:49:15 +00:00
|
|
|
license = lib.licenses.lgpl21;
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://apron.cri.ensmp.fr/library/";
|
2021-01-11 12:49:15 +00:00
|
|
|
maintainers = [ lib.maintainers.vbgl ];
|
2016-10-12 10:35:21 +00:00
|
|
|
description = "Numerical abstract domain library";
|
|
|
|
inherit (ocaml.meta) platforms;
|
|
|
|
};
|
|
|
|
}
|