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

27 lines
884 B
Nix
Raw Normal View History

2017-10-14 14:53:46 +02:00
{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, topkg, opam, cmdliner }:
2015-06-10 23:41:15 +02:00
stdenv.mkDerivation rec {
2017-10-14 14:53:46 +02:00
version = "0.9.6";
2015-06-10 23:41:15 +02:00
name = "uuidm-${version}";
src = fetchurl {
url = "http://erratique.ch/software/uuidm/releases/uuidm-${version}.tbz";
2017-10-14 14:53:46 +02:00
sha256 = "0hz4fdx0x16k0pw9995vkz5d1hmzz6b16wck9li399rcbfnv5jlc";
2015-06-10 23:41:15 +02:00
};
unpackCmd = "tar -xf $curSrc";
2017-10-14 14:53:46 +02:00
buildInputs = [ ocaml findlib ocamlbuild topkg opam cmdliner ];
2015-06-10 23:41:15 +02:00
2017-10-14 14:53:46 +02:00
inherit (topkg) buildPhase installPhase;
2015-06-10 23:41:15 +02:00
createFindlibDestdir = true;
meta = with stdenv.lib; {
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 23:41:15 +02:00
homepage = http://erratique.ch/software/uuidm;
license = licenses.bsd3;
platforms = ocaml.meta.platforms or [];
2015-06-10 23:41:15 +02:00
maintainers = [ maintainers.maurer ];
};
}