depot/third_party/nixpkgs/pkgs/development/ocaml-modules/elina/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

33 lines
878 B
Nix

{ stdenv, fetchurl, perl, gmp, mpfr, ocaml, findlib, camlidl, apron }:
stdenv.mkDerivation rec {
version = "1.1";
name = "ocaml${ocaml.version}-elina-${version}";
src = fetchurl {
url = "http://files.sri.inf.ethz.ch/elina-${version}.tar.gz";
sha256 = "1nymykskq1yx87y4xl6hl9i4q6kv0qaq25rniqgl1bfn883p1ysc";
};
buildInputs = [ perl ocaml findlib ];
propagatedBuildInputs = [ apron camlidl gmp mpfr ];
prefixKey = "--prefix ";
configureFlags = [
"--use-apron"
"--use-opam"
"--apron-prefix" apron
]
++ stdenv.lib.optional stdenv.isDarwin "--absolute-dylibs"
;
createFindlibDestdir = true;
meta = {
description = "ETH LIbrary for Numerical Analysis";
homepage = "http://elina.ethz.ch/";
license = stdenv.lib.licenses.lgpl3;
maintainers = [ stdenv.lib.maintainers.vbgl ];
inherit (ocaml.meta) platforms;
};
}