mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 20:03:16 +00:00
d75c1e5612
- Migrate to by-name hierarchy - Use the finalAttrs pattern for easier overrides - Add meta.mainProgram
27 lines
657 B
Nix
27 lines
657 B
Nix
{ lib, stdenv, fetchFromGitHub, ncurses }:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "netproc";
|
|
version = "0.6.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "berghetti";
|
|
repo = "netproc";
|
|
rev = finalAttrs.version;
|
|
sha256 = "sha256-OQWlFwCga33rTseLeO8rAd+pkLHbSNf3YI5OSwrdIyk=";
|
|
};
|
|
|
|
buildInputs = [ ncurses ];
|
|
|
|
installFlags = [ "prefix=$(out)" ];
|
|
|
|
meta = with lib; {
|
|
description = "Tool to monitor network traffic based on processes";
|
|
homepage = "https://github.com/berghetti/netproc";
|
|
license = licenses.gpl3;
|
|
mainProgram = "netproc";
|
|
maintainers = [ maintainers.azuwis ];
|
|
platforms = platforms.linux;
|
|
};
|
|
})
|