Compare commits

...
Author SHA1 Message Date
6bafca07bb
iced-template: avoid duplicating Cargo.lock in nix store 2026-08-22 17:49:45 -07:00
5c1a40bab9
iced-template: filter source files
(to reduce rebuilds)
crane does something similar automatically
2026-08-22 17:49:08 -07:00

View file

@ -44,7 +44,11 @@
strictDeps = true;
__structuredAttrs = true;
src = ./.;
src = lib.sourceFilesBySuffices ./. [
"Cargo.toml"
"Cargo.lock"
"*.rs"
];
};
crate =
@ -59,7 +63,7 @@
commonArgs
// {
inherit name;
cargoLock.lockFile = ./Cargo.lock;
cargoLock.lockFile = "${commonArgs.src}/Cargo.lock";
nativeBuildInputs = commonArgs.nativeBuildInputs ++ [
pkgs.autoPatchelfHook