mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 07:53:19 +00:00
Merge pull request #161778 from abathur/bats_1.6.0
This commit is contained in:
commit
010dc3ff38
@ -1,22 +1,24 @@
|
||||
{ resholvePackage
|
||||
, lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, bash
|
||||
, coreutils
|
||||
, gnugrep
|
||||
, ncurses
|
||||
, lsof
|
||||
, doInstallCheck ? true
|
||||
}:
|
||||
|
||||
resholvePackage rec {
|
||||
pname = "bats";
|
||||
version = "1.5.0";
|
||||
version = "1.6.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "bats-core";
|
||||
repo = "bats-core";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-MEkMi2w8G9FZhE3JvzzbqObcErQ9WFXy5mtKwQOoxbk=";
|
||||
sha256 = "sha256-s+SAqX70WeTz6s5ObXYFBVPVUEqvD1d7AX2sGHkjVQ4=";
|
||||
};
|
||||
|
||||
patchPhase = ''
|
||||
@ -45,7 +47,7 @@ resholvePackage rec {
|
||||
};
|
||||
|
||||
inherit doInstallCheck;
|
||||
installCheckInputs = [ ncurses ];
|
||||
installCheckInputs = [ ncurses ] ++ lib.optionals stdenv.isDarwin [ lsof ];
|
||||
installCheckPhase = ''
|
||||
# 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
|
||||
|
Loading…
Reference in New Issue
Block a user