nixpkgs/pkgs/development/ocaml-modules/lacaml/default.nix

32 lines
829 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, darwin, buildDunePackage, dune-configurator
, lapack, blas
}:
2019-03-20 11:03:38 +00:00
assert (!blas.isILP64) && (!lapack.isILP64);
2019-03-20 11:03:38 +00:00
buildDunePackage rec {
pname = "lacaml";
version = "11.0.8";
2019-03-20 11:03:38 +00: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 11:03:38 +00:00
};
buildInputs = [ dune-configurator ];
propagatedBuildInputs = [ lapack blas ] ++
2019-03-20 11:03:38 +00:00
stdenv.lib.optionals stdenv.isDarwin
[ darwin.apple_sdk.frameworks.Accelerate ];
meta = with lib; {
homepage = "https://mmottl.github.io/lacaml";
2019-03-20 11:03:38 +00:00
description = "OCaml bindings for BLAS and LAPACK";
license = licenses.lgpl21Plus;
maintainers = [ maintainers.vbgl ];
2019-03-20 11:03:38 +00:00
};
}