Merge pull request #230869 from ryansch/getoptions-macos
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{ lib, stdenvNoCC, fetchFromGitHub, shellcheck, shellspec, busybox-sandbox-shell, ksh, mksh, yash, zsh }:
|
||||
{ lib, stdenvNoCC, fetchFromGitHub, shellspec, busybox-sandbox-shell, ksh, mksh, yash, zsh }:
|
||||
|
||||
stdenvNoCC.mkDerivation rec {
|
||||
pname = "getoptions";
|
||||
@@ -15,13 +15,16 @@ stdenvNoCC.mkDerivation rec {
|
||||
|
||||
doCheck = true;
|
||||
|
||||
nativeCheckInputs = [ shellcheck shellspec busybox-sandbox-shell ksh mksh yash zsh ];
|
||||
nativeCheckInputs = [ shellspec ksh mksh yash zsh ]
|
||||
++ lib.lists.optional (!stdenvNoCC.isDarwin) busybox-sandbox-shell;
|
||||
|
||||
preCheck = ''
|
||||
sed -i '/shellspec -s posh/d' Makefile
|
||||
'' + lib.strings.optionalString stdenvNoCC.isDarwin ''
|
||||
sed -i "/shellspec -s 'busybox ash'/d" Makefile
|
||||
'';
|
||||
|
||||
checkTarget = "check testall";
|
||||
checkTarget = "testall";
|
||||
|
||||
meta = with lib; {
|
||||
description = "An elegant option/argument parser for shell scripts (full support for bash and all POSIX shells)";
|
||||
|
||||
Reference in New Issue
Block a user