summary refs log tree commit diff
path: root/pkgs/servers/frr
diff options
context:
space:
mode:
authorMartin Weinelt <hexa@darmstadt.ccc.de>2021-12-22 22:41:46 +0100
committerMartin Weinelt <hexa@darmstadt.ccc.de>2022-01-09 04:12:55 +0100
commit24ffe3140186bcadcb8044979b1bfb3a1d609126 (patch)
treee18797e5f4aef15771bb0f432405cbd302997a0e /pkgs/servers/frr
parenta43da2c353e9c43b8cf34210851d80c18974e5fb (diff)
downloadnixpkgs-24ffe3140186bcadcb8044979b1bfb3a1d609126.tar
nixpkgs-24ffe3140186bcadcb8044979b1bfb3a1d609126.tar.gz
nixpkgs-24ffe3140186bcadcb8044979b1bfb3a1d609126.tar.bz2
nixpkgs-24ffe3140186bcadcb8044979b1bfb3a1d609126.tar.lz
nixpkgs-24ffe3140186bcadcb8044979b1bfb3a1d609126.tar.xz
nixpkgs-24ffe3140186bcadcb8044979b1bfb3a1d609126.tar.zst
nixpkgs-24ffe3140186bcadcb8044979b1bfb3a1d609126.zip
frr: 7.5.1 -> 8.1
Update package and enable tests.
Diffstat (limited to 'pkgs/servers/frr')
-rw-r--r--pkgs/servers/frr/default.nix67
1 files changed, 52 insertions, 15 deletions
diff --git a/pkgs/servers/frr/default.nix b/pkgs/servers/frr/default.nix
index 48c8af1b18e..7f76f0285b2 100644
--- a/pkgs/servers/frr/default.nix
+++ b/pkgs/servers/frr/default.nix
@@ -1,40 +1,71 @@
 { lib
 , stdenv
 , fetchFromGitHub
+, python3Packages
+
+# build time
 , autoreconfHook
-, libcap
-, json_c
-, readline
-, net-snmp
+, flex
+, bison
 , perl
-, texinfo
 , pkg-config
+, texinfo
+
+# runtime
 , c-ares
-, python3
-, python3Packages
+, json_c
+, libcap
+, libelf
+, libunwind
 , libyang
-, flex
-, bison
+, net-snmp
 , openssl
-, czmq
+, pam
+, pcre2
+, python3
+, readline
+
+# tests
+, nettools
 , nixosTests
 }:
 
 stdenv.mkDerivation rec {
   pname = "frr";
-  version = "7.5.1";
+  version = "8.1";
 
   src = fetchFromGitHub {
     owner = "FRRouting";
     repo = pname;
     rev = "${pname}-${version}";
-    sha256 = "0lzsvi3kl9zcd4k04vc3363z9v2yrp7wc8bziv6w9h5fznh2vkxp";
+    sha256 = "sha256-hJcgLiPBxOE5QEh0RhtZhM3dOxFqW5H0TUjN+aP4qRk=";
   };
 
-  buildInputs = [ readline net-snmp c-ares json_c python3 libyang openssl czmq ]
-    ++ lib.optionals stdenv.isLinux [ libcap ];
+  nativeBuildInputs = [
+    autoreconfHook
+    bison
+    flex
+    perl
+    pkg-config
+    python3Packages.sphinx
+    texinfo
+  ];
 
-  nativeBuildInputs = [ pkg-config perl texinfo autoreconfHook python3Packages.sphinx python3Packages.pytest flex bison ];
+  buildInputs = [
+    c-ares
+    json_c
+    libelf
+    libunwind
+    libyang
+    net-snmp
+    openssl
+    pam
+    pcre2
+    python3
+    readline
+  ] ++ lib.optionals stdenv.isLinux [
+    libcap
+  ];
 
   configureFlags = [
     "--sysconfdir=/etc/frr"
@@ -54,6 +85,12 @@ stdenv.mkDerivation rec {
     substituteInPlace tools/frr-reload --replace /usr/lib/frr/ $out/libexec/frr/
   '';
 
+  doCheck = true;
+  checkInputs = [
+    nettools
+    python3Packages.pytest
+  ];
+
   enableParallelBuilding = true;
 
   passthru.tests = { inherit (nixosTests) frr; };