[PATCH 01/13] pkgs: gtk3: backport fix for unset XDG_RUNTIME_DIR

Alyssa Ross
2025-11-26T21:34:54Z

As part of running services as different users we'll be giving
services dedicated places to put their sockets, rather than a single
shared directory they all need to be able to write to.

Signed-off-by: Alyssa Ross <hi@alyssa.is>
---
pkgs/gtk3/default.nix | 13 +++++++++++++
pkgs/overlay.nix | 2 ++
2 files changed, 15 insertions(+)
create mode 100644 pkgs/gtk3/default.nix

diff --git a/pkgs/gtk3/default.nix b/pkgs/gtk3/default.nix
new file mode 100644
index 0000000..72445c9
--- /dev/null
+++ b/pkgs/gtk3/default.nix
@@ -0,0 +1,13 @@
+# SPDX-FileCopyrightText: 2025 Alyssa Ross <hi@alyssa.is>
+# SPDX-License-Identifier: MIT
+
+import ../../lib/overlay-package.nix [ "gtk3" ] ({ final, super }:
+
+super.gtk3.overrideAttrs ({ patches ? [], ... }: {
+ patches = patches ++ [
+ (final.fetchpatch {
+ url = "https://gitlab.gnome.org/GNOME/gtk/-/commit/8569e206badbee1b27ff0e27316391b8d8c3f987.patch";
+ hash = "sha256-OdBhCGtz+3HS8LRhp+GCj3dL4pntybiI9b3A3kc5+OY=";
+ })
+ ];
+}))
diff --git a/pkgs/overlay.nix b/pkgs/overlay.nix
index 0ca196c..0910bf3 100644
--- a/pkgs/overlay.nix
+++ b/pkgs/overlay.nix
@@ -4,5 +4,7 @@
(final: super: {
cloud-hypervisor = import ./cloud-hypervisor { inherit final super; };

+ gtk3 = import ./gtk3 { inherit final super; };
+
skawarePackages = import ./skaware-packages { inherit final super; };
})

base-commit: c43e5c63a028994d5f66a15db19f415bf3cb7736
--
2.51.0