Skip to content

Commit 3029a1f

Browse files
authored
frr: 10.0.1 -> 10.1 (#342259)
2 parents 9cb21a4 + 83cdec2 commit 3029a1f

File tree

2 files changed

+12
-13
lines changed

2 files changed

+12
-13
lines changed

nixos/tests/frr.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,6 @@ import ./make-test-python.nix ({ pkgs, ... }:
9999
gw.wait_until_succeeds("vtysh -c 'show ip route' | grep '^O>'")
100100
101101
with subtest("Test ICMP"):
102-
client.wait_until_succeeds("ping -c 3 server >&2")
102+
client.wait_until_succeeds("ping -4 -c 3 server >&2")
103103
'';
104104
})

pkgs/servers/frr/default.nix

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
, readline
2828
, rtrlib
2929
, protobufc
30+
, zeromq
3031

3132
# tests
3233
, nettools
@@ -45,7 +46,6 @@
4546
, numMultipath ? 64
4647
, watchfrrSupport ? true
4748
, cumulusSupport ? false
48-
, datacenterSupport ? true
4949
, rtadvSupport ? true
5050
, irdpSupport ? true
5151
, routeReplacementSupport ? true
@@ -84,15 +84,15 @@
8484
lib.warnIf (!(stdenv.buildPlatform.canExecute stdenv.hostPlatform))
8585
"cannot enable SNMP support due to cross-compilation issues with net-snmp-config"
8686

87-
stdenv.mkDerivation rec {
87+
stdenv.mkDerivation (finalAttrs: {
8888
pname = "frr";
89-
version = "10.0.1";
89+
version = "10.1";
9090

9191
src = fetchFromGitHub {
9292
owner = "FRRouting";
93-
repo = pname;
94-
rev = "${pname}-${version}";
95-
hash = "sha256-bY5SSF/fmKQc8ECPik0v/ZlUiFsbZhwG2C5pbmoMzwQ=";
93+
repo = finalAttrs.pname;
94+
rev = "${finalAttrs.pname}-${finalAttrs.version}";
95+
hash = "sha256-pmFdxL8QpyXvpX2YiSOZ+KIoNaj1OOH6/qnVAWZLE9s=";
9696
};
9797

9898
patches = [
@@ -122,10 +122,11 @@ stdenv.mkDerivation rec {
122122
openssl
123123
pam
124124
pcre2
125+
protobufc
125126
python3
126127
readline
127128
rtrlib
128-
protobufc
129+
zeromq
129130
] ++ lib.optionals stdenv.isLinux [
130131
libcap
131132
] ++ lib.optionals snmpSupport [
@@ -141,7 +142,7 @@ stdenv.mkDerivation rec {
141142

142143
# cross-compiling: clippy is compiled with the build host toolchain, split it out to ease
143144
# navigation in dependency hell
144-
clippy-helper = buildPackages.callPackage ./clippy-helper.nix { frrVersion = version; frrSource = src; };
145+
clippy-helper = buildPackages.callPackage ./clippy-helper.nix { frrVersion = finalAttrs.version; frrSource = finalAttrs.src; };
145146

146147
configureFlags = [
147148
"--disable-silent-rules"
@@ -155,7 +156,7 @@ stdenv.mkDerivation rec {
155156
"--localstatedir=/run/frr"
156157
"--sbindir=$(out)/libexec/frr"
157158
"--sysconfdir=/etc/frr"
158-
"--with-clippy=${clippy-helper}/bin/clippy"
159+
"--with-clippy=${finalAttrs.clippy-helper}/bin/clippy"
159160
# general options
160161
(lib.strings.enableFeature snmpSupport "snmp")
161162
(lib.strings.enableFeature rpkiSupport "rpki")
@@ -193,8 +194,6 @@ stdenv.mkDerivation rec {
193194
(lib.strings.enableFeature ospfApi "ospfapi")
194195
# Cumulus options
195196
(lib.strings.enableFeature cumulusSupport "cumulus")
196-
# Datacenter options
197-
(lib.strings.enableFeature datacenterSupport "datacenter")
198197
];
199198

200199
postPatch = ''
@@ -243,4 +242,4 @@ stdenv.mkDerivation rec {
243242
};
244243

245244
passthru.tests = { inherit (nixosTests) frr; };
246-
}
245+
})

0 commit comments

Comments
 (0)