exclude visual tests from nix, closes #181
Browse files at this commit1b752fe08fc7c451cdd1c9623c48b53661a4363cParent: 89f74aa1 changed file +6 -10
- flake.nix +6 -10
flake.nixmodified+6 -10
| @@ -39,16 +39,12 @@ | ||
| 39 | 39 | pname = "niri"; |
| 40 | 40 | version = self.rev or "dirty"; |
| 41 | 41 | |
| 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)); | |
| 52 | 48 | }; |
| 53 | 49 | |
| 54 | 50 | nativeBuildInputs = with pkgs; [ |