From 502636ff6937048fff2402186ef2c62c5ab6a073 Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Fri, 30 Jan 2026 22:24:59 +0300 Subject: [PATCH] nix: fix Signed-off-by: NotAShelf Change-Id: I31625305400ea72112babe3202561ebe6a6a6964 --- nix/package.nix | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/nix/package.nix b/nix/package.nix index 0a6afd6..84e6bfa 100644 --- a/nix/package.nix +++ b/nix/package.nix @@ -17,8 +17,8 @@ rustPlatform.buildRustPackage (finalAttrs: { root = s; fileset = fs.unions (map (dir: (s + /${dir})) [ ".cargo" + "crates" "eh" - "xtask" "Cargo.toml" "Cargo.lock" ]); @@ -44,21 +44,16 @@ rustPlatform.buildRustPackage (finalAttrs: { postInstall = '' # Install required files with the 'dist' task - $out/bin/xtask multicall \ + cargo xtask multicall \ --bin-dir $out/bin \ --main-binary $out/bin/eh # Generate shell completions and install them. for shell in bash zsh fish; do - $out/bin/xtask completions $shell + cargo xtask completions $shell done installShellCompletion completions/* - - # The xtask output has been built as a part of the build phase. If - # we don't remove it, it'll be linked in $out/bin alongside the actual - # binary and populate $PATH with a dedicated 'xtask' command. Remove. - rm -rf $out/bin/xtask ''; meta = {