From 3b823a098214a6e256455847811cc44e992e376e Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Sat, 28 Mar 2026 00:05:02 +0300 Subject: [PATCH] nix: fix Signed-off-by: NotAShelf Change-Id: Ibdd7b1deaff9489cedcbbc05ce7956d86a6a6964 --- nix/package.nix | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/nix/package.nix b/nix/package.nix index 3892b41..2658d73 100644 --- a/nix/package.nix +++ b/nix/package.nix @@ -3,8 +3,8 @@ rustPlatform, llvm, }: let - toml = (lib.importTOML ../Cargo.toml).package; - pname = toml.name; + pname = "microfetch"; + toml = (lib.importTOML ../Cargo.toml).workspace.package; inherit (toml) version; in rustPlatform.buildRustPackage.override {inherit (llvm) stdenv;} { @@ -16,9 +16,10 @@ in fs.toSource { root = s; fileset = fs.unions [ - (fs.fileFilter (file: builtins.any file.hasExt ["rs"]) (s + /crates)) - (fs.fileFilter (file: builtins.any file.hasExt ["rs"]) (s + /microfetch)) + (s + /crates) + (s + /microfetch) (s + /.cargo) + (s + /scripts/ld-wrapper) (s + /Cargo.lock) (s + /Cargo.toml) ];