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