nixpkgs/pkgs/development/ocaml-modules/getopt/default.nix
2026-05-12 13:36:27 -05:00

28 lines
607 B
Nix

{
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 ];
};
})