2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, ocaml, findlib, ocamlbuild, topkg, cmdliner }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
lib.throwIfNot (lib.versionAtLeast ocaml.version "4.08")
|
|
|
|
"uuidm is not available for OCaml ${ocaml.version}"
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2022-09-30 11:47:45 +00:00
|
|
|
version = "0.9.8";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "uuidm";
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://erratique.ch/software/uuidm/releases/uuidm-${version}.tbz";
|
2022-09-30 11:47:45 +00:00
|
|
|
sha256 = "sha256-/GZbkJVDQu1UY8SliK282kUWAVMfOnpQadUlRT/tJrM=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-02-09 11:40:11 +00:00
|
|
|
strictDeps = true;
|
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
nativeBuildInputs = [ ocaml findlib ocamlbuild topkg ];
|
2020-04-24 23:36:52 +00:00
|
|
|
configurePlatforms = [];
|
|
|
|
buildInputs = [ topkg cmdliner ];
|
|
|
|
|
|
|
|
inherit (topkg) buildPhase installPhase;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "An 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 = licenses.bsd3;
|
|
|
|
maintainers = [ maintainers.maurer ];
|
2022-05-18 14:49:53 +00:00
|
|
|
mainProgram = "uuidtrip";
|
|
|
|
inherit (ocaml.meta) platforms;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|