summaryrefslogtreecommitdiffstats
path: root/pkgs/development/ocaml-modules/getopt/default.nix
blob: ad409c008a5459ecdf1f721c4f9698951638ff17 (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,
  fetchFromGitHub,
  buildDunePackage,
}:

buildDunePackage (finalAttrs: {
  pname = "getopt";
  version = "20230213";

  minimalOCamlVersion = "4.07";

  src = fetchFromGitHub {
    owner = "scemama";
    repo = "ocaml-getopt";
    rev = finalAttrs.version;
    hash = "sha256-oYDm945LgjIW+8x7UrO4FlbHywnu8480aiEVvnjBxc8=";
  };

  doCheck = true;

  meta = {
    homepage = "https://github.com/scemama/ocaml-getopt";
    description = "Parsing of command line arguments (similar to GNU GetOpt) for OCaml";
    license = lib.licenses.mit;
    maintainers = [ lib.maintainers.ulrikstrid ];
  };
})