36 lines
691 B
Nix
36 lines
691 B
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
buildDunePackage,
|
|
pkg-config,
|
|
gsl,
|
|
dune-configurator,
|
|
}:
|
|
|
|
buildDunePackage (finalAttrs: {
|
|
pname = "gsl";
|
|
version = "1.25.1";
|
|
|
|
minimalOCamlVersion = "4.12";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mmottl";
|
|
repo = "gsl-ocaml";
|
|
rev = finalAttrs.version;
|
|
hash = "sha256-h1jO2RheBBzxiBgig2yEPk4YyBaZxStt5f+KNZqHdBo=";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
buildInputs = [
|
|
dune-configurator
|
|
gsl
|
|
];
|
|
|
|
meta = {
|
|
homepage = "https://mmottl.github.io/gsl-ocaml/";
|
|
description = "OCaml bindings to the GNU Scientific Library";
|
|
license = lib.licenses.gpl3Plus;
|
|
maintainers = with lib.maintainers; [ vbgl ];
|
|
};
|
|
})
|