diff options
author | Robert Helgesson <robert@rycee.net> | 2016-01-14 20:47:55 +0100 |
---|---|---|
committer | Robert Helgesson <robert@rycee.net> | 2016-01-14 20:49:20 +0100 |
commit | b4f03263ec00489464ae5d8d04c3f27c42a5ee8e (patch) | |
tree | 95574884e1aba2575df5fd7371f38a0fa63d3476 /pkgs/tools/networking/nethogs | |
parent | 07f07f2d300e2a80c68b030a58692c2543c23646 (diff) | |
download | nixpkgs-b4f03263ec00489464ae5d8d04c3f27c42a5ee8e.tar nixpkgs-b4f03263ec00489464ae5d8d04c3f27c42a5ee8e.tar.gz nixpkgs-b4f03263ec00489464ae5d8d04c3f27c42a5ee8e.tar.bz2 nixpkgs-b4f03263ec00489464ae5d8d04c3f27c42a5ee8e.tar.lz nixpkgs-b4f03263ec00489464ae5d8d04c3f27c42a5ee8e.tar.xz nixpkgs-b4f03263ec00489464ae5d8d04c3f27c42a5ee8e.tar.zst nixpkgs-b4f03263ec00489464ae5d8d04c3f27c42a5ee8e.zip |
nethogs: 0.8.1-git -> 0.8.1
Also use fetchFromGitHub, use make flags instead of patching Makefile, and add myself as maintainer since the package is unmaintained.
Diffstat (limited to 'pkgs/tools/networking/nethogs')
-rw-r--r-- | pkgs/tools/networking/nethogs/default.nix | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/pkgs/tools/networking/nethogs/default.nix b/pkgs/tools/networking/nethogs/default.nix index 3b22458ebe3..c8ff0c7a160 100644 --- a/pkgs/tools/networking/nethogs/default.nix +++ b/pkgs/tools/networking/nethogs/default.nix @@ -1,21 +1,19 @@ -{ stdenv, fetchgit, ncurses, libpcap }: +{ stdenv, fetchFromGitHub, ncurses, libpcap }: stdenv.mkDerivation rec { name = "nethogs-${version}"; + version = "0.8.1"; - version = "0.8.1-git"; - - src = fetchgit { - url = git://github.com/raboof/nethogs.git; - rev = "f6f9e890ea731b8acdcb8906642afae4cd96baa8"; - sha256 = "0dj5sdyxdlssbnjbdf8k7x896m2zgyyg31g12dl5n6irqdrb5scf"; + src = fetchFromGitHub { + owner = "raboof"; + repo = "nethogs"; + rev = "v${version}"; + sha256 = "1phn6i44ysvpl1f54bx4dspy51si8rc2wq6fywi163mi25j355d4"; }; buildInputs = [ ncurses libpcap ]; - preConfigure = '' - substituteInPlace Makefile --replace "prefix := /usr/local" "prefix := $out" - ''; + installFlags = [ "prefix=$(out)" "sbin=$(prefix)/bin" ]; meta = with stdenv.lib; { description = "A small 'net top' tool, grouping bandwidth by process"; @@ -31,5 +29,6 @@ stdenv.mkDerivation rec { license = licenses.gpl2Plus; homepage = http://nethogs.sourceforge.net/; platforms = platforms.linux; + maintainer = [ maintainers.rycee ]; }; } |