From b6f8d1f6d5c45cc0dbbe72ea4bc518c46d47a239 Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Thu, 8 Jan 2015 00:19:13 +0100 Subject: Adds ocaml-stringext Extra string functions for OCaml Homepage: https://github.com/rgrinberg/stringext --- .../ocaml-modules/stringext/default.nix | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 pkgs/development/ocaml-modules/stringext/default.nix (limited to 'pkgs/development/ocaml-modules') diff --git a/pkgs/development/ocaml-modules/stringext/default.nix b/pkgs/development/ocaml-modules/stringext/default.nix new file mode 100644 index 00000000000..dde2b0ebe45 --- /dev/null +++ b/pkgs/development/ocaml-modules/stringext/default.nix @@ -0,0 +1,29 @@ +{ stdenv, fetchgit, ocaml, findlib }: + +let version = "1.2.0"; in + +stdenv.mkDerivation { + name = "ocaml-stringext-${version}"; + + src = fetchgit { + url = https://github.com/rgrinberg/stringext.git; + rev = "refs/tags/v${version}"; + sha256 = "04ixh33225n2fyc0i35pk7h9shxfdg9grhvkxy086zppki3a3vc6"; + }; + + buildInputs = [ ocaml findlib ]; + + configurePhase = "ocaml setup.ml -configure --prefix $out"; + buildPhase = "ocaml setup.ml -build"; + installPhase = "ocaml setup.ml -install"; + + createFindlibDestdir = true; + + meta = { + homepage = https://github.com/rgrinberg/stringext; + platforms = ocaml.meta.platforms; + description = "Extra string functions for OCaml"; + license = stdenv.lib.licenses.mit; + maintainers = with stdenv.lib.maintainers; [ vbgl ]; + }; +} -- cgit 1.4.1