3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/ocaml-modules/checkseum/default.nix
Vincent Laporte 8632698b06 ocamlPackages.checkseum: 0.0.3 → 0.1.1
This fixes the “decompress” library on non-x86_64 platforms
2019-11-05 07:13:09 +00:00

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