From 8c875e76f091b60e641d31d03c2621e4ac47734f Mon Sep 17 00:00:00 2001 From: Matthew Maurer Date: Wed, 10 Jun 2015 23:41:15 +0200 Subject: [PATCH] uuidm: init at 0.9.5 --- .../ocaml-modules/uuidm/default.nix | 28 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 30 insertions(+) create mode 100644 pkgs/development/ocaml-modules/uuidm/default.nix diff --git a/pkgs/development/ocaml-modules/uuidm/default.nix b/pkgs/development/ocaml-modules/uuidm/default.nix new file mode 100644 index 00000000000..0473f64bcdf --- /dev/null +++ b/pkgs/development/ocaml-modules/uuidm/default.nix @@ -0,0 +1,28 @@ +{stdenv, fetchurl, ocaml, findlib}: + +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"; + + buildInputs = [ocaml findlib]; + + configurePhase = "ocaml setup.ml -configure --prefix $prefix"; + buildPhase = "ocaml setup.ml -build"; + installPhase = "ocaml setup.ml -install"; + + 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."; + homepage = http://erratique.ch/software/uuidm; + license = licenses.bsd3; + platforms = ocaml.meta.platforms; + maintainers = [ maintainers.maurer ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 9ff13ba10c4..0193b64e299 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -4556,6 +4556,8 @@ let utop = callPackage ../development/tools/ocaml/utop { }; + uuidm = callPackage ../development/ocaml-modules/uuidm { }; + sawja = callPackage ../development/ocaml-modules/sawja { }; uucd = callPackage ../development/ocaml-modules/uucd { };