From 550dab224a26ec25e20e82c0c8bfc764e01b772e Mon Sep 17 00:00:00 2001 From: Robert Helgesson Date: Mon, 1 Nov 2021 23:44:51 +0100 Subject: [PATCH] bash-preexec: fix build with Bats 1.5.0 --- pkgs/development/libraries/bash/bash-preexec/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/development/libraries/bash/bash-preexec/default.nix b/pkgs/development/libraries/bash/bash-preexec/default.nix index db928729bd9a..fe8f63c685c4 100644 --- a/pkgs/development/libraries/bash/bash-preexec/default.nix +++ b/pkgs/development/libraries/bash/bash-preexec/default.nix @@ -21,6 +21,10 @@ in stdenvNoCC.mkDerivation { patchPhase = '' # Needed since the tests expect that HISTCONTROL is set. sed -i '/setup()/a HISTCONTROL=""' test/bash-preexec.bats + + # Skip tests failing with Bats 1.5.0. + # See https://github.com/rcaloras/bash-preexec/issues/121 + sed -i '/^@test.*IFS/,/^}/d' test/bash-preexec.bats ''; checkPhase = ''