Merge pull request #72747 from Azulinho/nfstrace

nfstrace: init at 0.4.3.2
This commit is contained in:
Renaud 2019-11-05 11:03:15 +01:00 committed by GitHub
commit d4ceb13953
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 39 additions and 0 deletions

View File

@ -0,0 +1,37 @@
{ cmake, fetchFromGitHub, fetchpatch, json_c, libpcap, ncurses, stdenv }:
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";
})
];
buildInputs = [ json_c libpcap ncurses ];
nativeBuildInputs = [ cmake ];
# To build with GCC 8+ it needs:
CXXFLAGS = [ "-Wno-class-memaccess" "-Wno-ignored-qualifiers" ];
# CMake can't find json_c without:
NIX_CFLAGS_COMPILE = [ "-I${json_c.dev}/include/json-c" ];
doCheck = false; # requires network access
meta = with stdenv.lib; {
homepage = "http://epam.github.io/nfstrace/";
description = "NFS and CIFS tracing/monitoring/capturing/analyzing tool";
license = licenses.gpl2;
platforms = platforms.linux;
};
}

View File

@ -1906,6 +1906,8 @@ in
nfdump = callPackage ../tools/networking/nfdump { };
nfstrace = callPackage ../tools/networking/nfstrace { };
nixpkgs-pytools = with python3.pkgs; toPythonApplication nixpkgs-pytools;
noteshrink = callPackage ../tools/misc/noteshrink { };