nixpkgs/pkgs/development/ocaml-modules/uuidm/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
1.1 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, ocaml, findlib, ocamlbuild, topkg, cmdliner }:
2015-06-10 21:41:15 +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";
pname = "uuidm";
2015-06-10 21:41:15 +00:00
src = fetchurl {
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" ""
'';
strictDeps = true;
nativeBuildInputs = [ ocaml findlib ocamlbuild topkg ];
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
meta = with lib; {
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";
2015-06-10 21:41:15 +00:00
license = licenses.bsd3;
maintainers = [ maintainers.maurer ];
mainProgram = "uuidtrip";
inherit (ocaml.meta) platforms;
2015-06-10 21:41:15 +00:00
};
}