ocamlPackages.digestif: 0.8.0 → 0.9.0

This commit is contained in:
Vincent Laporte 2020-11-07 14:35:57 +01:00 committed by Vincent Laporte
parent cf30b008c9
commit 1ce26aacd1

View file

@ -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";