From 5c1a40bab9907986152c3ee4fac48468ffcc899b Mon Sep 17 00:00:00 2001 From: electria Date: Sat, 22 Aug 2026 17:48:32 -0700 Subject: [PATCH 1/2] iced-template: filter source files (to reduce rebuilds) crane does something similar automatically --- flake.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index a0d008a..347d575 100644 --- a/flake.nix +++ b/flake.nix @@ -44,7 +44,11 @@ strictDeps = true; __structuredAttrs = true; - src = ./.; + src = lib.sourceFilesBySuffices ./. [ + "Cargo.toml" + "Cargo.lock" + "*.rs" + ]; }; crate = From 6bafca07bb42e8243feef4b7f36198e8c14568ae Mon Sep 17 00:00:00 2001 From: electria Date: Sat, 22 Aug 2026 17:49:45 -0700 Subject: [PATCH 2/2] iced-template: avoid duplicating Cargo.lock in nix store --- flake.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 347d575..e42514d 100644 --- a/flake.nix +++ b/flake.nix @@ -63,7 +63,7 @@ commonArgs // { inherit name; - cargoLock.lockFile = ./Cargo.lock; + cargoLock.lockFile = "${commonArgs.src}/Cargo.lock"; nativeBuildInputs = commonArgs.nativeBuildInputs ++ [ pkgs.autoPatchelfHook