Fix nix flake for client-server tests (#896)
Browse files at this commit1 changed file +9 -0
- flake.nix +9 -0
flake.nixmodified+9 -0
| @@ -106,6 +106,15 @@ | |||
| 106 | ++ lib.optional withSystemd "systemd"; | 106 | ++ lib.optional withSystemd "systemd"; |
| 107 | buildNoDefaultFeatures = true; | 107 | buildNoDefaultFeatures = true; |
| 108 | 108 | ||
| 109 | + # ever since this commit: | ||
| 110 | + # https://github.com/YaLTeR/niri/commit/771ea1e81557ffe7af9cbdbec161601575b64d81 | ||
| 111 | + # niri now runs an actual instance of the real compositor (with a mock backend) during tests | ||
| 112 | + # and thus creates a real socket file in the runtime dir. | ||
| 113 | + # this is fine for our build, we just need to make sure it has a directory to write to. | ||
| 114 | + preCheck = '' | ||
| 115 | + export XDG_RUNTIME_DIR="$(mktemp -d)" | ||
| 116 | + ''; | ||
| 117 | + | ||
| 109 | postInstall = | 118 | postInstall = |
| 110 | '' | 119 | '' |
| 111 | install -Dm644 resources/niri.desktop -t $out/share/wayland-sessions | 120 | install -Dm644 resources/niri.desktop -t $out/share/wayland-sessions |