2021-01-11 12:49:15 +00:00
|
|
|
{ stdenv, lib, 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 ];
|
|
|
|
|
2020-11-04 06:35:52 +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/
|
|
|
|
'';
|
2016-10-12 11:35:21 +01:00
|
|
|
|
|
|
|
meta = {
|
2021-01-11 12:49:15 +00:00
|
|
|
license = lib.licenses.lgpl21;
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://apron.cri.ensmp.fr/library/";
|
2021-01-11 12:49:15 +00:00
|
|
|
maintainers = [ lib.maintainers.vbgl ];
|
2016-10-12 11:35:21 +01:00
|
|
|
description = "Numerical abstract domain library";
|
|
|
|
inherit (ocaml.meta) platforms;
|
|
|
|
};
|
|
|
|
}
|