···14141515 enableParallelBuilding = true;
16161717- NIX_LDFLAGS = [
1818- "-lcrypto"
1919- "-lpcre"
2020- "-lreadline"
2121- "-lgc"
2222- "-lsqlite3"
2323- ];
1717+ NIX_LDFLAGS = "-lcrypto -lpcre -lreadline -lgc -lsqlite3";
24182519 # we could create a separate derivation for the "written in c" version of nim
2620 # used for bootstrapping, but koch insists on moving the nim compiler around
···1919 configureFlags = [ "--no-werror" ];
20202121 # Without this libvorbisfile.so is not getting linked properly for some reason.
2222- NIX_CFLAGS_LINK = [ "-lvorbisfile" ];
2222+ NIX_CFLAGS_LINK = "-lvorbisfile";
23232424 preBuild = ''
2525 sed -i 's/.dll//g' Makefile
+1-3
pkgs/games/opendungeons/default.nix
···15151616 nativeBuildInputs = [ pkgconfig ];
1717 buildInputs = [ cmake ogre cegui boost sfml openal ois ];
1818- NIX_LDFLAGS = [
1919- "-lpthread"
2020- ];
1818+ NIX_LDFLAGS = "-lpthread";
21192220 meta = with stdenv.lib; {
2321 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
···57575858 enableParallelBuilding = true;
59596060- NIX_CFLAGS_LINK = [ "-lopenal" ];
6060+ NIX_CFLAGS_LINK = "-lopenal";
61616262 meta = with stdenv.lib; {
6363 description = "A compatible client of Ace of Spades 0.75";
···2626 };
27272828 # These flags were added to compile v3.18. Try to lift them when updating.
2929- NIX_CFLAGS_COMPILE = [ "-Wno-error=redundant-decls" "-Wno-error=format-nonliteral"
2929+ NIX_CFLAGS_COMPILE = toString [ "-Wno-error=redundant-decls" "-Wno-error=format-nonliteral"
3030 # these flags were added to build with gcc7
3131 "-Wno-error=implicit-fallthrough"
3232 "-Wno-error=format-truncation"
···2828 "BASHDIR=${placeholder "out"}/share/bash-completion/completions"
2929 ];
30303131- NIX_CFLAGS_COMPILE = stdenv.lib.optional stdenv.hostPlatform.isMusl "-D_LINUX_SYSINFO_H=1";
3131+ NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.hostPlatform.isMusl "-D_LINUX_SYSINFO_H=1";
32323333 # Won't build on i686 because the binary will be linked again in the
3434 # install phase without checking the dependencies. This will prevent