From d67a90a413e9b56769e6fb6212604fb0da60ec79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabi=C3=A1n=20Heredia=20Montiel?= Date: Sun, 29 Sep 2024 12:10:33 -0600 Subject: [PATCH] seahorse: condition gcc_14 specific `-Wno-error` flags --- pkgs/by-name/se/seahorse/package.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/by-name/se/seahorse/package.nix b/pkgs/by-name/se/seahorse/package.nix index 820d71de4a7a..65b3cf855abb 100644 --- a/pkgs/by-name/se/seahorse/package.nix +++ b/pkgs/by-name/se/seahorse/package.nix @@ -81,7 +81,7 @@ stdenv.mkDerivation rec { patchShebangs build-aux/gpg_check_version.py ''; - env = lib.optionalAttrs stdenv.cc.isGNU { + env = lib.optionalAttrs (stdenv.cc.isGNU && (lib.versionAtLeast (lib.getVersion stdenv.cc.cc) "14")) { NIX_CFLAGS_COMPILE = toString [ "-Wno-error=implicit-function-declaration" "-Wno-error=int-conversion"