Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / ocaml-modules / checkseum / default.nix
blob7e3a17ac56007f42741334df1a9c55acb575277e
1 { lib, fetchurl, buildDunePackage, ocaml, dune-configurator
2 , optint
3 , fmt, rresult, bos, fpath, astring, alcotest
4 }:
6 buildDunePackage rec {
7   version = "0.5.2";
8   pname = "checkseum";
10   minimalOCamlVersion = "4.07";
12   src = fetchurl {
13     url = "https://github.com/mirage/checkseum/releases/download/v${version}/checkseum-${version}.tbz";
14     hash = "sha256-nl5P1EBctKi03wCHdUMlGDPgimSZ70LMuNulgt8Nr8g=";
15   };
17   buildInputs = [ dune-configurator ];
18   propagatedBuildInputs = [
19     optint
20   ];
22   checkInputs = [
23     alcotest
24     bos
25     astring
26     fmt
27     fpath
28     rresult
29   ];
31   doCheck = lib.versionAtLeast ocaml.version "4.08";
33   meta = {
34     description = "ADLER-32 and CRC32C Cyclic Redundancy Check";
35     homepage = "https://github.com/mirage/checkseum";
36     license = lib.licenses.mit;
37     maintainers = [ lib.maintainers.vbgl ];
38     mainProgram = "checkseum.checkseum";
39   };