notion: fixup build

Maybe triggered by glibc: 2.35-163 -> 2.35-224
C headers and #defines can be quite an alchemy sometimes.
This commit is contained in:
Vladimír Čunát 2022-12-16 12:06:07 +01:00
parent e6cd929c5e
commit b727aec229
No known key found for this signature in database
GPG Key ID: E747DF1F9575A3AA

View File

@ -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 ];