mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-19 02:44:17 +03:00
hub: Replace git references
Hub fetches git from the environment by default. This can lead to hub installations without git available, which makes little sense. The change replaces the references with fully-qualified calls to git
This commit is contained in:
parent
a460b167f4
commit
0576111e8a
@ -1,4 +1,4 @@
|
||||
{ stdenv, buildGoPackage, fetchFromGitHub, groff, installShellFiles, util-linux }:
|
||||
{ stdenv, buildGoPackage, fetchFromGitHub, git, groff, installShellFiles, util-linux }:
|
||||
|
||||
buildGoPackage rec {
|
||||
pname = "hub";
|
||||
@ -20,6 +20,8 @@ buildGoPackage rec {
|
||||
|
||||
postPatch = ''
|
||||
patchShebangs .
|
||||
substituteInPlace git/git.go --replace "cmd.New(\"git\")" "cmd.New(\"${git}/bin/git\")"
|
||||
substituteInPlace commands/args.go --replace "Executable: \"git\"" "Executable: \"${git}/bin/git\""
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
|
Loading…
Reference in New Issue
Block a user