From 85ff054b7cb284a41d07d7aa617e1551389022f4 Mon Sep 17 00:00:00 2001 From: qzylinra Date: Mon, 25 Aug 2025 10:22:22 +0800 Subject: [PATCH] nfstrace: drop The software build has failed. It has no maintainer, is poorly maintained upstream, and is difficult to keep up. It should be removed. --- pkgs/by-name/nf/nfstrace/package.nix | 79 ---------------------------- pkgs/top-level/aliases.nix | 1 + 2 files changed, 1 insertion(+), 79 deletions(-) delete mode 100644 pkgs/by-name/nf/nfstrace/package.nix diff --git a/pkgs/by-name/nf/nfstrace/package.nix b/pkgs/by-name/nf/nfstrace/package.nix deleted file mode 100644 index 11edace296ef..000000000000 --- a/pkgs/by-name/nf/nfstrace/package.nix +++ /dev/null @@ -1,79 +0,0 @@ -{ - cmake, - fetchFromGitHub, - fetchpatch, - json_c, - libpcap, - ncurses, - lib, - stdenv, - libtirpc, -}: - -stdenv.mkDerivation rec { - pname = "nfstrace"; - version = "0.4.3.2"; - - src = fetchFromGitHub { - owner = "epam"; - repo = "nfstrace"; - rev = version; - sha256 = "1djsyn7i3xp969rnmsdaf5vwjiik9wylxxrc5nm7by00i76c1vsg"; - }; - - patches = [ - (fetchpatch { - url = "https://salsa.debian.org/debian/nfstrace/raw/debian/0.4.3.1-3/debian/patches/reproducible_build.patch"; - sha256 = "0fd96r8xi142kjwibqkd46s6jwsg5kfc5v28bqsj9rdlc2aqmay5"; - }) - # Fixes build failure with gcc-10 - # Related PR https://github.com/epam/nfstrace/pull/42/commits/4562a895ed3ac0e811bdd489068ad3ebe4d7b501 - (fetchpatch { - url = "https://github.com/epam/nfstrace/commit/4562a895ed3ac0e811bdd489068ad3ebe4d7b501.patch"; - sha256 = "1fbicbllyykjknik7asa81x0ixxmbwqwkiz74cnznagv10jlkj3p"; - }) - - # Fix pending upstream inclusion for ncurses-6.3 support: - # https://github.com/epam/nfstrace/pull/50 - (fetchpatch { - name = "ncurses-6.3.patch"; - url = "https://github.com/epam/nfstrace/commit/29c7c415f5412df1aae9b1e6ed3a2760d2c227a0.patch"; - sha256 = "134709w6bld010jx3xdy9imcjzal904a84n9f8vv0wnas5clxdmx"; - }) - ]; - - postPatch = '' - # -Wall -Wextra -Werror fails on clang and newer gcc - substituteInPlace CMakeLists.txt \ - --replace "-Wno-braced-scalar-init" "" \ - --replace "-Werror" "" - ''; - - buildInputs = [ - json_c - libpcap - ncurses - libtirpc - ]; - nativeBuildInputs = [ cmake ]; - - # To build with GCC 8+ it needs: - CXXFLAGS = "-Wno-class-memaccess -Wno-ignored-qualifiers"; - # CMake can't find json_c without: - env.NIX_CFLAGS_COMPILE = toString [ - "-I${json_c.dev}/include/json-c" - "-Wno-error=address-of-packed-member" - "-I${libtirpc.dev}/include/tirpc" - ]; - NIX_LDFLAGS = [ "-ltirpc" ]; - - doCheck = false; # requires network access - - meta = with lib; { - homepage = "http://epam.github.io/nfstrace/"; - description = "NFS and CIFS tracing/monitoring/capturing/analyzing tool"; - license = licenses.gpl2Only; - platforms = platforms.linux; - mainProgram = "nfstrace"; - }; -} diff --git a/pkgs/top-level/aliases.nix b/pkgs/top-level/aliases.nix index 6a6ac68b11a7..4a8e0ab7741d 100644 --- a/pkgs/top-level/aliases.nix +++ b/pkgs/top-level/aliases.nix @@ -1657,6 +1657,7 @@ mapAliases { networkmanager_strongswan = networkmanager-strongswan; # added 2025-06-29 newlibCross = newlib; # Added 2024-09-06 newlib-nanoCross = newlib-nano; # Added 2024-09-06 + nfstrace = throw "nfstrace has been removed, as it was broken"; # Added 2025-08-25 nix-direnv-flakes = nix-direnv; nix-ld-rs = nix-ld; # Added 2024-08-17 nix-plugin-pijul = throw "nix-plugin-pijul has been removed due to being discontinued"; # added 2025-05-18