From 0095fdc58557b0c195ed97ed4c7e663f63dfbb03 Mon Sep 17 00:00:00 2001 From: Lorenz Leutgeb Date: Thu, 2 Oct 2025 00:21:49 +0200 Subject: [PATCH] flake: Keep `crates/**/*.txt` files for build Fix builds broken due to `include_str!` failing to read a text file. --- flake.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index c82b6035..306d71dc 100644 --- a/flake.nix +++ b/flake.nix @@ -73,7 +73,10 @@ ] || # Default filter from crane (allow .rs files) - (rustup.craneLib.filterCargoSources path type); + (rustup.craneLib.filterCargoSources path type) + || + # *.txt files might be included with `include_str!` + (builtins.isList (builtins.match ''/?crates/(.*/.*\.txt)'' path)); src = lib.cleanSourceWith { src = ./.;