Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: cf30b008c992
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 1ce26aacd1bb
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Nov 13, 2020

  1. Copy the full SHA
    1ce26aa View commit details
Showing with 12 additions and 12 deletions.
  1. +12 −12 pkgs/development/ocaml-modules/digestif/default.nix
24 changes: 12 additions & 12 deletions pkgs/development/ocaml-modules/digestif/default.nix
Original file line number Diff line number Diff line change
@@ -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";