2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchurl, buildDunePackage, pkg-config, gsl, darwin, dune-configurator }:
|
2020-10-07 06:57:15 +02:00
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "gsl";
|
|
|
|
version = "1.24.3";
|
|
|
|
|
2021-04-02 09:09:57 +02:00
|
|
|
useDune2 = true;
|
|
|
|
|
2020-10-07 06:57:15 +02:00
|
|
|
minimumOCamlVersion = "4.08";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/mmottl/gsl-ocaml/releases/download/${version}/gsl-${version}.tbz";
|
|
|
|
sha256 = "1mpzcgbrha2l8iikqbmn32668v2mnnsykxg5n5jgs0qnskn2nvrn";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ dune-configurator gsl pkg-config ];
|
2021-01-11 13:49:15 +01:00
|
|
|
propagatedBuildInputs = lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Accelerate ];
|
2020-10-07 06:57:15 +02:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-10-07 06:57:15 +02:00
|
|
|
homepage = "https://mmottl.github.io/gsl-ocaml/";
|
|
|
|
description = "OCaml bindings to the GNU Scientific Library";
|
2020-11-04 18:02:32 +01:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ vbgl ];
|
2020-10-07 06:57:15 +02:00
|
|
|
};
|
|
|
|
}
|