Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: Ibdd7b1deaff9489cedcbbc05ce7956d86a6a6964
This commit is contained in:
raf 2026-03-28 00:05:02 +03:00
commit 3b823a0982
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF

View file

@ -3,8 +3,8 @@
rustPlatform, rustPlatform,
llvm, llvm,
}: let }: let
toml = (lib.importTOML ../Cargo.toml).package; pname = "microfetch";
pname = toml.name; toml = (lib.importTOML ../Cargo.toml).workspace.package;
inherit (toml) version; inherit (toml) version;
in in
rustPlatform.buildRustPackage.override {inherit (llvm) stdenv;} { rustPlatform.buildRustPackage.override {inherit (llvm) stdenv;} {
@ -16,9 +16,10 @@ in
fs.toSource { fs.toSource {
root = s; root = s;
fileset = fs.unions [ fileset = fs.unions [
(fs.fileFilter (file: builtins.any file.hasExt ["rs"]) (s + /crates)) (s + /crates)
(fs.fileFilter (file: builtins.any file.hasExt ["rs"]) (s + /microfetch)) (s + /microfetch)
(s + /.cargo) (s + /.cargo)
(s + /scripts/ld-wrapper)
(s + /Cargo.lock) (s + /Cargo.lock)
(s + /Cargo.toml) (s + /Cargo.toml)
]; ];