2020-02-03 02:10:21 -08:00
|
|
|
{ stdenv, fetchFromGitHub, perl, gmp, mpfr, ppl, ocaml, findlib, camlidl, mlgmpidl }:
|
2016-10-12 03:35:21 -07:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "ocaml${ocaml.version}-apron-${version}";
|
2020-09-14 22:26:11 -07:00
|
|
|
version = "0.9.13";
|
2020-02-03 02:10:21 -08:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "antoinemine";
|
|
|
|
repo = "apron";
|
|
|
|
rev = "v${version}";
|
2020-09-14 22:26:11 -07:00
|
|
|
sha256 = "14ymjahqdxj26da8wik9d5dzlxn81b3z1iggdl7rn2nn06jy7lvy";
|
2016-10-12 03:35:21 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ perl gmp mpfr ppl ocaml findlib camlidl ];
|
|
|
|
propagatedBuildInputs = [ mlgmpidl ];
|
|
|
|
|
2020-11-03 22:35:52 -08: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/
|
|
|
|
'';
|
2016-10-12 03:35:21 -07:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
license = stdenv.lib.licenses.lgpl21;
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "http://apron.cri.ensmp.fr/library/";
|
2016-10-12 03:35:21 -07:00
|
|
|
maintainers = [ stdenv.lib.maintainers.vbgl ];
|
|
|
|
description = "Numerical abstract domain library";
|
|
|
|
inherit (ocaml.meta) platforms;
|
|
|
|
};
|
|
|
|
}
|