aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKiara Grouwstra <kiara@bij1.org>2024-02-10 18:10:35 +0100
committerIvan Molodetskikh <yalterz@gmail.com>2024-02-12 00:01:03 +0400
commit1b752fe08fc7c451cdd1c9623c48b53661a4363c (patch)
treedc481f17291169bf3eee28d7710d3e9ad00cf8bc
parent89f74aae98989a101b252a98fe218874888382b4 (diff)
downloadniri-1b752fe08fc7c451cdd1c9623c48b53661a4363c.tar.gz
niri-1b752fe08fc7c451cdd1c9623c48b53661a4363c.tar.bz2
niri-1b752fe08fc7c451cdd1c9623c48b53661a4363c.zip
exclude visual tests from nix, closes #181
-rw-r--r--flake.nix16
1 files 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; [