nixpkgs-suyu/pkgs/development/ocaml-modules/digestif/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
885 B
Nix
Raw Normal View History

{ lib, ocaml, fetchurl, buildDunePackage
, pkg-config, which
, eqaf
, alcotest, astring, bos, findlib, fpath
2019-10-07 08:48:15 +02:00
}:
2019-10-07 08:48:15 +02:00
buildDunePackage rec {
pname = "digestif";
version = "1.1.2";
minimalOCamlVersion = "4.08";
src = fetchurl {
url = "https://github.com/mirage/digestif/releases/download/v${version}/digestif-${version}.tbz";
sha256 = "sha256-edNM5ROxFIV+OAqr328UcyGPGwXdflHQOJB3ntAbRmY=";
};
nativeBuildInputs = [ findlib which ];
buildInputs = [ ocaml ];
propagatedBuildInputs = [ eqaf ];
checkInputs = [ alcotest astring bos fpath ];
doCheck = true;
postCheck = ''
ocaml -I ${findlib}/lib/ocaml/${ocaml.version}/site-lib/ test/test_runes.ml
'';
meta = {
description = "Simple hash algorithms in OCaml";
homepage = "https://github.com/mirage/digestif";
2019-10-07 08:48:15 +02:00
license = lib.licenses.mit;
maintainers = [ lib.maintainers.vbgl ];
};
}