diff options
author | Vincent Laporte <Vincent.Laporte@gmail.com> | 2015-01-09 10:28:35 +0100 |
---|---|---|
committer | Vincent Laporte <Vincent.Laporte@gmail.com> | 2015-01-09 10:28:36 +0100 |
commit | 310623ad6c94ac3d8a2ca7fc9a4b08e97e8eb0a1 (patch) | |
tree | 42bfc4ac9da0c9854ed934d571e00097d5e7b08b /pkgs/development/ocaml-modules | |
parent | 3b3839e6ea2b710a505b3c9da6a34a86aa0cb0ed (diff) | |
download | nixlib-310623ad6c94ac3d8a2ca7fc9a4b08e97e8eb0a1.tar nixlib-310623ad6c94ac3d8a2ca7fc9a4b08e97e8eb0a1.tar.gz nixlib-310623ad6c94ac3d8a2ca7fc9a4b08e97e8eb0a1.tar.bz2 nixlib-310623ad6c94ac3d8a2ca7fc9a4b08e97e8eb0a1.tar.lz nixlib-310623ad6c94ac3d8a2ca7fc9a4b08e97e8eb0a1.tar.xz nixlib-310623ad6c94ac3d8a2ca7fc9a4b08e97e8eb0a1.tar.zst nixlib-310623ad6c94ac3d8a2ca7fc9a4b08e97e8eb0a1.zip |
Addg ocaml-uri
RFC3986 URI parsing library for OCaml Homepage: https://github.com/mirage/ocaml-uri
Diffstat (limited to 'pkgs/development/ocaml-modules')
-rw-r--r-- | pkgs/development/ocaml-modules/uri/default.nix | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/uri/default.nix b/pkgs/development/ocaml-modules/uri/default.nix new file mode 100644 index 000000000000..a00a24081599 --- /dev/null +++ b/pkgs/development/ocaml-modules/uri/default.nix @@ -0,0 +1,33 @@ +{ stdenv, fetchgit, ocaml, findlib, re, sexplib, stringext }: + +let version = "1.7.2"; in + +stdenv.mkDerivation { + name = "ocaml-uri-${version}"; + + src = fetchgit { + url = https://github.com/mirage/ocaml-uri.git; + rev = "refs/tags/v${version}"; + sha256 = "19rq68dzvqzpqc2zvrk5sj1iklknnyrlbcps2vb8iw4cjlrnnaa1"; + }; + + buildInputs = [ ocaml findlib ]; + propagatedBuildInputs = [ re sexplib stringext ]; + + configurePhase = "ocaml setup.ml -configure --prefix $out"; + buildPhase = '' + ocaml setup.ml -build + ocaml setup.ml -doc + ''; + installPhase = "ocaml setup.ml -install"; + + createFindlibDestdir = true; + + meta = { + homepage = https://github.com/mirage/ocaml-uri; + platforms = ocaml.meta.platforms; + description = "RFC3986 URI parsing library for OCaml"; + license = stdenv.lib.licenses.isc; + maintainers = with stdenv.lib.maintainers; [ vbgl ]; + }; +} |