at v192 28 lines 915 B view raw
1{stdenv, fetchurl, ocaml, findlib}: 2 3stdenv.mkDerivation rec { 4 version = "0.9.5"; 5 name = "uuidm-${version}"; 6 src = fetchurl { 7 url = "http://erratique.ch/software/uuidm/releases/uuidm-${version}.tbz"; 8 sha256 = "03bgxs119bphv9ggg97nsl5m61s43ixgby05hhggv16iadx9zndm"; 9 }; 10 11 unpackCmd = "tar -xf $curSrc"; 12 13 buildInputs = [ocaml findlib]; 14 15 configurePhase = "ocaml setup.ml -configure --prefix $prefix"; 16 buildPhase = "ocaml setup.ml -build"; 17 installPhase = "ocaml setup.ml -install"; 18 19 createFindlibDestdir = true; 20 21 meta = with stdenv.lib; { 22 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."; 23 homepage = http://erratique.ch/software/uuidm; 24 license = licenses.bsd3; 25 platforms = ocaml.meta.platforms; 26 maintainers = [ maintainers.maurer ]; 27 }; 28}