From 1b752fe08fc7c451cdd1c9623c48b53661a4363c Mon Sep 17 00:00:00 2001 From: Kiara Grouwstra Date: Sat, 10 Feb 2024 18:10:35 +0100 Subject: exclude visual tests from nix, closes #181 --- flake.nix | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/flake.nix b/flake.nix index 74e38851..f85d4ff0 100644 --- a/flake.nix +++ b/flake.nix @@ -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; [ -- cgit