1 { stdenv, lib, fetchurl, perl, gmp, mpfr, ocaml, findlib, camlidl, apron }:
3 stdenv.mkDerivation rec {
5 pname = "ocaml${ocaml.version}-elina";
7 url = "http://files.sri.inf.ethz.ch/elina-${version}.tar.gz";
8 sha256 = "1nymykskq1yx87y4xl6hl9i4q6kv0qaq25rniqgl1bfn883p1ysc";
11 nativeBuildInputs = [ perl ocaml findlib camlidl ];
13 propagatedBuildInputs = [ apron gmp mpfr ];
17 prefixKey = "--prefix ";
21 "--apron-prefix" apron
23 ++ lib.optional stdenv.isDarwin "--absolute-dylibs"
26 createFindlibDestdir = true;
29 description = "ETH LIbrary for Numerical Analysis";
30 homepage = "http://elina.ethz.ch/";
31 license = lib.licenses.lgpl3;
32 maintainers = [ lib.maintainers.vbgl ];
33 inherit (ocaml.meta) platforms;