mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-13 21:25:30 +03:00
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:
parent
da6638f676
commit
c97f91a5a2
1 changed files with 6 additions and 0 deletions
|
@ -42,6 +42,12 @@ stdenv.mkDerivation (finalAttrs: {
|
||||||
# ugly hack for xgettext to work during build
|
# ugly hack for xgettext to work during build
|
||||||
env.LD_LIBRARY_PATH = "${lib.getLib expat}/lib";
|
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"
|
# The config locking scheme relies on the binary being called "tilda"
|
||||||
# (`pgrep -C tilda`), so a simple `wrapProgram` won't suffice:
|
# (`pgrep -C tilda`), so a simple `wrapProgram` won't suffice:
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue