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