Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 ncurses,
6}:
7
8stdenv.mkDerivation (finalAttrs: {
9 pname = "netproc";
10 version = "0.6.6";
11
12 src = fetchFromGitHub {
13 owner = "berghetti";
14 repo = "netproc";
15 rev = finalAttrs.version;
16 hash = "sha256-OQWlFwCga33rTseLeO8rAd+pkLHbSNf3YI5OSwrdIyk=";
17 };
18
19 buildInputs = [ ncurses ];
20
21 installFlags = [ "prefix=$(out)" ];
22
23 meta = with lib; {
24 description = "Tool to monitor network traffic based on processes";
25 homepage = "https://github.com/berghetti/netproc";
26 license = licenses.gpl3;
27 mainProgram = "netproc";
28 maintainers = [ maintainers.azuwis ];
29 platforms = platforms.linux;
30 };
31})