Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: fix nix-build via allowing asset files #4796

Merged
merged 1 commit into from
Aug 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,13 @@
sha256 = "${penumbraRelease.sha256}";
};
filter = path: type:
# Retain proving and verification parameters, and no-lfs marker file ...
(builtins.match ".*\.(no_lfs|param|bin)$" path != null) ||
# Retain non-rust asset files as build inputs:
# * no_lfs, param, bin: proving and verification parameters
# * zip: frontend bundled assets
# * sql: database schema files for indexing
# * csv: default genesis allocations for testnet generation
# * json: default validator info for testnet generation
(builtins.match ".*\.(no_lfs|param|bin|zip|sql|csv|json)$" path != null) ||
# ... as well as all the normal cargo source files:
(craneLib.filterCargoSources path type);
};
Expand Down
Loading