2019-10-29 06:31:14 +00:00
|
|
|
{ lib, fetchurl, buildDunePackage
|
|
|
|
, bigarray-compat, optint
|
|
|
|
, cmdliner, fmt, rresult
|
|
|
|
, alcotest
|
|
|
|
}:
|
2018-11-04 06:49:33 +00:00
|
|
|
|
2019-10-29 06:31:14 +00:00
|
|
|
buildDunePackage rec {
|
|
|
|
version = "0.1.1";
|
|
|
|
pname = "checkseum";
|
2018-11-04 06:49:33 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-10-29 06:31:14 +00:00
|
|
|
url = "https://github.com/mirage/checkseum/releases/download/v${version}/checkseum-v${version}.tbz";
|
|
|
|
sha256 = "0aa2r1l65a5hcgciw6n8r5ij4gpgg0cf9k24isybxiaiz63k94d3";
|
2018-11-04 06:49:33 +00:00
|
|
|
};
|
|
|
|
|
2019-10-29 06:31:14 +00:00
|
|
|
buildInputs = [ cmdliner fmt rresult ];
|
|
|
|
propagatedBuildInputs = [ bigarray-compat optint ];
|
|
|
|
checkInputs = lib.optionals doCheck [ alcotest ];
|
2018-11-04 06:49:33 +00:00
|
|
|
|
2019-10-29 06:31:14 +00:00
|
|
|
doCheck = true;
|
2019-10-21 06:36:52 +01:00
|
|
|
|
2018-11-04 06:49:33 +00:00
|
|
|
meta = {
|
|
|
|
homepage = "https://github.com/mirage/checkseum";
|
|
|
|
description = "ADLER-32 and CRC32C Cyclic Redundancy Check";
|
2019-10-29 06:31:14 +00:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = [ lib.maintainers.vbgl ];
|
2018-11-04 06:49:33 +00:00
|
|
|
};
|
|
|
|
}
|