mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-05 21:03:40 +00:00
gh: use --set-default for GH_TELEMETRY env var
(cherry picked from commit b120931e57)
This commit is contained in:
committed by
Michael Daniels
parent
d954bef262
commit
bd623dbb5e
@@ -7,7 +7,6 @@
|
||||
testers,
|
||||
gh,
|
||||
makeWrapper,
|
||||
enableTelemetry ? false,
|
||||
}:
|
||||
|
||||
buildGo126Module rec {
|
||||
@@ -39,10 +38,8 @@ buildGo126Module rec {
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
install -Dm755 bin/gh -t $out/bin
|
||||
''
|
||||
+ lib.optionalString (!enableTelemetry) ''
|
||||
wrapProgram $out/bin/gh \
|
||||
--set GH_TELEMETRY false
|
||||
--set-default GH_TELEMETRY false
|
||||
''
|
||||
+ lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||
installManPage share/man/*/*.[1-9]
|
||||
|
||||
Reference in New Issue
Block a user