nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchurl,
5 ocaml,
6 findlib,
7 ocamlbuild,
8 topkg,
9 cmdliner,
10 version ? if lib.versionAtLeast ocaml.version "4.14" then "0.9.10" else "0.9.8",
11}:
12
13stdenv.mkDerivation {
14 inherit version;
15 pname = "uuidm";
16 src = fetchurl {
17 url = "https://erratique.ch/software/uuidm/releases/uuidm-${version}.tbz";
18 hash =
19 {
20 "0.9.10" = "sha256-kWVZSofWMyky5nAuxoh1xNhwMKZ2qUahL3Dh27J36Vc=";
21 "0.9.8" = "sha256-/GZbkJVDQu1UY8SliK282kUWAVMfOnpQadUlRT/tJrM=";
22 }
23 ."${version}";
24 };
25
26 strictDeps = true;
27
28 nativeBuildInputs = [
29 ocaml
30 findlib
31 ocamlbuild
32 topkg
33 ];
34 configurePlatforms = [ ];
35 buildInputs = [
36 topkg
37 cmdliner
38 ];
39
40 inherit (topkg) buildPhase installPhase;
41
42 meta = {
43 description = "OCaml module implementing 128 bits universally unique identifiers version 3, 5 (name based with MD5, SHA-1 hashing) and 4 (random based) according to RFC 4122";
44 homepage = "https://erratique.ch/software/uuidm";
45 license = lib.licenses.bsd3;
46 maintainers = [ lib.maintainers.maurer ];
47 mainProgram = "uuidtrip";
48 inherit (ocaml.meta) platforms;
49 broken = !(lib.versionAtLeast ocaml.version "4.08");
50 };
51}