summaryrefslogtreecommitdiff
path: root/pkgs/development/ocaml-modules/stdlib-random/default.nix
blob: 7532a979a51648825e7a78393e0bab0559c653f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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 ];
  };

}