diff options
-rw-r--r-- | pkgs/development/ocaml-modules/stringext/default.nix | 29 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
2 files changed, 31 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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index b7e72ea9aa4..9437c9dab05 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -3861,6 +3861,8 @@ let sqlite3EZ = callPackage ../development/ocaml-modules/sqlite3EZ { }; + stringext = callPackage ../development/ocaml-modules/stringext { }; + twt = callPackage ../development/ocaml-modules/twt { }; utop = callPackage ../development/tools/ocaml/utop { }; |