2022-12-17 10:02:37 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub, perl, gmp, mpfr, ppl, ocaml, findlib, camlidl, mlgmpidl
|
|
|
|
, gnumake42
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2022-02-10 20:34:41 +00:00
|
|
|
pname = "ocaml${ocaml.version}-apron";
|
2020-09-25 04:45:31 +00:00
|
|
|
version = "0.9.13";
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "antoinemine";
|
|
|
|
repo = "apron";
|
|
|
|
rev = "v${version}";
|
2020-09-25 04:45:31 +00:00
|
|
|
sha256 = "14ymjahqdxj26da8wik9d5dzlxn81b3z1iggdl7rn2nn06jy7lvy";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-12-17 10:02:37 +00:00
|
|
|
# fails with make 4.4
|
|
|
|
nativeBuildInputs = [ ocaml findlib perl gnumake42 ];
|
2022-03-05 16:20:37 +00:00
|
|
|
buildInputs = [ gmp mpfr ppl camlidl ];
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = [ mlgmpidl ];
|
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
strictDeps = false;
|
|
|
|
|
2020-11-06 00:33:48 +00:00
|
|
|
outputs = [ "out" "bin" "dev" ];
|
|
|
|
|
|
|
|
configurePhase = ''
|
|
|
|
runHook preConfigure
|
|
|
|
./configure -prefix $out
|
|
|
|
mkdir -p $out/lib/ocaml/${ocaml.version}/site-lib/stublibs
|
|
|
|
runHook postConfigure
|
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $dev/lib
|
|
|
|
mv $out/lib/ocaml $dev/lib/
|
|
|
|
mkdir -p $bin
|
|
|
|
mv $out/bin $bin/
|
|
|
|
'';
|
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;
|
|
|
|
};
|
|
|
|
}
|