···3536 patches = [ ./CMakeLists.txt.patch ];
3738- NIX_CFLAGS_COMPILE = optional sdlSupport "-I${SDL.dev}/include/SDL"
39- ++ optional speechdSupport "-I${speechd}/include/speech-dispatcher";
4041 # we choose only cmdline and speech-dispatcher speech options.
42 # espeak builtins is made for non-cmdline OS as winCE
···3536 patches = [ ./CMakeLists.txt.patch ];
3738+ NIX_CFLAGS_COMPILE = toString (optional sdlSupport "-I${SDL.dev}/include/SDL"
39+ ++ optional speechdSupport "-I${speechd}/include/speech-dispatcher");
4041 # we choose only cmdline and speech-dispatcher speech options.
42 # espeak builtins is made for non-cmdline OS as winCE
+1-1
pkgs/applications/misc/netsurf/libcss/default.nix
···27 "NSSHARED=${buildsystem}/share/netsurf-buildsystem"
28 ];
2930- NIX_CFLAGS_COMPILE=[ "-Wno-error=implicit-fallthrough" ];
3132 meta = with stdenv.lib; {
33 homepage = http://www.netsurf-browser.org/;
···27 "NSSHARED=${buildsystem}/share/netsurf-buildsystem"
28 ];
2930+ NIX_CFLAGS_COMPILE= "-Wno-error=implicit-fallthrough";
3132 meta = with stdenv.lib; {
33 homepage = http://www.netsurf-browser.org/;
···1415 enableParallelBuilding = true;
1617- NIX_LDFLAGS = [
18- "-lcrypto"
19- "-lpcre"
20- "-lreadline"
21- "-lgc"
22- "-lsqlite3"
23- ];
2425 # we could create a separate derivation for the "written in c" version of nim
26 # used for bootstrapping, but koch insists on moving the nim compiler around
···1415 enableParallelBuilding = true;
1617+ NIX_LDFLAGS = "-lcrypto -lpcre -lreadline -lgc -lsqlite3";
0000001819 # we could create a separate derivation for the "written in c" version of nim
20 # used for bootstrapping, but koch insists on moving the nim compiler around
···40 ];
4142 # these libraries are only searched for at runtime so we need to force-link them
43- NIX_LDFLAGS = [
44- "-lgvc"
45- "-lmysqlclient"
46- "-lecpg"
47- "-lssl"
48- ];
4950- NIX_CFLAGS_COMPILE = [ "-L${libmysqlclient}/lib/mysql" "-I${libmysqlclient}/include/mysql" ];
5152 qtWrapperArgs = [
53 ''--prefix PATH : ${lib.getBin graphviz}/bin''
···40 ];
4142 # these libraries are only searched for at runtime so we need to force-link them
43+ NIX_LDFLAGS = "-lgvc -lmysqlclient -lecpg -lssl";
000004445+ NIX_CFLAGS_COMPILE = "-L${libmysqlclient}/lib/mysql -I${libmysqlclient}/include/mysql";
4647 qtWrapperArgs = [
48 ''--prefix PATH : ${lib.getBin graphviz}/bin''
···19 configureFlags = [ "--no-werror" ];
2021 # Without this libvorbisfile.so is not getting linked properly for some reason.
22- NIX_CFLAGS_LINK = [ "-lvorbisfile" ];
2324 preBuild = ''
25 sed -i 's/.dll//g' Makefile
···19 configureFlags = [ "--no-werror" ];
2021 # Without this libvorbisfile.so is not getting linked properly for some reason.
22+ NIX_CFLAGS_LINK = "-lvorbisfile";
2324 preBuild = ''
25 sed -i 's/.dll//g' Makefile
+1-3
pkgs/games/opendungeons/default.nix
···1516 nativeBuildInputs = [ pkgconfig ];
17 buildInputs = [ cmake ogre cegui boost sfml openal ois ];
18- NIX_LDFLAGS = [
19- "-lpthread"
20- ];
2122 meta = with stdenv.lib; {
23 description = "An open source, real time strategy game sharing game elements with the Dungeon Keeper series and Evil Genius.";
···1516 nativeBuildInputs = [ pkgconfig ];
17 buildInputs = [ cmake ogre cegui boost sfml openal ois ];
18+ NIX_LDFLAGS = "-lpthread";
001920 meta = with stdenv.lib; {
21 description = "An open source, real time strategy game sharing game elements with the Dungeon Keeper series and Evil Genius.";
+1-1
pkgs/games/openspades/default.nix
···5758 enableParallelBuilding = true;
5960- NIX_CFLAGS_LINK = [ "-lopenal" ];
6162 meta = with stdenv.lib; {
63 description = "A compatible client of Ace of Spades 0.75";
···5758 enableParallelBuilding = true;
5960+ NIX_CFLAGS_LINK = "-lopenal";
6162 meta = with stdenv.lib; {
63 description = "A compatible client of Ace of Spades 0.75";
···26 };
2728 # These flags were added to compile v3.18. Try to lift them when updating.
29- NIX_CFLAGS_COMPILE = [ "-Wno-error=redundant-decls" "-Wno-error=format-nonliteral"
30 # these flags were added to build with gcc7
31 "-Wno-error=implicit-fallthrough"
32 "-Wno-error=format-truncation"
···26 };
2728 # These flags were added to compile v3.18. Try to lift them when updating.
29+ NIX_CFLAGS_COMPILE = toString [ "-Wno-error=redundant-decls" "-Wno-error=format-nonliteral"
30 # these flags were added to build with gcc7
31 "-Wno-error=implicit-fallthrough"
32 "-Wno-error=format-truncation"
···28 "BASHDIR=${placeholder "out"}/share/bash-completion/completions"
29 ];
3031- NIX_CFLAGS_COMPILE = stdenv.lib.optional stdenv.hostPlatform.isMusl "-D_LINUX_SYSINFO_H=1";
3233 # Won't build on i686 because the binary will be linked again in the
34 # install phase without checking the dependencies. This will prevent
···28 "BASHDIR=${placeholder "out"}/share/bash-completion/completions"
29 ];
3031+ NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.hostPlatform.isMusl "-D_LINUX_SYSINFO_H=1";
3233 # Won't build on i686 because the binary will be linked again in the
34 # install phase without checking the dependencies. This will prevent