summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/uri
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2019-08-21 21:12:37 +0000
committerVincent Laporte <Vincent.Laporte@gmail.com>2019-08-21 21:12:37 +0000
commit136f739184a2f9d519aae188ccb2eba24307e2ce (patch)
treec19ef98e7b56d5bd716830a68e015bc48f172440 /pkgs/development/ocaml-modules/uri
parent88f57d450108cf291766c6f72e0927ac84e3cc95 (diff)
downloadnixpkgs-136f739184a2f9d519aae188ccb2eba24307e2ce.tar
nixpkgs-136f739184a2f9d519aae188ccb2eba24307e2ce.tar.gz
nixpkgs-136f739184a2f9d519aae188ccb2eba24307e2ce.tar.bz2
nixpkgs-136f739184a2f9d519aae188ccb2eba24307e2ce.tar.lz
nixpkgs-136f739184a2f9d519aae188ccb2eba24307e2ce.tar.xz
nixpkgs-136f739184a2f9d519aae188ccb2eba24307e2ce.tar.zst
nixpkgs-136f739184a2f9d519aae188ccb2eba24307e2ce.zip
ocamlPackages.uri-sexp: init at 3.0.0
Diffstat (limited to 'pkgs/development/ocaml-modules/uri')
-rw-r--r--pkgs/development/ocaml-modules/uri/default.nix6
-rw-r--r--pkgs/development/ocaml-modules/uri/sexp.nix13
2 files changed, 16 insertions, 3 deletions
diff --git a/pkgs/development/ocaml-modules/uri/default.nix b/pkgs/development/ocaml-modules/uri/default.nix
index fd18413826b..e17e99cdc67 100644
--- a/pkgs/development/ocaml-modules/uri/default.nix
+++ b/pkgs/development/ocaml-modules/uri/default.nix
@@ -1,5 +1,5 @@
-{ lib, fetchurl, buildDunePackage, ppx_sexp_conv, ounit
-, re, sexplib0, stringext
+{ lib, fetchurl, buildDunePackage, ounit
+, re, stringext
 }:
 
 buildDunePackage rec {
@@ -12,7 +12,7 @@ buildDunePackage rec {
   };
 
   buildInputs = [ ounit ];
-  propagatedBuildInputs = [ ppx_sexp_conv re sexplib0 stringext ];
+  propagatedBuildInputs = [ re stringext ];
   doCheck = true;
 
   meta = {
diff --git a/pkgs/development/ocaml-modules/uri/sexp.nix b/pkgs/development/ocaml-modules/uri/sexp.nix
new file mode 100644
index 00000000000..c6f979e5a3e
--- /dev/null
+++ b/pkgs/development/ocaml-modules/uri/sexp.nix
@@ -0,0 +1,13 @@
+{ lib, ocaml, buildDunePackage, uri, ounit, ppx_sexp_conv, sexplib0 }:
+
+if !lib.versionAtLeast ocaml.version "4.04"
+then throw "uri-sexp is not available for OCaml ${ocaml.version}"
+else
+
+buildDunePackage {
+  pname = "uri-sexp";
+  inherit (uri) version src doCheck meta;
+
+  buildInputs = [ ounit ];
+  propagatedBuildInputs = [ ppx_sexp_conv sexplib0 uri ];
+}