Skip to content

Commit

Permalink
frr: move warning to a place where it shouldn't abort release eval
Browse files Browse the repository at this point in the history
  • Loading branch information
Artturin committed Dec 7, 2024
1 parent 9245a60 commit 53e61be
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions pkgs/by-name/fr/frr/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -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 = [
Expand Down

0 comments on commit 53e61be

Please sign in to comment.