From 459eac3fff43462c93aebb4e17e4f4a782e6dbf3 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..ae87721 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 4d21ca0e6fb8d9060a3a5933c31ec0eab7090956 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 ae87721..c3bd57d 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