summary refs log tree commit diff
path: root/pkgs/games/liquidwar
diff options
context:
space:
mode:
authorArtturin <Artturin@artturin.com>2023-02-20 17:36:06 +0200
committerArtturin <Artturin@artturin.com>2023-02-22 21:23:05 +0200
commit3251013cc149d535d857e6bca6da28a61bf81faa (patch)
treed12aa6990e978de8c9c1e2fa6e618319955f3299 /pkgs/games/liquidwar
parent226e14914512d33cee00543cd947cf74d50a1258 (diff)
downloadnixpkgs-3251013cc149d535d857e6bca6da28a61bf81faa.tar
nixpkgs-3251013cc149d535d857e6bca6da28a61bf81faa.tar.gz
nixpkgs-3251013cc149d535d857e6bca6da28a61bf81faa.tar.bz2
nixpkgs-3251013cc149d535d857e6bca6da28a61bf81faa.tar.lz
nixpkgs-3251013cc149d535d857e6bca6da28a61bf81faa.tar.xz
nixpkgs-3251013cc149d535d857e6bca6da28a61bf81faa.tar.zst
nixpkgs-3251013cc149d535d857e6bca6da28a61bf81faa.zip
treewide: env.NIX_CFLAGS_COMPILE use toString on result of optionals
env values must be strings
Diffstat (limited to 'pkgs/games/liquidwar')
-rw-r--r--pkgs/games/liquidwar/default.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/games/liquidwar/default.nix b/pkgs/games/liquidwar/default.nix
index 2d6693667c6..83ac293f8b6 100644
--- a/pkgs/games/liquidwar/default.nix
+++ b/pkgs/games/liquidwar/default.nix
@@ -30,7 +30,7 @@ stdenv.mkDerivation rec {
 
   hardeningDisable = [ "format" ];
 
-  env.NIX_CFLAGS_COMPILE = lib.optionals (stdenv.cc.isGNU && lib.versionAtLeast stdenv.cc.version "12") [
+  env.NIX_CFLAGS_COMPILE = toString (lib.optionals (stdenv.cc.isGNU && lib.versionAtLeast stdenv.cc.version "12") [
     # Needed with GCC 12 but problematic with some old GCCs
     "-Wno-error=address"
     "-Wno-error=use-after-free"
@@ -38,7 +38,7 @@ stdenv.mkDerivation rec {
     "-Wno-error=deprecated-declarations"
     # Avoid GL_GLEXT_VERSION double definition
     " -DNO_SDL_GLEXT"
-  ];
+  ]);
 
   # To avoid problems finding SDL_types.h.
   configureFlags = [ "CFLAGS=-I${lib.getDev SDL}/include/SDL" ];