about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/networking/iftop/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/tools/networking/iftop/default.nix')
-rw-r--r--nixpkgs/pkgs/tools/networking/iftop/default.nix8
1 files changed, 5 insertions, 3 deletions
diff --git a/nixpkgs/pkgs/tools/networking/iftop/default.nix b/nixpkgs/pkgs/tools/networking/iftop/default.nix
index bc6f657f3781..70c1f0b6c965 100644
--- a/nixpkgs/pkgs/tools/networking/iftop/default.nix
+++ b/nixpkgs/pkgs/tools/networking/iftop/default.nix
@@ -1,10 +1,10 @@
-{stdenv, fetchurl, ncurses, libpcap, automake}:
+{ stdenv, fetchurl, ncurses, libpcap, automake, nixosTests }:
 
 stdenv.mkDerivation {
   name = "iftop-1.0pre4";
 
   src = fetchurl {
-    url = http://ex-parrot.com/pdw/iftop/download/iftop-1.0pre4.tar.gz;
+    url = "http://ex-parrot.com/pdw/iftop/download/iftop-1.0pre4.tar.gz";
     sha256 = "15sgkdyijb7vbxpxjavh5qm5nvyii3fqcg9mzvw7fx8s6zmfwczp";
   };
 
@@ -18,6 +18,8 @@ stdenv.mkDerivation {
 
   buildInputs = [ncurses libpcap];
 
+  passthru.tests = { inherit (nixosTests) iftop; };
+
   meta = with stdenv.lib; {
     description = "Display bandwidth usage on a network interface";
     longDescription = ''
@@ -26,7 +28,7 @@ stdenv.mkDerivation {
       bandwidth usage by pairs of hosts.
     '';
     license = licenses.gpl2Plus;
-    homepage = http://ex-parrot.com/pdw/iftop/;
+    homepage = "http://ex-parrot.com/pdw/iftop/";
     platforms = platforms.unix;
     maintainers = [ ];
   };