summary refs log tree commit diff
path: root/pkgs/tools/archivers
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/tools/archivers
parent226e14914512d33cee00543cd947cf74d50a1258 (diff)
treewide: env.NIX_CFLAGS_COMPILE use toString on result of optionals
env values must be strings
Diffstat (limited to 'pkgs/tools/archivers')
-rw-r--r--pkgs/tools/archivers/7zz/default.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/tools/archivers/7zz/default.nix b/pkgs/tools/archivers/7zz/default.nix
index 2e1eb6b53bd08..06fb4aae1a0eb 100644
--- a/pkgs/tools/archivers/7zz/default.nix
+++ b/pkgs/tools/archivers/7zz/default.nix
@@ -64,12 +64,12 @@ stdenv.mkDerivation rec {
       --replace windres.exe ${stdenv.cc.targetPrefix}windres
   '';
 
-  env.NIX_CFLAGS_COMPILE = lib.optionals stdenv.isDarwin [
+  env.NIX_CFLAGS_COMPILE = toString (lib.optionals stdenv.isDarwin [
     "-Wno-deprecated-copy-dtor"
   ] ++ lib.optionals stdenv.hostPlatform.isMinGW [
     "-Wno-conversion"
     "-Wno-unused-macros"
-  ];
+  ]);
 
   inherit makefile;