git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #161778 from abathur/bats_1.6.0
commit010dc3ff389e1fc5877cd7680c592de193a39edf authorBen Siraphob <bensiraphob@gmail.com> dateFri 25 Feb 2022, 13:46 (5 years ago) parent1c979d97f3b4e9
1 file changed+5−3
pkgs/development/interpreters/bats/default.nix+5−3
pkgs/development/interpreters/bats/default.nix+5−3
@@ -1,22 +1,24 @@
11{ resholvePackage
22, lib
3+, stdenv
34, fetchFromGitHub
45, bash
56, coreutils
67, gnugrep
78, ncurses
9+, lsof
810, doInstallCheck ? true
911}:
1012
1113resholvePackage rec {
1214 pname = "bats";
13− version = "1.5.0";
15+ version = "1.6.0";
1416
1517 src = fetchFromGitHub {
1618 owner = "bats-core";
1719 repo = "bats-core";
1820 rev = "v${version}";
19− sha256 = "sha256-MEkMi2w8G9FZhE3JvzzbqObcErQ9WFXy5mtKwQOoxbk=";
21+ sha256 = "sha256-s+SAqX70WeTz6s5ObXYFBVPVUEqvD1d7AX2sGHkjVQ4=";
2022 };
2123
2224 patchPhase = ''
@@ -45,7 +47,7 @@ resholvePackage rec {
4547 };
4648
4749 inherit doInstallCheck;
48− installCheckInputs = [ ncurses ];
50+ installCheckInputs = [ ncurses ] ++ lib.optionals stdenv.isDarwin [ lsof ];
4951 installCheckPhase = ''
5052 # TODO: cut if https://github.com/bats-core/bats-core/issues/418 allows
5153 sed -i '/test works even if PATH is reset/a skip' test/bats.bats