depot/pkgs/development/ocaml-modules/gsl/default.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

26 lines
778 B
Nix

{ 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 ];
};
}