Merge pull request #230869 from ryansch/getoptions-macos

This commit is contained in:
Artturi
2023-05-11 22:34:14 +03:00
committed by GitHub
+6 -3
View File
@@ -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)";