2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchurl, ocaml, findlib, ocamlbuild, topkg, cmdliner }:
|
2015-06-10 21:41:15 +00:00
|
|
|
|
2022-10-06 05:18:27 +00:00
|
|
|
lib.throwIfNot (lib.versionAtLeast ocaml.version "4.08")
|
|
|
|
"uuidm is not available for OCaml ${ocaml.version}"
|
|
|
|
|
2015-06-10 21:41:15 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2022-09-23 00:50:10 +00:00
|
|
|
version = "0.9.8";
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "uuidm";
|
2015-06-10 21:41:15 +00:00
|
|
|
src = fetchurl {
|
2019-04-22 08:14:28 +00:00
|
|
|
url = "https://erratique.ch/software/uuidm/releases/uuidm-${version}.tbz";
|
2022-09-23 00:50:10 +00:00
|
|
|
sha256 = "sha256-/GZbkJVDQu1UY8SliK282kUWAVMfOnpQadUlRT/tJrM=";
|
2015-06-10 21:41:15 +00:00
|
|
|
};
|
|
|
|
|
2023-05-30 15:05:44 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace pkg/META --replace "bytes" ""
|
|
|
|
'';
|
|
|
|
|
2022-03-01 15:42:22 +00:00
|
|
|
strictDeps = true;
|
|
|
|
|
2022-02-22 09:59:04 +00:00
|
|
|
nativeBuildInputs = [ ocaml findlib ocamlbuild topkg ];
|
2019-10-31 10:16:15 +00:00
|
|
|
configurePlatforms = [];
|
|
|
|
buildInputs = [ topkg cmdliner ];
|
2015-06-10 21:41:15 +00:00
|
|
|
|
2017-10-14 12:53:46 +00:00
|
|
|
inherit (topkg) buildPhase installPhase;
|
2015-06-10 21:41:15 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2016-02-27 17:24:00 +00:00
|
|
|
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";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://erratique.ch/software/uuidm";
|
2015-06-10 21:41:15 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = [ maintainers.maurer ];
|
2022-05-09 17:30:27 +00:00
|
|
|
mainProgram = "uuidtrip";
|
2022-05-10 17:36:58 +00:00
|
|
|
inherit (ocaml.meta) platforms;
|
2015-06-10 21:41:15 +00:00
|
|
|
};
|
|
|
|
}
|