Compare commits

...
Author SHA1 Message Date
4d21ca0e6f
iced-template: avoid duplicating Cargo.lock in nix store 2026-08-22 17:51:54 -07:00
459eac3fff
iced-template: filter source files
(to reduce rebuilds)
crane does something similar automatically
2026-08-22 17:51:50 -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