From 83dd677f8107afd73609c399b2a5698c41da99f0 Mon Sep 17 00:00:00 2001 From: Tom Herbers Date: Mon, 20 Jul 2026 10:54:38 +0200 Subject: [PATCH] xfr: disable update check The update-check of xfr is a feature. To deselect this we have to disable all default features. Add back the discovery feature which is currently the second default feature and i see no reason not to keep it. (cherry picked from commit 2730857e2b6f451c8a8e66b7f8058e9ecab059f2) --- pkgs/by-name/xf/xfr/package.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/by-name/xf/xfr/package.nix b/pkgs/by-name/xf/xfr/package.nix index c422347b3efa..f8f527b9ba05 100644 --- a/pkgs/by-name/xf/xfr/package.nix +++ b/pkgs/by-name/xf/xfr/package.nix @@ -24,8 +24,16 @@ rustPlatform.buildRustPackage (finalAttrs: { installShellFiles versionCheckHook ]; + doInstallCheck = true; + # opt ouf of default features to deselect the update-check feature + buildNoDefaultFeatures = true; + + buildFeatures = [ + "discovery" + ]; + postInstall = '' installShellCompletion --cmd xfr \ --bash <($out/bin/xfr --completions bash) \