Skip to content

Commit efd12d6

Browse files
committed
chore: update src filter
1 parent fc992b2 commit efd12d6

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

flake.nix

+9-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,15 @@
2828
};
2929

3030
craneLib = crane.lib.${system}.overrideToolchain rustToolchain;
31-
src = craneLib.cleanCargoSource (craneLib.path ./.);
31+
32+
src = pkgs.lib.cleanSourceWith {
33+
src = ./.; # The original, unfiltered source
34+
filter = path: type:
35+
# Load self signed certs to test
36+
(pkgs.lib.hasSuffix ".pem" path) ||
37+
# Default filter from crane (allow .rs files)
38+
(craneLib.filterCargoSources path type);
39+
};
3240

3341
commonArgs = {
3442
inherit src;

0 commit comments

Comments
 (0)