summaryrefslogtreecommitdiffstats
path: root/pkgs/development/ocaml-modules/cmdliner-stdlib/default.nix
blob: 1a4185cd4d4419a96d7f4429f61281992d99f3d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{
  lib,
  fetchurl,
  buildDunePackage,
  cmdliner,
}:

buildDunePackage (finalAttrs: {
  pname = "cmdliner-stdlib";
  version = "1.0.1";

  src = fetchurl {
    url = "https://github.com/mirage/cmdliner-stdlib/releases/download/${finalAttrs.version}/cmdliner-stdlib-${finalAttrs.version}.tbz";
    hash = "sha256-GbW5Y8Ibb+mNL2LkBOU2EcO8x7r1OO/QH1mO+Sgleq4=";
  };

  propagatedBuildInputs = [ cmdliner ];

  doCheck = true;

  meta = {
    description = "Collection of cmdliner terms to control OCaml runtime parameters";
    homepage = "https://github.com/mirage/cmdliner-stdlib";
    changelog = "https://raw.githubusercontent.com/mirage/cmdliner-stdlib/${finalAttrs.version}/CHANGES.md";
    license = lib.licenses.isc;
    maintainers = [ lib.maintainers.stepbrobd ];
  };
})