diff --git a/pkgs/development/ocaml-modules/stdlib-random/default.nix b/pkgs/development/ocaml-modules/stdlib-random/default.nix new file mode 100644 index 000000000000..7532a979a516 --- /dev/null +++ b/pkgs/development/ocaml-modules/stdlib-random/default.nix @@ -0,0 +1,31 @@ +{ + lib, + buildDunePackage, + fetchFromGitHub, + cppo, + version ? "1.2.0", +}: + +buildDunePackage { + pname = "stdlib-random"; + inherit version; + + minimalOCamlVersion = "4.08"; + + src = fetchFromGitHub { + owner = "ocaml"; + repo = "stdlib-random"; + tag = version; + hash = "sha256-rtdPQ/zXdywjhjLi60nMe1rks2yLP2TH4xUg5z/Bpjk="; + }; + + nativeBuildInputs = [ cppo ]; + + meta = { + license = lib.licenses.lgpl21Only; + description = "Compatibility library for Random number generation"; + homepage = "https://github.com/ocaml/stdlib-random"; + maintainers = [ lib.maintainers.vbgl ]; + }; + +} diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index 523eaaf91e5a..b0f9d2f4e324 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -1934,6 +1934,8 @@ let stdint = callPackage ../development/ocaml-modules/stdint { }; + stdlib-random = callPackage ../development/ocaml-modules/stdlib-random { }; + stdlib-shims = callPackage ../development/ocaml-modules/stdlib-shims { }; stdune = callPackage ../development/ocaml-modules/stdune { };