2020-03-31 16:47:18 +02:00
|
|
|
{ stdenv, fetchFromGitHub, darwin, ocaml, findlib, dune, base, stdio, lapack, blas }:
|
2019-03-20 12:03:38 +01:00
|
|
|
|
|
|
|
assert stdenv.lib.versionAtLeast (stdenv.lib.getVersion ocaml) "4.05.0";
|
2020-04-20 22:50:55 +02:00
|
|
|
assert (!blas.isILP64) && (!lapack.isILP64);
|
2019-03-20 12:03:38 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "ocaml${ocaml.version}-lacaml";
|
2020-03-16 05:44:42 +01:00
|
|
|
version = "11.0.6";
|
2019-03-20 12:03:38 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mmottl";
|
|
|
|
repo = "lacaml";
|
2019-09-09 01:38:31 +02:00
|
|
|
rev = version;
|
2020-03-16 05:44:42 +01:00
|
|
|
sha256 = "1vn5441fg45d0ni9x87dhz2x4jrmvg3w7qk3vvcrd436snvh07g0";
|
2019-03-20 12:03:38 +01:00
|
|
|
};
|
|
|
|
|
2019-03-27 18:49:31 +01:00
|
|
|
buildInputs = [ ocaml findlib dune base stdio ];
|
2020-03-31 16:47:18 +02:00
|
|
|
propagatedBuildInputs = [ lapack blas ] ++
|
2019-03-20 12:03:38 +01:00
|
|
|
stdenv.lib.optionals stdenv.isDarwin
|
|
|
|
[ darwin.apple_sdk.frameworks.Accelerate ];
|
|
|
|
|
|
|
|
inherit (dune) installPhase;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://mmottl.github.io/lacaml";
|
2019-03-20 12:03:38 +01:00
|
|
|
description = "OCaml bindings for BLAS and LAPACK";
|
|
|
|
license = licenses.lgpl21Plus;
|
|
|
|
platforms = ocaml.meta.platforms or [];
|
|
|
|
maintainers = [ maintainers.rixed ];
|
|
|
|
};
|
|
|
|
}
|