Skip to content

Commit

Permalink
fix: Filter src in nannou derivation for better cache behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchmindtree committed Feb 8, 2025
1 parent c0444c9 commit b2cf0dc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,12 @@
}:
rustPlatform.buildRustPackage rec {
pname = "nannou";
src = ./.;
src = lib.sourceFilesBySuffices ./. [
".rs"
".toml"
".lock"
".wgsl"
];
version = (builtins.fromTOML (builtins.readFile ./nannou/Cargo.toml)).package.version;

cargoLock = {
Expand Down

0 comments on commit b2cf0dc

Please sign in to comment.