2024-01-02 11:29:13 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, buildDunePackage, pkg-config, gsl, darwin, dune-configurator }:
|
2020-10-16 20:44:37 +00:00
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "gsl";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "1.25.0";
|
2020-10-16 20:44:37 +00:00
|
|
|
|
2023-04-29 16:46:19 +00:00
|
|
|
minimalOCamlVersion = "4.12";
|
2021-04-05 15:23:46 +00:00
|
|
|
|
2023-04-29 16:46:19 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mmottl";
|
|
|
|
repo = "gsl-ocaml";
|
|
|
|
rev = version;
|
2024-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-vxXv0ZcToXmdYu5k0aLdV3seNn3Y6Sgg+8dpy3Iw68I=";
|
2020-10-16 20:44:37 +00:00
|
|
|
};
|
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [ dune-configurator gsl ];
|
2021-01-15 22:18:51 +00:00
|
|
|
propagatedBuildInputs = lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Accelerate ];
|
2020-10-16 20:44:37 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-10-16 20:44:37 +00:00
|
|
|
homepage = "https://mmottl.github.io/gsl-ocaml/";
|
|
|
|
description = "OCaml bindings to the GNU Scientific Library";
|
2020-11-06 00:33:48 +00:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ vbgl ];
|
2020-10-16 20:44:37 +00:00
|
|
|
};
|
|
|
|
}
|