9aa7cc01ab
dune-release: 2.1.0 → 2.2.0 ocamlPackages.b0: 0.0.5 → 0.0.6 ocamlPackages.odig: 0.0.9 → 0.1.0 ocamlPackages.mirage-runtime: 4.10.1 → 4.10.2 ocamlPackages.carton: disable tests ocamlPackages.smtml: disable tests slipshow: disable some tests
53 lines
1.2 KiB
Nix
53 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchurl,
|
|
ocaml,
|
|
findlib,
|
|
ocamlbuild,
|
|
topkg,
|
|
cmdliner,
|
|
cmdliner_1,
|
|
version ? if lib.versionAtLeast ocaml.version "4.14" then "0.9.10" else "0.9.8",
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
inherit version;
|
|
pname = "uuidm";
|
|
src = fetchurl {
|
|
url = "https://erratique.ch/software/uuidm/releases/uuidm-${version}.tbz";
|
|
hash =
|
|
{
|
|
"0.9.10" = "sha256-kWVZSofWMyky5nAuxoh1xNhwMKZ2qUahL3Dh27J36Vc=";
|
|
"0.9.8" = "sha256-/GZbkJVDQu1UY8SliK282kUWAVMfOnpQadUlRT/tJrM=";
|
|
}
|
|
."${version}";
|
|
};
|
|
|
|
strictDeps = true;
|
|
|
|
nativeBuildInputs = [
|
|
ocaml
|
|
findlib
|
|
ocamlbuild
|
|
topkg
|
|
];
|
|
configurePlatforms = [ ];
|
|
buildInputs = [
|
|
topkg
|
|
(if lib.versionAtLeast version "0.9.10" then cmdliner else cmdliner_1)
|
|
];
|
|
|
|
inherit (topkg) buildPhase installPhase;
|
|
|
|
meta = {
|
|
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";
|
|
homepage = "https://erratique.ch/software/uuidm";
|
|
license = lib.licenses.bsd3;
|
|
maintainers = [ lib.maintainers.maurer ];
|
|
mainProgram = "uuidtrip";
|
|
inherit (ocaml.meta) platforms;
|
|
broken = !(lib.versionAtLeast ocaml.version "4.08");
|
|
};
|
|
}
|