bash-preexec: 0.6.0 -> 0.7.0

Bump bash-preexec to the latest version in order to:
1. keep nixpkgs up to date; and more selfishly
2. resolve https://github.com/nix-community/home-manager/issues/5958.

The fix for the above listed issue is included in bash-preexec 0.7.0.
Note that in order to sucessfully build, we need to patch a newly added
test, otherwise the `testPhase` fails.

Signed-off-by: squat <lserven@gmail.com>
This commit is contained in:
squat
2026-09-13 17:20:44 +02:00
parent c9853439b2
commit f7a2b117a1

View File

@@ -3,10 +3,11 @@
lib,
fetchFromGitHub,
bats,
git,
}:
let
version = "0.6.0";
version = "0.7.0";
in
stdenvNoCC.mkDerivation {
pname = "bash-preexec";
@@ -16,10 +17,13 @@ stdenvNoCC.mkDerivation {
owner = "rcaloras";
repo = "bash-preexec";
tag = version;
hash = "sha256-4DzbeIiUX7iXy2CeSvRC2X+XnjVk+/UiMbM/dLHx7zU=";
hash = "sha256-/3cZkVQQAcsl3bA7WfvxDxw13NwBr5iylUNybENjV80=";
};
nativeCheckInputs = [ bats ];
nativeCheckInputs = [
bats
git
];
dontConfigure = true;
doCheck = true;
@@ -35,6 +39,10 @@ stdenvNoCC.mkDerivation {
# See https://github.com/rcaloras/bash-preexec/issues/121
sed -i '/^@test.*IFS/,/^}/d' test/bash-preexec.bats
# release-script.bats executes script/release directly; its
# `#!/usr/bin/env bash` shebang fails in the sandbox (no /usr/bin/env).
patchShebangs script/release
runHook postPatch
'';