nixpkgs/pkgs/tools/networking/mtr/default.nix

30 lines
731 B
Nix
Raw Normal View History

2015-03-23 07:54:34 -04:00
{stdenv, fetchurl, ncurses, autoconf
, withGtk ? false, gtk ? null}:
2015-03-23 07:54:34 -04:00
assert withGtk -> gtk != null;
with stdenv.lib;
stdenv.mkDerivation rec {
baseName="mtr";
version="0.86";
name="${baseName}-${version}";
src = fetchurl {
url="ftp://ftp.bitwizard.nl/${baseName}/${name}.tar.gz";
2015-03-23 07:54:34 -04:00
sha256 = "01lcy89q3i9g4kz4liy6m7kcq1zyvmbc63rqidgw67341f94inf5";
};
2015-03-23 07:54:34 -04:00
configureFlags = optionalString (!withGtk) "--without-gtk";
2015-03-23 07:54:34 -04:00
buildInputs = [ autoconf ncurses ] ++ optional withGtk gtk;
meta = {
2015-03-23 07:54:34 -04:00
homepage = http://www.bitwizard.nl/mtr/;
description = "A network diagnostics tool";
2015-03-23 07:54:34 -04:00
maintainers = [ maintainers.koral maintainers.raskin ];
platforms = platforms.unix;
license = licenses.gpl2;
};
2015-03-23 07:54:34 -04:00
}