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-09-15 06:26:11 +01:00
|
|
|
version = "0.9.13";
|
2020-02-03 10:10:21 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "antoinemine";
|
|
|
|
repo = "apron";
|
|
|
|
rev = "v${version}";
|
2020-09-15 06:26:11 +01:00
|
|
|
sha256 = "14ymjahqdxj26da8wik9d5dzlxn81b3z1iggdl7rn2nn06jy7lvy";
|
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;
|
|
|
|
};
|
|
|
|
}
|