nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 fetchurl,
4 buildDunePackage,
5 ocaml,
6 dune-configurator,
7 optint,
8 fmt,
9 rresult,
10 bos,
11 fpath,
12 astring,
13 alcotest,
14}:
15
16buildDunePackage rec {
17 version = "0.5.2";
18 pname = "checkseum";
19
20 minimalOCamlVersion = "4.07";
21
22 src = fetchurl {
23 url = "https://github.com/mirage/checkseum/releases/download/v${version}/checkseum-${version}.tbz";
24 hash = "sha256-nl5P1EBctKi03wCHdUMlGDPgimSZ70LMuNulgt8Nr8g=";
25 };
26
27 buildInputs = [ dune-configurator ];
28 propagatedBuildInputs = [
29 optint
30 ];
31
32 checkInputs = [
33 alcotest
34 bos
35 astring
36 fmt
37 fpath
38 rresult
39 ];
40
41 doCheck = lib.versionAtLeast ocaml.version "4.08";
42
43 meta = {
44 description = "ADLER-32 and CRC32C Cyclic Redundancy Check";
45 homepage = "https://github.com/mirage/checkseum";
46 license = lib.licenses.mit;
47 maintainers = [ lib.maintainers.vbgl ];
48 mainProgram = "checkseum.checkseum";
49 };
50}