diff options
| -rw-r--r-- | flake.nix | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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 |
