Skip to content

Commit

Permalink
Include fixtures as part of the clean source.
Browse files Browse the repository at this point in the history
This allows to include static files in tests.
  • Loading branch information
koxu1996 committed Feb 6, 2024
1 parent 65c3eb3 commit ade64d1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,12 @@
kairosNodeAttrs = {
src = lib.cleanSourceWith {
src = craneLib.path ./.;
filter = path: type: craneLib.filterCargoSources path type;
filter = path: type:
# Allow static files.
(lib.hasInfix "/fixtures/" path) ||
# Default filter (from crane) for .rs files.
(craneLib.filterCargoSources path type)
;
};
nativeBuildInputs = with pkgs; [ pkg-config ];

Expand Down

0 comments on commit ade64d1

Please sign in to comment.