infrastructure/patches/nixpkgs/05-netbird-relay.patch

22 lines
943 B
Diff
Raw Normal View History

2024-10-20 23:01:14 +02:00
diff --git a/pkgs/tools/networking/netbird/default.nix b/pkgs/tools/networking/netbird/default.nix
index 284d79489090..741a5f3bf045 100644
2024-10-20 23:01:14 +02:00
--- a/pkgs/tools/networking/netbird/default.nix
+++ b/pkgs/tools/networking/netbird/default.nix
@@ -30,6 +30,7 @@ let
{
client = "netbird";
management = "netbird-mgmt";
+ relay = "netbird-relay";
signal = "netbird-signal";
};
2024-10-20 23:01:14 +02:00
in
@@ -91,7 +92,7 @@ buildGoModule rec {
''
mv $out/bin/${lib.last (lib.splitString "/" module)} $out/bin/${binary}
''
- + lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform && !ui) ''
+ + lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform && !ui && module != "relay") ''
installShellCompletion --cmd ${binary} \
--bash <($out/bin/${binary} completion bash) \
--fish <($out/bin/${binary} completion fish) \