From b3910a583c01a137b6337cb919777386d191b1ac Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Wed, 7 Oct 2020 06:57:15 +0200 Subject: [PATCH] ocamlPackages.gsl: init at 1.24.3 --- .../development/ocaml-modules/gsl/default.nix | 24 +++++++++++++++++++ pkgs/top-level/ocaml-packages.nix | 4 ++++ 2 files changed, 28 insertions(+) create mode 100644 pkgs/development/ocaml-modules/gsl/default.nix diff --git a/pkgs/development/ocaml-modules/gsl/default.nix b/pkgs/development/ocaml-modules/gsl/default.nix new file mode 100644 index 00000000000..c292c3d6ab5 --- /dev/null +++ b/pkgs/development/ocaml-modules/gsl/default.nix @@ -0,0 +1,24 @@ +{ lib, fetchurl, buildDunePackage, pkg-config, gsl +, dune-configurator +}: + +buildDunePackage rec { + pname = "gsl"; + version = "1.24.3"; + + 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 ]; + + meta = { + homepage = "https://mmottl.github.io/gsl-ocaml/"; + description = "OCaml bindings to the GNU Scientific Library"; + license = lib.licenses.gpl3Plus; + maintainers = [ lib.maintainers.vbgl ]; + }; +} diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index 95c1bb300af..865e1c9bd24 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -322,6 +322,10 @@ let inherit (pkgs) gnuplot; }; + gsl = callPackage ../development/ocaml-modules/gsl { + inherit (pkgs) gsl; + }; + hacl_x25519 = callPackage ../development/ocaml-modules/hacl_x25519 { }; herelib = callPackage ../development/ocaml-modules/herelib { };