From 1ce26aacd1bb418672de796ac64edae162ffd109 Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Sat, 7 Nov 2020 14:35:57 +0100 Subject: [PATCH] =?UTF-8?q?ocamlPackages.digestif:=200.8.0=20=E2=86=92=200?= =?UTF-8?q?.9.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ocaml-modules/digestif/default.nix | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/pkgs/development/ocaml-modules/digestif/default.nix b/pkgs/development/ocaml-modules/digestif/default.nix index d02104decba3..dd8a0f571649 100644 --- a/pkgs/development/ocaml-modules/digestif/default.nix +++ b/pkgs/development/ocaml-modules/digestif/default.nix @@ -1,27 +1,27 @@ -{ lib, fetchurl, fetchpatch, buildDunePackage +{ lib, ocaml, fetchurl, buildDunePackage , bigarray-compat, eqaf, stdlib-shims -, alcotest +, alcotest, astring, bos, findlib, fpath }: buildDunePackage rec { pname = "digestif"; - version = "0.8.0"; + version = "0.9.0"; + + useDune2 = true; src = fetchurl { url = "https://github.com/mirage/digestif/releases/download/v${version}/digestif-v${version}.tbz"; - sha256 = "09g4zngqiw97cljv8ds4m063wcxz3y7c7vzaprsbpjzi0ja5jdcy"; + sha256 = "0vk9prgjp46xs8qizq7szkj6mqjj2ymncs2016bc8zswcdc1a3q4"; }; - # Fix tests with alcotest ≥ 1 - patches = [ (fetchpatch { - url = "https://github.com/mirage/digestif/commit/b65d996c692d75da0a81323253429e07d14b72b6.patch"; - sha256 = "0sf7qglcp19dhs65pwrrc7d9v57icf18jsrhpmvwskx8b4dchfiv"; - })]; - - buildInputs = lib.optional doCheck alcotest; propagatedBuildInputs = [ bigarray-compat eqaf stdlib-shims ]; - doCheck = true; + checkInputs = [ alcotest astring bos fpath ]; + doCheck = lib.versionAtLeast ocaml.version "4.05"; + + postCheck = '' + ocaml -I ${findlib}/lib/ocaml/${ocaml.version}/site-lib/ test/test_runes.ml + ''; meta = { description = "Simple hash algorithms in OCaml";