diff options
| author | Kiara Grouwstra <kiara@bij1.org> | 2024-02-10 18:10:35 +0100 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2024-02-12 00:01:03 +0400 |
| commit | 1b752fe08fc7c451cdd1c9623c48b53661a4363c (patch) | |
| tree | dc481f17291169bf3eee28d7710d3e9ad00cf8bc | |
| parent | 89f74aae98989a101b252a98fe218874888382b4 (diff) | |
| download | niri-1b752fe08fc7c451cdd1c9623c48b53661a4363c.tar.gz niri-1b752fe08fc7c451cdd1c9623c48b53661a4363c.tar.bz2 niri-1b752fe08fc7c451cdd1c9623c48b53661a4363c.zip | |
exclude visual tests from nix, closes #181
| -rw-r--r-- | flake.nix | 16 |
1 files changed, 6 insertions, 10 deletions
@@ -39,16 +39,12 @@ pname = "niri"; version = self.rev or "dirty"; - src = nix-filter.lib.filter { - root = ./.; - include = [ - ./src - ./niri-config - ./niri-ipc - ./Cargo.toml - ./Cargo.lock - ./resources - ]; + src = nixpkgs.lib.cleanSourceWith { + src = craneLib.path ./.; + filter = path: type: + (builtins.match "resources" path == null) || + ((craneLib.filterCargoSources path type) && + (builtins.match "niri-visual-tests" path == null)); }; nativeBuildInputs = with pkgs; [ |
