From d22149a3b78f9abeceb919f8bbf3fcbfc52a3e5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Mon, 1 Sep 2008 13:00:24 +0000 Subject: [PATCH] Use tcpdump mirror scheme. svn path=/nixpkgs/trunk/; revision=12780 --- pkgs/development/libraries/libpcap/default.nix | 7 +++++-- pkgs/tools/networking/tcpdump/default.nix | 12 ++++++++++-- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/pkgs/development/libraries/libpcap/default.nix b/pkgs/development/libraries/libpcap/default.nix index 68db40771e8d..b560ad05c374 100644 --- a/pkgs/development/libraries/libpcap/default.nix +++ b/pkgs/development/libraries/libpcap/default.nix @@ -1,9 +1,12 @@ {stdenv, fetchurl, flex, bison}: -stdenv.mkDerivation { +stdenv.mkDerivation rec { name = "libpcap-0.9.8"; src = fetchurl { - url = [ http://www.tcpdump.org/release/libpcap-0.9.8.tar.gz http://www.sfr-fresh.com/unix/misc/libpcap-0.9.8.tar.gz ]; + url = [ + "mirror://tcpdump/release/${name}.tar.gz" + "http://www.sfr-fresh.com/unix/misc/${name}.tar.gz" + ]; sha256 = "1yb2hg8jd1bzq3lbrff1sps4757krvj2c9pm2ixn44a4vsc865f4"; }; buildInputs = [flex bison]; diff --git a/pkgs/tools/networking/tcpdump/default.nix b/pkgs/tools/networking/tcpdump/default.nix index 82d8641f60be..8b0a7fb22d25 100644 --- a/pkgs/tools/networking/tcpdump/default.nix +++ b/pkgs/tools/networking/tcpdump/default.nix @@ -1,10 +1,18 @@ {stdenv, fetchurl, libpcap}: -stdenv.mkDerivation { +stdenv.mkDerivation rec { name = "tcpdump-3.9.8"; + src = fetchurl { - url = http://www.tcpdump.org/release/tcpdump-3.9.8.tar.gz; + url = "mirror://tcpdump/release/${name}.tar.gz"; sha256 = "16fjm1ih56mwqniffp63adbxwfj5n10x1a7l22j3cx683pmwh293"; }; + buildInputs = [libpcap]; + + meta = { + description = "tcpdump, a famous network sniffer"; + homepage = http://www.tcpdump.org/; + license = "BSD-style"; + }; }