Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchurl, darwin, buildDunePackage, dune-configurator
2, lapack, blas
3}:
4
5assert (!blas.isILP64) && (!lapack.isILP64);
6
7buildDunePackage rec {
8 pname = "lacaml";
9 version = "11.0.8";
10
11 useDune2 = true;
12
13 minimumOCamlVersion = "4.08";
14
15 src = fetchurl {
16 url = "https://github.com/mmottl/lacaml/releases/download/${version}/lacaml-${version}.tbz";
17 sha256 = "1i47wqnd9iy6ndbi9zfahpb592gahp6im26rgpwch13vgzk3kifd";
18 };
19
20 buildInputs = [ dune-configurator ];
21 propagatedBuildInputs = [ lapack blas ] ++
22 lib.optionals stdenv.isDarwin
23 [ darwin.apple_sdk.frameworks.Accelerate ];
24
25 meta = with lib; {
26 homepage = "https://mmottl.github.io/lacaml";
27 description = "OCaml bindings for BLAS and LAPACK";
28 license = licenses.lgpl21Plus;
29 maintainers = [ maintainers.vbgl ];
30 };
31}