@@ -1,4 +1,4 @@
1−{ stdenv, buildGoPackage, fetchFromGitHub, groff, installShellFiles, util-linux }:
1+{ stdenv, buildGoPackage, fetchFromGitHub, git, groff, installShellFiles, util-linux }:
22
33buildGoPackage rec {
44 pname = "hub";
@@ -20,6 +20,8 @@ buildGoPackage rec {
2020
2121 postPatch = ''
2222 patchShebangs .
23+ substituteInPlace git/git.go --replace "cmd.New(\"git\")" "cmd.New(\"${git}/bin/git\")"
24+ substituteInPlace commands/args.go --replace "Executable: \"git\"" "Executable: \"${git}/bin/git\""
2325 '';
2426
2527 postInstall = ''