summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2015-01-08 00:19:13 +0100
committerVincent Laporte <Vincent.Laporte@gmail.com>2015-01-08 11:23:19 +0100
commitb6f8d1f6d5c45cc0dbbe72ea4bc518c46d47a239 (patch)
tree5fcc7552248547cb36fcaaa53558013205886511 /pkgs/development/ocaml-modules
parentec61a9ea5a83bf5ccabf6233a139777a068f567a (diff)
downloadnixpkgs-b6f8d1f6d5c45cc0dbbe72ea4bc518c46d47a239.tar
nixpkgs-b6f8d1f6d5c45cc0dbbe72ea4bc518c46d47a239.tar.gz
nixpkgs-b6f8d1f6d5c45cc0dbbe72ea4bc518c46d47a239.tar.bz2
nixpkgs-b6f8d1f6d5c45cc0dbbe72ea4bc518c46d47a239.tar.lz
nixpkgs-b6f8d1f6d5c45cc0dbbe72ea4bc518c46d47a239.tar.xz
nixpkgs-b6f8d1f6d5c45cc0dbbe72ea4bc518c46d47a239.tar.zst
nixpkgs-b6f8d1f6d5c45cc0dbbe72ea4bc518c46d47a239.zip
Adds ocaml-stringext
Extra string functions for OCaml

Homepage: https://github.com/rgrinberg/stringext
Diffstat (limited to 'pkgs/development/ocaml-modules')
-rw-r--r--pkgs/development/ocaml-modules/stringext/default.nix29
1 files changed, 29 insertions, 0 deletions
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 ];
+  };
+}