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 | pname = "niri"; | 39 | pname = "niri"; |
| 40 | version = self.rev or "dirty"; | 40 | version = self.rev or "dirty"; |
| 41 | 41 | ||
| 42 | - src = nix-filter.lib.filter { | 42 | + src = nixpkgs.lib.cleanSourceWith { |
| 43 | - root = ./.; | 43 | + src = craneLib.path ./.; |
| 44 | - include = [ | 44 | + filter = path: type: |
| 45 | - ./src | 45 | + (builtins.match "resources" path == null) || |
| 46 | - ./niri-config | 46 | + ((craneLib.filterCargoSources path type) && |
| 47 | - ./niri-ipc | 47 | + (builtins.match "niri-visual-tests" path == null)); |
| 48 | - ./Cargo.toml | ||
| 49 | - ./Cargo.lock | ||
| 50 | - ./resources | ||
| 51 | - ]; | ||
| 52 | }; | 48 | }; |
| 53 | 49 | ||
| 54 | nativeBuildInputs = with pkgs; [ | 50 | nativeBuildInputs = with pkgs; [ |