From d702e6e6ab1206b34e282e5a22ef2f3958a457c1 Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Sun, 6 Dec 2020 09:36:39 +0100 Subject: [PATCH] =?UTF-8?q?ocamlPackages.uri:=203.1.0=20=E2=86=92=204.0.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkgs/development/ocaml-modules/uri/default.nix | 12 +++++++----- pkgs/development/ocaml-modules/uri/sexp.nix | 5 +++-- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/pkgs/development/ocaml-modules/uri/default.nix b/pkgs/development/ocaml-modules/uri/default.nix index 6a7c03b9bb6..7933b3bd8d4 100644 --- a/pkgs/development/ocaml-modules/uri/default.nix +++ b/pkgs/development/ocaml-modules/uri/default.nix @@ -1,19 +1,21 @@ { lib, fetchurl, buildDunePackage, ounit -, re, stringext +, angstrom, stringext }: buildDunePackage rec { minimumOCamlVersion = "4.03"; pname = "uri"; - version = "3.1.0"; + version = "4.0.0"; + + useDune2 = true; src = fetchurl { url = "https://github.com/mirage/ocaml-${pname}/releases/download/v${version}/${pname}-v${version}.tbz"; - sha256 = "0hxc2mshmqxz2qmjya47dzf858s6lsf3xvqswpzprkvhv0zq4ln4"; + sha256 = "13r9nkgym9z3dqxkyf0yyaqlrk5r3pjdw0kfzvrc90bmhwl9j380"; }; - buildInputs = [ ounit ]; - propagatedBuildInputs = [ re stringext ]; + checkInputs = [ ounit ]; + propagatedBuildInputs = [ angstrom stringext ]; doCheck = true; meta = { diff --git a/pkgs/development/ocaml-modules/uri/sexp.nix b/pkgs/development/ocaml-modules/uri/sexp.nix index c6f979e5a3e..83be70c3649 100644 --- a/pkgs/development/ocaml-modules/uri/sexp.nix +++ b/pkgs/development/ocaml-modules/uri/sexp.nix @@ -6,8 +6,9 @@ else buildDunePackage { pname = "uri-sexp"; - inherit (uri) version src doCheck meta; + inherit (uri) version useDune2 src meta; - buildInputs = [ ounit ]; + checkInputs = [ ounit ]; propagatedBuildInputs = [ ppx_sexp_conv sexplib0 uri ]; + doCheck = lib.versionAtLeast ocaml.version "4.08"; }