Merge pull request #167734 from matrss/init/getoptions

This commit is contained in:
Sandro 2022-08-03 23:55:17 +02:00 committed by GitHub
commit a53adf6e7d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 41 additions and 0 deletions

View file

@ -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";

View 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 ];
};
}

View file

@ -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 {