netbird-ui 0.20.8 -> 0.21.0 https://github.com/netbirdio/netbird/releases attrpath: netbird-ui Checking auto update branch... [version] [version] generic version rewriter does not support multiple hashes [rustCrateVersion] [rustCrateVersion] No cargoSha256 or cargoHash found [golangModuleVersion] [golangModuleVersion] skipping because derivation has updateScript [updateScript] [updateScript] Success [updateScript] this derivation will be built: /nix/store/hxfz2xpapmamaixnqy0vhbha2wbm2j8m-packages.json.drv building '/nix/store/hxfz2xpapmamaixnqy0vhbha2wbm2j8m-packages.json.drv'... Going to be running update for following packages: - netbird-0.20.8 Press Enter key to continue... Running update for: - netbird-0.20.8: UPDATING ... - netbird-0.20.8: DONE. Packages updated! [quotedUrls] [quotedUrls] nothing found to replace Diff after rewrites: diff --git a/pkgs/tools/networking/netbird/default.nix b/pkgs/tools/networking/netbird/default.nix index f1182a03bba..f8ebea0e4c5 100644 --- a/pkgs/tools/networking/netbird/default.nix +++ b/pkgs/tools/networking/netbird/default.nix @@ -30,16 +30,16 @@ let in buildGoModule rec { pname = "netbird"; - version = "0.20.8"; + version = "0.21.0"; src = fetchFromGitHub { owner = "netbirdio"; repo = pname; rev = "v${version}"; - sha256 = "sha256-nLUk3R2c1JsZLNFGWbPF/icO+rmieaa/im47ntByU2E="; + sha256 = "sha256-ZQvWK8PbstYGABT5f456JsplCTE/XlAwGdvFM/BdSiU="; }; - vendorHash = "sha256-wgiDwf1aV8hM33ADgqAbmeLu9lDKdvw0d88IrVg0fmo="; + vendorHash = "sha256-C8FFybfLVDb5vc60nEyc3KynxbmU/7I/RM3RZgmYd1A="; nativeBuildInputs = [ installShellFiles ] ++ lib.optional ui pkg-config; No auto update branch exists Old version 0.20.8" not present in master derivation file with contents: { stdenv , lib , nixosTests , nix-update-script , buildGoModule , fetchFromGitHub , installShellFiles , pkg-config , gtk3 , libayatana-appindicator , libX11 , libXcursor , libXxf86vm , Cocoa , IOKit , Kernel , UserNotifications , WebKit , ui ? false }: let modules = if ui then { "client/ui" = "netbird-ui"; } else { client = "netbird"; management = "netbird-mgmt"; signal = "netbird-signal"; }; in buildGoModule rec { pname = "netbird"; version = "0.21.0"; src = fetchFromGitHub { owner = "netbirdio"; repo = pname; rev = "v${version}"; sha256 = "sha256-ZQvWK8PbstYGABT5f456JsplCTE/XlAwGdvFM/BdSiU="; }; vendorHash = "sha256-C8FFybfLVDb5vc60nEyc3KynxbmU/7I/RM3RZgmYd1A="; nativeBuildInputs = [ installShellFiles ] ++ lib.optional ui pkg-config; buildInputs = lib.optionals (stdenv.isLinux && ui) [ gtk3 libayatana-appindicator libX11 libXcursor libXxf86vm ] ++ lib.optionals (stdenv.isDarwin && ui) [ Cocoa IOKit Kernel UserNotifications WebKit ]; subPackages = lib.attrNames modules; ldflags = [ "-s" "-w" "-X github.com/netbirdio/netbird/version.version=${version}" "-X main.builtBy=nix" ]; # needs network access doCheck = false; postPatch = '' # make it compatible with systemd's RuntimeDirectory substituteInPlace client/cmd/root.go \ --replace 'unix:///var/run/netbird.sock' 'unix:///var/run/netbird/sock' substituteInPlace client/ui/client_ui.go \ --replace 'unix:///var/run/netbird.sock' 'unix:///var/run/netbird/sock' ''; postInstall = lib.concatStringsSep "\n" (lib.mapAttrsToList (module: binary: '' mv $out/bin/${lib.last (lib.splitString "/" module)} $out/bin/${binary} '' + lib.optionalString (!ui) '' installShellCompletion --cmd ${binary} \ --bash <($out/bin/${binary} completion bash) \ --fish <($out/bin/${binary} completion fish) \ --zsh <($out/bin/${binary} completion zsh) '') modules) + lib.optionalString (stdenv.isLinux && ui) '' mkdir -p $out/share/pixmaps cp $src/client/ui/disconnected.png $out/share/pixmaps/netbird.png mkdir -p $out/share/applications cp $src/client/ui/netbird.desktop $out/share/applications/netbird.desktop substituteInPlace $out/share/applications/netbird.desktop \ --replace "Exec=/usr/bin/netbird-ui" "Exec=$out/bin/netbird-ui" ''; passthru = { tests.netbird = nixosTests.netbird; updateScript = nix-update-script { }; }; meta = with lib; { homepage = "https://netbird.io"; changelog = "https://github.com/netbirdio/netbird/releases/tag/v${version}"; description = "Connect your devices into a single secure private WireGuard®-based mesh network with SSO/MFA and simple access controls"; license = licenses.bsd3; maintainers = with maintainers; [ misuzu ]; }; }