From 2f9c1d8bd8c84dfaeef3763f03870e0175f03723 Mon Sep 17 00:00:00 2001 From: Conor Schaefer Date: Wed, 7 Aug 2024 13:39:37 -0700 Subject: [PATCH] build: fix nix-build via allowing asset files Adds a comprehensive allow-list of file extensions to the nix build context. Includes zip files, which will fail a build as of #4782, and other flat file inputs like CSV and JSON for testnet generation. Also adds the `pindexer` binary to the nix-build outputs. --- flake.nix | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index 1db398d52a..3c094cb3e5 100644 --- a/flake.nix +++ b/flake.nix @@ -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); };