diff --git a/pkgs/development/ocaml-modules/grenier/default.nix b/pkgs/development/ocaml-modules/grenier/default.nix new file mode 100644 index 000000000000..88f50619d7c6 --- /dev/null +++ b/pkgs/development/ocaml-modules/grenier/default.nix @@ -0,0 +1,22 @@ +{ + lib, + fetchurl, + buildDunePackage, +}: + +buildDunePackage (finalAttrs: { + pname = "grenier"; + version = "0.16"; + src = fetchurl { + url = "https://github.com/let-def/grenier/releases/download/v${finalAttrs.version}/grenier-${finalAttrs.version}.tbz"; + hash = "sha256-j9Iqv59FicIGAIZU+p7rsc9KWHN+uzQTjGcJUg82t18="; + }; + + doCheck = true; + + meta = { + description = "A collection of various algorithms in OCaml"; + license = lib.licenses.isc; + homepage = "https://github.com/let-def/grenier"; + }; +}) diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index 03cd672321f2..875be280bdef 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -796,6 +796,8 @@ let graphql_ppx = callPackage ../development/ocaml-modules/graphql_ppx { }; + grenier = callPackage ../development/ocaml-modules/grenier { }; + gsl = callPackage ../development/ocaml-modules/gsl { inherit (pkgs) gsl; };