nixpkgs/pkgs/development/ocaml-modules/apron/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

44 lines
1.1 KiB
Nix
Raw Normal View History

{ stdenv, lib, fetchFromGitHub, perl, gmp, mpfr, ppl, ocaml, findlib, camlidl, mlgmpidl
, flint, pplite
}:
stdenv.mkDerivation rec {
pname = "ocaml${ocaml.version}-apron";
2023-09-21 05:24:07 +00:00
version = "0.9.14";
src = fetchFromGitHub {
owner = "antoinemine";
repo = "apron";
rev = "v${version}";
2023-09-21 05:24:07 +00:00
hash = "sha256-e8bSf0FPB6E3MFHHoSrE0x/6nrUStO+gOKxJ4LDHBi0=";
};
2023-09-21 05:24:07 +00:00
nativeBuildInputs = [ ocaml findlib perl ];
buildInputs = [ gmp mpfr ppl camlidl flint pplite ];
propagatedBuildInputs = [ mlgmpidl ];
# TODO: Doesn't produce the library correctly if true
strictDeps = false;
2023-09-21 05:24:07 +00:00
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;
};
}