43 lines
1.1 KiB
Nix
43 lines
1.1 KiB
Nix
{ stdenv, lib, fetchFromGitHub, perl, gmp, mpfr, ppl, ocaml, findlib, camlidl, mlgmpidl
|
|
, flint, pplite
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "ocaml${ocaml.version}-apron";
|
|
version = "0.9.14";
|
|
src = fetchFromGitHub {
|
|
owner = "antoinemine";
|
|
repo = "apron";
|
|
rev = "v${version}";
|
|
hash = "sha256-e8bSf0FPB6E3MFHHoSrE0x/6nrUStO+gOKxJ4LDHBi0=";
|
|
};
|
|
|
|
nativeBuildInputs = [ ocaml findlib perl ];
|
|
buildInputs = [ gmp mpfr ppl camlidl flint pplite ];
|
|
propagatedBuildInputs = [ mlgmpidl ];
|
|
|
|
# TODO: Doesn't produce the library correctly if true
|
|
strictDeps = false;
|
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
configurePhase = ''
|
|
runHook preConfigure
|
|
./configure -prefix $out ${lib.optionalString stdenv.isDarwin "-no-strip"}
|
|
mkdir -p $out/lib/ocaml/${ocaml.version}/site-lib/stublibs
|
|
runHook postConfigure
|
|
'';
|
|
|
|
postInstall = ''
|
|
mkdir -p $dev/lib
|
|
mv $out/lib/ocaml $dev/lib/
|
|
'';
|
|
|
|
meta = {
|
|
license = lib.licenses.lgpl21;
|
|
homepage = "http://apron.cri.ensmp.fr/library/";
|
|
maintainers = [ lib.maintainers.vbgl ];
|
|
description = "Numerical abstract domain library";
|
|
inherit (ocaml.meta) platforms;
|
|
};
|
|
}
|