Radish alpha
h
rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5
Radicle Heartwood Protocol & Stack
Radicle
Git
flake: Keep `crates/**/*.txt` files for build
Merged lorenz opened 7 months ago

Fix builds broken due to include_str! failing to read a text file.

1 file changed +4 -1 9954a794 0095fdc5
modified flake.nix
@@ -71,7 +71,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 = ./.;