ocamlPackages.stdlib-random: init at 1.2.0

This commit is contained in:
Vincent Laporte 2025-07-15 06:25:23 +02:00 committed by Vincent Laporte
parent 1f9fe92184
commit 929387843b
2 changed files with 33 additions and 0 deletions

View File

@ -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 ];
};
}

View File

@ -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 { };