From 67a583333057efd0ba1b16af6388881c365c703e Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Wed, 12 Oct 2016 12:35:21 +0200 Subject: ocamlPackages.apron: init at 20160125 APRON is an OCaml library of numerical abstract domains Homepage: http://apron.cri.ensmp.fr/library/ --- pkgs/development/ocaml-modules/apron/default.nix | 24 ++++++++++++++++++++++++ pkgs/top-level/ocaml-packages.nix | 2 ++ 2 files changed, 26 insertions(+) create mode 100644 pkgs/development/ocaml-modules/apron/default.nix (limited to 'pkgs') diff --git a/pkgs/development/ocaml-modules/apron/default.nix b/pkgs/development/ocaml-modules/apron/default.nix new file mode 100644 index 000000000000..0e73c6a73d31 --- /dev/null +++ b/pkgs/development/ocaml-modules/apron/default.nix @@ -0,0 +1,24 @@ +{ stdenv, fetchzip, perl, gmp, mpfr, ppl, ocaml, findlib, camlidl, mlgmpidl }: + +stdenv.mkDerivation rec { + name = "ocaml${ocaml.version}-apron-${version}"; + version = "20160125"; + src = fetchzip { + url = "http://apron.gforge.inria.fr/apron-${version}.tar.gz"; + sha256 = "1a7b7b9wsd0gdvm41lgg6ayb85wxc2a3ggcrghy4qiphs4b9v4m4"; + }; + + buildInputs = [ perl gmp mpfr ppl ocaml findlib camlidl ]; + propagatedBuildInputs = [ mlgmpidl ]; + + prefixKey = "-prefix "; + createFindlibDestdir = true; + + meta = { + license = stdenv.lib.licenses.lgpl21; + homepage = http://apron.cri.ensmp.fr/library/; + maintainers = [ stdenv.lib.maintainers.vbgl ]; + description = "Numerical abstract domain library"; + inherit (ocaml.meta) platforms; + }; +} diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index c66bd2e518f0..4b4d1e150b38 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -20,6 +20,8 @@ let ansiterminal = callPackage ../development/ocaml-modules/ansiterminal { }; + apron = callPackage ../development/ocaml-modules/apron { }; + asn1-combinators = callPackage ../development/ocaml-modules/asn1-combinators { }; astring = callPackage ../development/ocaml-modules/astring { }; -- cgit 1.4.1