2016-10-08 07:44:25 +01:00
|
|
|
{ stdenv, fetchurl, ocaml, findlib, ocamlbuild }:
|
2015-06-10 22:41:15 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "0.9.5";
|
|
|
|
name = "uuidm-${version}";
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://erratique.ch/software/uuidm/releases/uuidm-${version}.tbz";
|
|
|
|
sha256 = "03bgxs119bphv9ggg97nsl5m61s43ixgby05hhggv16iadx9zndm";
|
|
|
|
};
|
|
|
|
|
|
|
|
unpackCmd = "tar -xf $curSrc";
|
|
|
|
|
2016-10-08 07:44:25 +01:00
|
|
|
buildInputs = [ ocaml findlib ocamlbuild ];
|
2015-06-10 22:41:15 +01:00
|
|
|
|
|
|
|
configurePhase = "ocaml setup.ml -configure --prefix $prefix";
|
|
|
|
buildPhase = "ocaml setup.ml -build";
|
|
|
|
installPhase = "ocaml setup.ml -install";
|
|
|
|
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2016-02-27 17:24:00 +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";
|
2015-06-10 22:41:15 +01:00
|
|
|
homepage = http://erratique.ch/software/uuidm;
|
|
|
|
license = licenses.bsd3;
|
2015-12-24 17:49:07 +00:00
|
|
|
platforms = ocaml.meta.platforms or [];
|
2015-06-10 22:41:15 +01:00
|
|
|
maintainers = [ maintainers.maurer ];
|
|
|
|
};
|
|
|
|
}
|