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";
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; [