2021-01-11 12:49:15 +00:00
|
|
|
{ stdenv, lib, fetchurl, perl, gmp, mpfr, ocaml, findlib, camlidl, apron }:
|
2018-12-09 04:52:24 +00:00
|
|
|
|
|
|
|
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"
|
2019-09-08 23:38:31 +00:00
|
|
|
"--apron-prefix" apron
|
2018-12-09 04:52:24 +00:00
|
|
|
]
|
2021-01-11 12:49:15 +00:00
|
|
|
++ lib.optional stdenv.isDarwin "--absolute-dylibs"
|
2018-12-09 04:52:24 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "ETH LIbrary for Numerical Analysis";
|
|
|
|
homepage = "http://elina.ethz.ch/";
|
2021-01-11 12:49:15 +00:00
|
|
|
license = lib.licenses.lgpl3;
|
|
|
|
maintainers = [ lib.maintainers.vbgl ];
|
2018-12-09 04:52:24 +00:00
|
|
|
inherit (ocaml.meta) platforms;
|
|
|
|
};
|
|
|
|
}
|