My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
nomicon/pkgs/development/ocaml-modules/checkseum/default.nix

29 lines
748 B

{ lib, fetchurl, buildDunePackage
, bigarray-compat, optint
, cmdliner, fmt, rresult
, alcotest
}:
buildDunePackage rec {
version = "0.1.1";
pname = "checkseum";
src = fetchurl {
url = "https://github.com/mirage/checkseum/releases/download/v${version}/checkseum-v${version}.tbz";
sha256 = "0aa2r1l65a5hcgciw6n8r5ij4gpgg0cf9k24isybxiaiz63k94d3";
};
buildInputs = [ cmdliner fmt rresult ];
propagatedBuildInputs = [ bigarray-compat optint ];
checkInputs = lib.optionals doCheck [ alcotest ];
doCheck = true;
meta = {
homepage = "https://github.com/mirage/checkseum";
description = "ADLER-32 and CRC32C Cyclic Redundancy Check";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.vbgl ];
};
}