From 70db57f48838801ce3752f8d6957623d16dca2f0 Mon Sep 17 00:00:00 2001 From: Jaka Hudoklin Date: Tue, 7 Jul 2015 11:52:23 +0200 Subject: [PATCH] driftnet: init at 8d47fd5 --- pkgs/tools/networking/driftnet/default.nix | 26 ++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 28 insertions(+) create mode 100644 pkgs/tools/networking/driftnet/default.nix diff --git a/pkgs/tools/networking/driftnet/default.nix b/pkgs/tools/networking/driftnet/default.nix new file mode 100644 index 000000000000..432411c1460d --- /dev/null +++ b/pkgs/tools/networking/driftnet/default.nix @@ -0,0 +1,26 @@ +{ stdenv, lib, fetchFromGitHub, autoconf, automake, libpcap, libjpeg, libungif, libpng, giflib, glib, gtk2, cairo, pango, gdk_pixbuf, atk, pkgconfig }: + +with lib; + +stdenv.mkDerivation rec { + name = "driftnet-${stdenv.lib.strings.substring 0 7 rev}"; + rev = "8d47fd563a06122d4a6f9b9b9d27ba3d635148c0"; + + buildInputs = [ autoconf automake pkgconfig libpcap libjpeg libungif libpng giflib glib gtk2 glib cairo pango gdk_pixbuf atk ]; + + preConfigure = "autoreconf -fi"; + + src = fetchFromGitHub { + inherit rev; + owner = "deiv"; + repo = "driftnet"; + sha256 = "1i9fqbsfrhvr36r17v3ydr1bqsszns8gyjbvlfqbdd4l5l5n6amg"; + }; + + meta = { + description = "Driftnet watches network traffic, and picks out and displays JPEG and GIF images for display."; + homepage = https://github.com/deiv/driftnet; + maintainers = with maintainers; [ offline ]; + platforms = with platforms; linux; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index e90ff4984b85..708c842a0d0d 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1314,6 +1314,8 @@ let drive = callPackage ../applications/networking/drive { }; + driftnet = callPackage ../tools/networking/driftnet {}; + dropbear = callPackage ../tools/networking/dropbear { }; dtach = callPackage ../tools/misc/dtach { };