forge
Explore
Log in

Don't you dare go Hollow

exclude visual tests from nix, closes #181

Browse files at this commit

1b752fe08fc7c451cdd1c9623c48b53661a4363cKiara GrouwstraParent: 89f74aa
flake.nixmodified+6 -10
@@ -39,16 +39,12 @@
3939 pname = "niri";
4040 version = self.rev or "dirty";
4141
42- src = nix-filter.lib.filter {
43- root = ./.;
44- include = [
45- ./src
46- ./niri-config
47- ./niri-ipc
48- ./Cargo.toml
49- ./Cargo.lock
50- ./resources
51- ];
42+ src = nixpkgs.lib.cleanSourceWith {
43+ src = craneLib.path ./.;
44+ filter = path: type:
45+ (builtins.match "resources" path == null) ||
46+ ((craneLib.filterCargoSources path type) &&
47+ (builtins.match "niri-visual-tests" path == null));
5248 };
5349
5450 nativeBuildInputs = with pkgs; [