getoptions: init at 3.3.0
This commit is contained in:
parent
a62b1ef977
commit
e824dfe501
3 changed files with 41 additions and 0 deletions
|
@ -7758,6 +7758,12 @@
|
||||||
githubId = 1711539;
|
githubId = 1711539;
|
||||||
name = "matklad";
|
name = "matklad";
|
||||||
};
|
};
|
||||||
|
matrss = {
|
||||||
|
name = "Matthias Riße";
|
||||||
|
email = "matthias.risze@t-online.de";
|
||||||
|
github = "matrss";
|
||||||
|
githubId = 9308656;
|
||||||
|
};
|
||||||
matt-snider = {
|
matt-snider = {
|
||||||
email = "matt.snider@protonmail.com";
|
email = "matt.snider@protonmail.com";
|
||||||
github = "matt-snider";
|
github = "matt-snider";
|
||||||
|
|
33
pkgs/tools/misc/getoptions/default.nix
Normal file
33
pkgs/tools/misc/getoptions/default.nix
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
{ lib, stdenvNoCC, fetchFromGitHub, shellcheck, shellspec, busybox-sandbox-shell, ksh, mksh, yash, zsh }:
|
||||||
|
|
||||||
|
stdenvNoCC.mkDerivation rec {
|
||||||
|
pname = "getoptions";
|
||||||
|
version = "3.3.0";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "ko1nksm";
|
||||||
|
repo = "getoptions";
|
||||||
|
rev = "v${version}";
|
||||||
|
hash = "sha256-kUQ0dPjPr/A/btgFQu13ZLklnI284Ij74hCYbGgzF3A=";
|
||||||
|
};
|
||||||
|
|
||||||
|
makeFlags = [ "PREFIX=${placeholder "out"}" ];
|
||||||
|
|
||||||
|
doCheck = true;
|
||||||
|
|
||||||
|
checkInputs = [ shellcheck shellspec busybox-sandbox-shell ksh mksh yash zsh ];
|
||||||
|
|
||||||
|
preCheck = ''
|
||||||
|
sed -i '/shellspec -s posh/d' Makefile
|
||||||
|
'';
|
||||||
|
|
||||||
|
checkTarget = "check testall";
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "An elegant option/argument parser for shell scripts (full support for bash and all POSIX shells)";
|
||||||
|
homepage = "https://github.com/ko1nksm/getoptions";
|
||||||
|
license = licenses.cc0;
|
||||||
|
platforms = platforms.all;
|
||||||
|
maintainers = with maintainers; [ matrss ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -5818,6 +5818,8 @@ with pkgs;
|
||||||
|
|
||||||
getopt = callPackage ../tools/misc/getopt { };
|
getopt = callPackage ../tools/misc/getopt { };
|
||||||
|
|
||||||
|
getoptions = callPackage ../tools/misc/getoptions { };
|
||||||
|
|
||||||
gexiv2 = callPackage ../development/libraries/gexiv2 { };
|
gexiv2 = callPackage ../development/libraries/gexiv2 { };
|
||||||
|
|
||||||
gftp = callPackage ../applications/networking/ftp/gftp {
|
gftp = callPackage ../applications/networking/ftp/gftp {
|
||||||
|
|
Loading…
Reference in a new issue