Merge pull request #167734 from matrss/init/getoptions
This commit is contained in:
commit
a53adf6e7d
@ -8083,6 +8083,12 @@
|
||||
githubId = 1711539;
|
||||
name = "matklad";
|
||||
};
|
||||
matrss = {
|
||||
name = "Matthias Riße";
|
||||
email = "matthias.risze@t-online.de";
|
||||
github = "matrss";
|
||||
githubId = 9308656;
|
||||
};
|
||||
matt-snider = {
|
||||
email = "matt.snider@protonmail.com";
|
||||
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 ];
|
||||
};
|
||||
}
|
@ -6466,6 +6466,8 @@ with pkgs;
|
||||
|
||||
getopt = callPackage ../tools/misc/getopt { };
|
||||
|
||||
getoptions = callPackage ../tools/misc/getoptions { };
|
||||
|
||||
gexiv2 = callPackage ../development/libraries/gexiv2 { };
|
||||
|
||||
gftp = callPackage ../applications/networking/ftp/gftp {
|
||||
|
Loading…
Reference in New Issue
Block a user