ocamlPackages.uri-sexp: init at 3.0.0

This commit is contained in:
Vincent Laporte 2019-08-21 21:12:37 +00:00
parent 88f57d4501
commit 136f739184
No known key found for this signature in database
GPG Key ID: EBD582ADDDB1F81F
3 changed files with 18 additions and 3 deletions

View File

@ -1,5 +1,5 @@
{ lib, fetchurl, buildDunePackage, ppx_sexp_conv, ounit { lib, fetchurl, buildDunePackage, ounit
, re, sexplib0, stringext , re, stringext
}: }:
buildDunePackage rec { buildDunePackage rec {
@ -12,7 +12,7 @@ buildDunePackage rec {
}; };
buildInputs = [ ounit ]; buildInputs = [ ounit ];
propagatedBuildInputs = [ ppx_sexp_conv re sexplib0 stringext ]; propagatedBuildInputs = [ re stringext ];
doCheck = true; doCheck = true;
meta = { meta = {

View File

@ -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 ];
}

View File

@ -768,6 +768,8 @@ let
then callPackage ../development/ocaml-modules/uri { } then callPackage ../development/ocaml-modules/uri { }
else callPackage ../development/ocaml-modules/uri/legacy.nix { }; else callPackage ../development/ocaml-modules/uri/legacy.nix { };
uri-sexp = callPackage ../development/ocaml-modules/uri/sexp.nix { };
uri_p4 = callPackage ../development/ocaml-modules/uri/legacy.nix { uri_p4 = callPackage ../development/ocaml-modules/uri/legacy.nix {
legacyVersion = true; legacyVersion = true;
}; };