1 { stdenv, lib, fetchFromGitHub, perl, gmp, mpfr, ppl, ocaml, findlib, camlidl, mlgmpidl
5 stdenv.mkDerivation rec {
6 pname = "ocaml${ocaml.version}-apron";
8 src = fetchFromGitHub {
12 hash = "sha256-e8bSf0FPB6E3MFHHoSrE0x/6nrUStO+gOKxJ4LDHBi0=";
15 nativeBuildInputs = [ ocaml findlib perl ];
16 buildInputs = [ gmp mpfr ppl camlidl flint pplite ];
17 propagatedBuildInputs = [ mlgmpidl ];
19 # TODO: Doesn't produce the library correctly if true
22 outputs = [ "out" "dev" ];
26 ./configure -prefix $out ${lib.optionalString stdenv.isDarwin "-no-strip"}
27 mkdir -p $out/lib/ocaml/${ocaml.version}/site-lib/stublibs
33 mv $out/lib/ocaml $dev/lib/
37 license = lib.licenses.lgpl21;
38 homepage = "http://apron.cri.ensmp.fr/library/";
39 maintainers = [ lib.maintainers.vbgl ];
40 description = "Numerical abstract domain library";
41 inherit (ocaml.meta) platforms;