diff --git a/pkgs/applications/version-management/git-and-tools/gh/default.nix b/pkgs/applications/version-management/git-and-tools/gh/default.nix index 38413f990a01..7c61c3329b20 100644 --- a/pkgs/applications/version-management/git-and-tools/gh/default.nix +++ b/pkgs/applications/version-management/git-and-tools/gh/default.nix @@ -1,4 +1,9 @@ -{ lib, fetchFromGitHub, buildGoModule, installShellFiles }: +{ lib +, fetchFromGitHub +, buildGoModule +, installShellFiles +, git +}: buildGoModule rec { pname = "gh"; @@ -30,8 +35,10 @@ buildGoModule rec { done ''; - # fails with `unable to find git executable in PATH` - doCheck = false; + checkInputs = [ git ]; + checkPhase = '' + make test + ''; meta = with lib; { description = "GitHub CLI tool";