From e0dedcf0db8647bee4179d72a0451f5ab307c090 Mon Sep 17 00:00:00 2001 From: Khushal Agrawal Date: Sun, 21 Jun 2026 13:47:07 +0530 Subject: [PATCH] starpls: don't build xtask The xtask build helper leaks into $out/bin. Restrict the build to the starpls crate so only the language server is produced. --- pkgs/by-name/st/starpls/package.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/by-name/st/starpls/package.nix b/pkgs/by-name/st/starpls/package.nix index 0f115597fae8..ff3f456153a2 100644 --- a/pkgs/by-name/st/starpls/package.nix +++ b/pkgs/by-name/st/starpls/package.nix @@ -18,6 +18,10 @@ rustPlatform.buildRustPackage (finalAttrs: { cargoHash = "sha256-5xYfQRm7U7sEQiJEfjaLznoXUxHsxnLmIEA/OxTkjFg="; + # Only build the starpls language server, not the xtask build helper, which + # would otherwise leak into $out/bin. + cargoBuildFlags = [ "-p starpls" ]; + nativeBuildInputs = [ protobuf ];