diff options
author | Vincent Laporte <Vincent.Laporte@gmail.com> | 2015-01-08 00:19:13 +0100 |
---|---|---|
committer | Vincent Laporte <Vincent.Laporte@gmail.com> | 2015-01-08 11:23:19 +0100 |
commit | b6f8d1f6d5c45cc0dbbe72ea4bc518c46d47a239 (patch) | |
tree | 5fcc7552248547cb36fcaaa53558013205886511 /pkgs/development/ocaml-modules | |
parent | ec61a9ea5a83bf5ccabf6233a139777a068f567a (diff) | |
download | nixlib-b6f8d1f6d5c45cc0dbbe72ea4bc518c46d47a239.tar nixlib-b6f8d1f6d5c45cc0dbbe72ea4bc518c46d47a239.tar.gz nixlib-b6f8d1f6d5c45cc0dbbe72ea4bc518c46d47a239.tar.bz2 nixlib-b6f8d1f6d5c45cc0dbbe72ea4bc518c46d47a239.tar.lz nixlib-b6f8d1f6d5c45cc0dbbe72ea4bc518c46d47a239.tar.xz nixlib-b6f8d1f6d5c45cc0dbbe72ea4bc518c46d47a239.tar.zst nixlib-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.nix | 29 |
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 000000000000..dde2b0ebe45c --- /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 ]; + }; +} |