blob: fc81d53f17178e363dd1a8178ae03cd0f669bb2f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
{ lib, stdenv, fetchFromGitHub, buildDunePackage, pkg-config, gsl, darwin, dune-configurator }:
buildDunePackage rec {
pname = "gsl";
version = "1.25.0";
minimalOCamlVersion = "4.12";
src = fetchFromGitHub {
owner = "mmottl";
repo = "gsl-ocaml";
rev = version;
hash = "sha256-vxXv0ZcToXmdYu5k0aLdV3seNn3Y6Sgg+8dpy3Iw68I=";
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [ dune-configurator gsl ];
propagatedBuildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ darwin.apple_sdk.frameworks.Accelerate ];
meta = with lib; {
homepage = "https://mmottl.github.io/gsl-ocaml/";
description = "OCaml bindings to the GNU Scientific Library";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ vbgl ];
};
}
|