summary refs log tree commit diff
path: root/pkgs/os-specific/linux/ocf-resource-agents/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/os-specific/linux/ocf-resource-agents/default.nix')
-rw-r--r--pkgs/os-specific/linux/ocf-resource-agents/default.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/os-specific/linux/ocf-resource-agents/default.nix b/pkgs/os-specific/linux/ocf-resource-agents/default.nix
index 73725e1f83b..11f094f72c9 100644
--- a/pkgs/os-specific/linux/ocf-resource-agents/default.nix
+++ b/pkgs/os-specific/linux/ocf-resource-agents/default.nix
@@ -42,10 +42,10 @@ let
       python3
     ];
 
-    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 breaks on darwin (with clang) or older gcc
       "-Wno-error=maybe-uninitialized"
-    ];
+    ]);
 
     meta = with lib; {
       homepage = "https://github.com/ClusterLabs/resource-agents";