From 53e61be970e69596e2b7fcc79b6d196fc10b7c19 Mon Sep 17 00:00:00 2001 From: Artturin Date: Sat, 7 Dec 2024 21:47:20 +0200 Subject: [PATCH] frr: move warning to a place where it shouldn't abort release eval --- pkgs/by-name/fr/frr/package.nix | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pkgs/by-name/fr/frr/package.nix b/pkgs/by-name/fr/frr/package.nix index 29f2d42d28f8f3..457664c8302ae5 100644 --- a/pkgs/by-name/fr/frr/package.nix +++ b/pkgs/by-name/fr/frr/package.nix @@ -81,9 +81,6 @@ , ospfApi ? true }: -lib.warnIf (!(stdenv.buildPlatform.canExecute stdenv.hostPlatform)) - "cannot enable SNMP support due to cross-compilation issues with net-snmp-config" - stdenv.mkDerivation (finalAttrs: { pname = "frr"; version = "10.1"; @@ -133,7 +130,9 @@ stdenv.mkDerivation (finalAttrs: { net-snmp ] ++ lib.optionals (lib.meta.availableOn stdenv.hostPlatform elfutils) [ elfutils - ]; + ] ++ (lib.warnIf ( + !(stdenv.buildPlatform.canExecute stdenv.hostPlatform) + ) "cannot enable SNMP support due to cross-compilation issues with net-snmp-config" [ ]); # otherwise in cross-compilation: "configure: error: no working python version found" depsBuildBuild = [