bashunit: 0.26.0 -> 0.36.0
This commit is contained in:
@@ -3,7 +3,12 @@
|
||||
lib,
|
||||
fetchFromGitHub,
|
||||
bash,
|
||||
bc,
|
||||
gitMinimal,
|
||||
gnugrep,
|
||||
jq,
|
||||
which,
|
||||
writableTmpDirAsHomeHook,
|
||||
versionCheckHook,
|
||||
coreutils,
|
||||
makeBinaryWrapper,
|
||||
@@ -12,13 +17,13 @@
|
||||
|
||||
stdenvNoCC.mkDerivation (finalAttrs: {
|
||||
pname = "bashunit";
|
||||
version = "0.26.0";
|
||||
version = "0.36.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "TypedDevs";
|
||||
repo = "bashunit";
|
||||
tag = finalAttrs.version;
|
||||
hash = "sha256-cZ2fcm4OxA3Ly8QRkOQSjaSZW80/Pu2z10+iN4pDFOs=";
|
||||
hash = "sha256-alhqJ7coRk5O4dYGx8m6u8/j7KMfr2m9Jeb5pn0wwiU=";
|
||||
forceFetchGit = true; # needed to include the tests directory for the check phase
|
||||
};
|
||||
|
||||
@@ -43,9 +48,21 @@ stdenvNoCC.mkDerivation (finalAttrs: {
|
||||
'';
|
||||
|
||||
doCheck = true;
|
||||
nativeCheckInputs = [ which ];
|
||||
nativeCheckInputs = [
|
||||
bc
|
||||
gitMinimal
|
||||
jq
|
||||
which
|
||||
];
|
||||
checkPhase = ''
|
||||
runHook preCheck
|
||||
patchShebangs bin/bashunit
|
||||
''
|
||||
# Disabling a failing test on Darwin platforms only
|
||||
+ lib.optionalString stdenvNoCC.hostPlatform.isDarwin ''
|
||||
rm tests/unit/console_results_test.sh
|
||||
''
|
||||
+ ''
|
||||
make test
|
||||
runHook postCheck
|
||||
'';
|
||||
@@ -54,14 +71,21 @@ stdenvNoCC.mkDerivation (finalAttrs: {
|
||||
wrapProgram $out/bin/bashunit \
|
||||
--prefix PATH : "${
|
||||
lib.makeBinPath [
|
||||
coreutils
|
||||
coreutils # cat, mktemp
|
||||
gnugrep # grep
|
||||
which
|
||||
]
|
||||
}"
|
||||
'';
|
||||
|
||||
nativeInstallCheckInputs = [ versionCheckHook ];
|
||||
nativeInstallCheckInputs = [
|
||||
versionCheckHook
|
||||
writableTmpDirAsHomeHook
|
||||
];
|
||||
doInstallCheck = true;
|
||||
versionCheckKeepEnvironment = [
|
||||
"HOME"
|
||||
];
|
||||
|
||||
passthru.updateScript = nix-update-script { };
|
||||
|
||||
|
||||
Reference in New Issue
Block a user