summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/getopt/default.nix
blob: db03f7b079399e009f4e8b814b9a5ef5adb2a58f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ lib, fetchFromGitHub, buildDunePackage }:

buildDunePackage rec {
  pname = "getopt";
  version = "20230213";

  minimalOCamlVersion = "4.07";

  src = fetchFromGitHub {
    owner = "scemama";
    repo = "ocaml-getopt";
    rev = 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 ];
  };
}