exclude visual tests from nix, closes #181

This commit is contained in:
Kiara Grouwstra
2024-02-10 18:10:35 +01:00
committed by Ivan Molodetskikh
parent 89f74aae98
commit 1b752fe08f
+6 -10
View File
@@ -39,16 +39,12 @@
pname = "niri"; pname = "niri";
version = self.rev or "dirty"; version = self.rev or "dirty";
src = nix-filter.lib.filter { src = nixpkgs.lib.cleanSourceWith {
root = ./.; src = craneLib.path ./.;
include = [ filter = path: type:
./src (builtins.match "resources" path == null) ||
./niri-config ((craneLib.filterCargoSources path type) &&
./niri-ipc (builtins.match "niri-visual-tests" path == null));
./Cargo.toml
./Cargo.lock
./resources
];
}; };
nativeBuildInputs = with pkgs; [ nativeBuildInputs = with pkgs; [