Merge pull request #116508 from saschagrunert/bats
bats: 1.2.1 -> 1.3.0
This commit is contained in:
commit
5c663b24b6
@ -2,11 +2,11 @@
|
|||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "bats";
|
pname = "bats";
|
||||||
version = "1.2.1";
|
version = "1.3.0";
|
||||||
|
|
||||||
src = fetchzip {
|
src = fetchzip {
|
||||||
url = "https://github.com/bats-core/bats-core/archive/v${version}.tar.gz";
|
url = "https://github.com/bats-core/bats-core/archive/v${version}.tar.gz";
|
||||||
hash = "sha256-grB/rJaDU0fuw4Hm3/9nI2px8KZnSWqRjTJPd7Mmb7s=";
|
hash = "sha256-+dboExOx2YELxV8Cwk9SVwk9G3p8EoP0LdaJ3o7GT6c=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ makeWrapper ];
|
nativeBuildInputs = [ makeWrapper ];
|
||||||
@ -22,6 +22,9 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
inherit doCheck;
|
inherit doCheck;
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
|
# TODO: cut if https://github.com/bats-core/bats-core/issues/418 allows
|
||||||
|
sed -i '/test works even if PATH is reset/a skip' test/bats.bats
|
||||||
|
|
||||||
# test generates file with absolute shebang dynamically
|
# test generates file with absolute shebang dynamically
|
||||||
substituteInPlace test/install.bats --replace \
|
substituteInPlace test/install.bats --replace \
|
||||||
"/usr/bin/env bash" "${bash}/bin/bash"
|
"/usr/bin/env bash" "${bash}/bin/bash"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user