2020-02-03 10:10:21 +00:00
|
|
|
{ stdenv, fetchFromGitHub, perl, gmp, mpfr, ppl, ocaml, findlib, camlidl, mlgmpidl }:
|
2016-10-12 11:35:21 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "ocaml${ocaml.version}-apron-${version}";
|
2020-02-03 10:10:21 +00:00
|
|
|
version = "0.9.12";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "antoinemine";
|
|
|
|
repo = "apron";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0bciv4wz52p57q0aggmvixvqrsd1slflfyrm1z6fy5c44f4fmjjn";
|
2016-10-12 11:35:21 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ perl gmp mpfr ppl ocaml findlib camlidl ];
|
|
|
|
propagatedBuildInputs = [ mlgmpidl ];
|
|
|
|
|
|
|
|
prefixKey = "-prefix ";
|
2020-02-03 10:10:21 +00:00
|
|
|
preBuild = "mkdir -p $out/lib/ocaml/${ocaml.version}/site-lib/stublibs";
|
2016-10-12 11:35:21 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
license = stdenv.lib.licenses.lgpl21;
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://apron.cri.ensmp.fr/library/";
|
2016-10-12 11:35:21 +01:00
|
|
|
maintainers = [ stdenv.lib.maintainers.vbgl ];
|
|
|
|
description = "Numerical abstract domain library";
|
|
|
|
inherit (ocaml.meta) platforms;
|
|
|
|
};
|
|
|
|
}
|