infrastructure/patches/nixpkgs/05-netbird-relay.patch
Tom Hubrecht 030803ba29
All checks were successful
Build all the nodes / geo02 (push) Successful in 1m32s
Build all the nodes / geo01 (push) Successful in 1m34s
Build all the nodes / rescue01 (push) Successful in 1m43s
Build all the nodes / bridge01 (push) Successful in 1m45s
Build all the nodes / storage01 (push) Successful in 1m43s
Build all the nodes / compute01 (push) Successful in 2m9s
Run pre-commit on all files / check (push) Successful in 25s
Build all the nodes / web02 (push) Successful in 58s
Build all the nodes / vault01 (push) Successful in 1m13s
Build all the nodes / web03 (push) Successful in 1m4s
Build all the nodes / web01 (push) Successful in 1m31s
chore(patches): Reorganize
2024-11-25 11:15:20 +01:00

21 lines
850 B
Diff

diff --git a/pkgs/tools/networking/netbird/default.nix b/pkgs/tools/networking/netbird/default.nix
index 07a1e906dad3..d5799446628b 100644
--- a/pkgs/tools/networking/netbird/default.nix
+++ b/pkgs/tools/networking/netbird/default.nix
@@ -26,6 +26,7 @@ let
} else {
client = "netbird";
management = "netbird-mgmt";
+ relay = "netbird-relay";
signal = "netbird-signal";
};
in
@@ -82,7 +83,7 @@ buildGoModule rec {
(lib.mapAttrsToList
(module: binary: ''
mv $out/bin/${lib.last (lib.splitString "/" module)} $out/bin/${binary}
- '' + lib.optionalString (!ui) ''
+ '' + lib.optionalString (!ui && module != "relay") ''
installShellCompletion --cmd ${binary} \
--bash <($out/bin/${binary} completion bash) \
--fish <($out/bin/${binary} completion fish) \