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

35 lines
912 B
Nix
Raw Normal View History

2017-03-13 04:22:29 +00:00
{stdenv, fetchurl, autoreconfHook, pkgconfig, ncurses
, withGtk ? false, gtk2 ? null}:
assert withGtk -> gtk2 != null;
2015-03-23 11:54:34 +00:00
with stdenv.lib;
stdenv.mkDerivation rec {
baseName="mtr";
2017-03-13 04:22:29 +00:00
version="0.87";
2015-03-23 11:54:34 +00:00
name="${baseName}-${version}";
2017-03-13 04:22:29 +00:00
2015-03-23 11:54:34 +00:00
src = fetchurl {
url="ftp://ftp.bitwizard.nl/${baseName}/${name}.tar.gz";
2017-03-13 04:22:29 +00:00
sha256 = "17zi99n8bdqrwrnbfyjn327jz4gxx287wrq3vk459c933p34ff8r";
};
preConfigure = "substituteInPlace Makefile.in --replace ' install-exec-hook' ''";
2015-03-23 11:54:34 +00:00
configureFlags = optionalString (!withGtk) "--without-gtk";
2017-03-13 04:22:29 +00:00
nativeBuildInputs = [ autoreconfHook pkgconfig ];
buildInputs = [ ncurses ] ++ optional withGtk gtk2;
enableParallelBuilding = true;
meta = {
2015-03-23 11:54:34 +00:00
homepage = http://www.bitwizard.nl/mtr/;
description = "A network diagnostics tool";
2017-03-13 04:22:29 +00:00
maintainers = with maintainers; [ koral orivej raskin ];
2015-03-23 11:54:34 +00:00
platforms = platforms.unix;
license = licenses.gpl2;
};
2015-03-23 11:54:34 +00:00
}