git.iko.soy/typeable/nixpkgs
on master help sign in
Addg ocaml-uri

RFC3986 URI parsing library for OCaml Homepage: https://github.com/mirage/ocaml-uri

commit310623ad6c94ac3d8a2ca7fc9a4b08e97e8eb0a1 authorVincent Laporte <Vincent.Laporte@gmail.com> dateFri 9 Jan 2015, 10:28 (12 years ago) parent3b3839e
2 files changed+38
pkgs/development/ocaml-modules/uri/default.nix+33 pkgs/top-level/all-packages.nix+5
pkgs/development/ocaml-modules/uri/default.nixnew file+33
@@ -0,0 +1,33 @@
1+{ stdenv, fetchgit, ocaml, findlib, re, sexplib, stringext }:
2+
3+let version = "1.7.2"; in
4+
5+stdenv.mkDerivation {
6+ name = "ocaml-uri-${version}";
7+
8+ src = fetchgit {
9+ url = https://github.com/mirage/ocaml-uri.git;
10+ rev = "refs/tags/v${version}";
11+ sha256 = "19rq68dzvqzpqc2zvrk5sj1iklknnyrlbcps2vb8iw4cjlrnnaa1";
12+ };
13+
14+ buildInputs = [ ocaml findlib ];
15+ propagatedBuildInputs = [ re sexplib stringext ];
16+
17+ configurePhase = "ocaml setup.ml -configure --prefix $out";
18+ buildPhase = ''
19+ ocaml setup.ml -build
20+ ocaml setup.ml -doc
21+ '';
22+ installPhase = "ocaml setup.ml -install";
23+
24+ createFindlibDestdir = true;
25+
26+ meta = {
27+ homepage = https://github.com/mirage/ocaml-uri;
28+ platforms = ocaml.meta.platforms;
29+ description = "RFC3986 URI parsing library for OCaml";
30+ license = stdenv.lib.licenses.isc;
31+ maintainers = with stdenv.lib.maintainers; [ vbgl ];
32+ };
33+}
pkgs/top-level/all-packages.nix+5
@@ -3880,6 +3880,11 @@ let
38803880 uucd = callPackage ../development/ocaml-modules/uucd { };
38813881 uucp = callPackage ../development/ocaml-modules/uucp { };
38823882 uunf = callPackage ../development/ocaml-modules/uunf { };
3883+
3884+ uri = callPackage ../development/ocaml-modules/uri {
3885+ sexplib = ocaml_sexplib;
3886+ };
3887+
38833888 uuseg = callPackage ../development/ocaml-modules/uuseg { };
38843889 uutf = callPackage ../development/ocaml-modules/uutf { };
38853890