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,
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)
];