aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--flake.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix
index 1a7319a1..ebb2a05d 100644
--- a/flake.nix
+++ b/flake.nix
@@ -106,6 +106,15 @@
++ lib.optional withSystemd "systemd";
buildNoDefaultFeatures = true;
+ # ever since this commit:
+ # https://github.com/YaLTeR/niri/commit/771ea1e81557ffe7af9cbdbec161601575b64d81
+ # niri now runs an actual instance of the real compositor (with a mock backend) during tests
+ # and thus creates a real socket file in the runtime dir.
+ # this is fine for our build, we just need to make sure it has a directory to write to.
+ preCheck = ''
+ export XDG_RUNTIME_DIR="$(mktemp -d)"
+ '';
+
postInstall =
''
install -Dm644 resources/niri.desktop -t $out/share/wayland-sessions