about summary refs log tree commit diff
path: root/pkgs/applications/window-managers
diff options
context:
space:
mode:
authorVladimír Čunát <v@cunat.cz>2022-12-16 12:06:07 +0100
committerVladimír Čunát <v@cunat.cz>2022-12-16 12:06:07 +0100
commitb727aec229ee1f60363d7fca3cc908d7889f6f88 (patch)
tree1d8436da541c670cf3f71fa48d209ae59c6c3725 /pkgs/applications/window-managers
parente6cd929c5e28efb8bdbaf10abb360725a8e2374d (diff)
notion: fixup build
Maybe triggered by glibc: 2.35-163 -> 2.35-224
C headers and #defines can be quite an alchemy sometimes.
Diffstat (limited to 'pkgs/applications/window-managers')
-rw-r--r--pkgs/applications/window-managers/notion/default.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/applications/window-managers/notion/default.nix b/pkgs/applications/window-managers/notion/default.nix
index 4e546c0671556..d4ae41134ebcc 100644
--- a/pkgs/applications/window-managers/notion/default.nix
+++ b/pkgs/applications/window-managers/notion/default.nix
@@ -16,6 +16,11 @@ stdenv.mkDerivation rec {
     sha256 = "14swd0yqci8lxn259fkd9w92bgyf4rmjwgvgyqp78wlfix6ai4mv";
   };
 
+  # error: 'PATH_MAX' undeclared
+  postPatch = ''
+    sed 1i'#include <linux/limits.h>' -i mod_notionflux/notionflux/notionflux.c
+  '';
+
   nativeBuildInputs = [ pkg-config makeWrapper groff ];
   buildInputs = [ lua gettext which readline fontconfig libX11 libXext libSM
                   libXinerama libXrandr libXft ];