diff options
author | Azulinho <mail@azulinho.com> | 2019-11-04 15:45:39 +0000 |
---|---|---|
committer | Azulinho <mail@azulinho.com> | 2019-11-05 09:19:34 +0000 |
commit | 7c723450a186e85aa324268a0a48d9a850ac774d (patch) | |
tree | 9b9f796aba5ad6930e395fb25e6cce90e9fce627 /pkgs/tools/networking/nfstrace | |
parent | 3df93dbe0e4aa4d0779a2c6ecbf925c59e77ec89 (diff) | |
download | nixpkgs-7c723450a186e85aa324268a0a48d9a850ac774d.tar nixpkgs-7c723450a186e85aa324268a0a48d9a850ac774d.tar.gz nixpkgs-7c723450a186e85aa324268a0a48d9a850ac774d.tar.bz2 nixpkgs-7c723450a186e85aa324268a0a48d9a850ac774d.tar.lz nixpkgs-7c723450a186e85aa324268a0a48d9a850ac774d.tar.xz nixpkgs-7c723450a186e85aa324268a0a48d9a850ac774d.tar.zst nixpkgs-7c723450a186e85aa324268a0a48d9a850ac774d.zip |
nfstrace: init at 0.4.3.2
Co-authored-by: Renaud <c0bw3b@users.noreply.github.com> Co-authored-by: Nick Partridge <nkpart@gmail.com>
Diffstat (limited to 'pkgs/tools/networking/nfstrace')
-rw-r--r-- | pkgs/tools/networking/nfstrace/default.nix | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/tools/networking/nfstrace/default.nix b/pkgs/tools/networking/nfstrace/default.nix new file mode 100644 index 00000000000..50654da54e4 --- /dev/null +++ b/pkgs/tools/networking/nfstrace/default.nix @@ -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; + }; +} |