mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 02:06:46 +01:00
a13cdfe520
To keep this for the future we also strictDeps where possible, including for janePackages, topkg, oasis and ocamlbuild. This makes some closures significantly smaller and makes cross compilation easier
39 lines
995 B
Nix
39 lines
995 B
Nix
{ lib, ocaml, fetchurl, buildDunePackage
|
|
, pkg-config, which
|
|
, bigarray-compat, eqaf, stdlib-shims
|
|
, alcotest, astring, bos, findlib, fpath
|
|
}:
|
|
|
|
buildDunePackage rec {
|
|
pname = "digestif";
|
|
version = "1.1.0";
|
|
|
|
useDune2 = true;
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/mirage/digestif/releases/download/v${version}/digestif-v${version}.tbz";
|
|
sha256 = "01gwkbrznci4xdcbww4ysgsciz2qs0r8jsmhp0siwbcgcrf1jjv5";
|
|
};
|
|
|
|
nativeBuildInputs = [ findlib which ];
|
|
buildInputs = [ ocaml ];
|
|
|
|
propagatedBuildInputs = [ bigarray-compat eqaf stdlib-shims ];
|
|
|
|
strictDeps = !doCheck;
|
|
|
|
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";
|
|
license = lib.licenses.mit;
|
|
maintainers = [ lib.maintainers.vbgl ];
|
|
};
|
|
}
|