tilda: fix build

Upstream manually sets the standard to c99 in configure.ac, which makes
the popen and pclose invocations in src/tilda-lock-files.c produce
implicit function declaration errors.
This commit is contained in:
alyaeanyx 2025-05-17 18:29:57 +02:00
parent da6638f676
commit c97f91a5a2

View file

@ -42,6 +42,12 @@ stdenv.mkDerivation (finalAttrs: {
# ugly hack for xgettext to work during build
env.LD_LIBRARY_PATH = "${lib.getLib expat}/lib";
# with -std=c99, the build fails due to implicit function declaration errors
# for the popen() and pclose() calls in src/tilda-lock-files.c
postPatch = ''
substituteInPlace configure.ac --replace-fail -std=c99 -std=gnu99
'';
# The config locking scheme relies on the binary being called "tilda"
# (`pgrep -C tilda`), so a simple `wrapProgram` won't suffice:
postInstall = ''