about summary refs log tree commit diff
path: root/overlays/patches/tmux/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'overlays/patches/tmux/default.nix')
-rw-r--r--overlays/patches/tmux/default.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/overlays/patches/tmux/default.nix b/overlays/patches/tmux/default.nix
new file mode 100644
index 000000000000..cc13ac2a86c2
--- /dev/null
+++ b/overlays/patches/tmux/default.nix
@@ -0,0 +1,7 @@
+{ tmux }:
+
+tmux.overrideAttrs ({ CPPFLAGS ? [], ... }: {
+  CPPFLAGS = CPPFLAGS ++ [
+    ''-DTMUX_CONF="\"\$$XDG_CONFIG_HOME/tmux/tmux.conf"\"''
+  ];
+})