3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/ocaml-modules/digestif/default.nix

33 lines
880 B
Nix
Raw Normal View History

{ lib, ocaml, fetchurl, buildDunePackage
2019-10-07 07:48:15 +01:00
, bigarray-compat, eqaf, stdlib-shims
, alcotest, astring, bos, findlib, fpath
2019-10-07 07:48:15 +01:00
}:
2019-10-07 07:48:15 +01:00
buildDunePackage rec {
pname = "digestif";
version = "0.9.0";
useDune2 = true;
src = fetchurl {
2019-10-07 07:48:15 +01:00
url = "https://github.com/mirage/digestif/releases/download/v${version}/digestif-v${version}.tbz";
sha256 = "0vk9prgjp46xs8qizq7szkj6mqjj2ymncs2016bc8zswcdc1a3q4";
};
2019-10-07 07:48:15 +01:00
propagatedBuildInputs = [ bigarray-compat eqaf stdlib-shims ];
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";
homepage = "https://github.com/mirage/digestif";
2019-10-07 07:48:15 +01:00
license = lib.licenses.mit;
maintainers = [ lib.maintainers.vbgl ];
};
}