2021-01-10 23:54:33 -08:00
|
|
|
{ lib, stdenv, fetchurl, darwin, buildDunePackage, dune-configurator
|
2020-10-29 22:24:37 -07:00
|
|
|
, lapack, blas
|
|
|
|
}:
|
2019-03-20 04:03:38 -07:00
|
|
|
|
2020-04-20 13:50:55 -07:00
|
|
|
assert (!blas.isILP64) && (!lapack.isILP64);
|
2019-03-20 04:03:38 -07:00
|
|
|
|
2020-10-29 22:24:37 -07:00
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "lacaml";
|
|
|
|
version = "11.0.8";
|
2019-03-20 04:03:38 -07:00
|
|
|
|
2020-10-29 22:24:37 -07:00
|
|
|
useDune2 = true;
|
|
|
|
|
|
|
|
minimumOCamlVersion = "4.08";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/mmottl/lacaml/releases/download/${version}/lacaml-${version}.tbz";
|
|
|
|
sha256 = "1i47wqnd9iy6ndbi9zfahpb592gahp6im26rgpwch13vgzk3kifd";
|
2019-03-20 04:03:38 -07:00
|
|
|
};
|
|
|
|
|
2020-10-29 22:24:37 -07:00
|
|
|
buildInputs = [ dune-configurator ];
|
2020-03-31 07:47:18 -07:00
|
|
|
propagatedBuildInputs = [ lapack blas ] ++
|
2021-01-11 04:49:15 -08:00
|
|
|
lib.optionals stdenv.isDarwin
|
2019-03-20 04:03:38 -07:00
|
|
|
[ darwin.apple_sdk.frameworks.Accelerate ];
|
|
|
|
|
2021-01-10 23:54:33 -08:00
|
|
|
meta = with lib; {
|
2020-10-29 22:24:37 -07:00
|
|
|
homepage = "https://mmottl.github.io/lacaml";
|
2019-03-20 04:03:38 -07:00
|
|
|
description = "OCaml bindings for BLAS and LAPACK";
|
|
|
|
license = licenses.lgpl21Plus;
|
2020-10-29 22:24:37 -07:00
|
|
|
maintainers = [ maintainers.vbgl ];
|
2019-03-20 04:03:38 -07:00
|
|
|
};
|
|
|
|
}
|