depot/third_party/nixpkgs/pkgs/development/ocaml-modules/checkseum/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

28 lines
748 B
Nix

{ 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 ];
};
}