mtr: cleanup
This commit is contained in:
parent
16c881deac
commit
e7a276762b
|
@ -1,17 +1,15 @@
|
||||||
{ stdenv, lib, fetchFromGitHub, autoreconfHook, pkg-config
|
{ stdenv, lib, fetchFromGitHub, autoreconfHook, pkg-config
|
||||||
, libcap, ncurses
|
, libcap, ncurses
|
||||||
, withGtk ? false, gtk3 ? null }:
|
, withGtk ? false, gtk3 }:
|
||||||
|
|
||||||
assert withGtk -> gtk3 != null;
|
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "mtr${lib.optionalString withGtk "-gui"}";
|
pname = "mtr${lib.optionalString withGtk "-gui"}";
|
||||||
version = "0.94";
|
version = "0.94";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "traviscross";
|
owner = "traviscross";
|
||||||
repo = "mtr";
|
repo = "mtr";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "0wnz87cr2lcl74bj8qxq9xgai40az3pk9k0z893scyc8svd61xz6";
|
sha256 = "0wnz87cr2lcl74bj8qxq9xgai40az3pk9k0z893scyc8svd61xz6";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -38,9 +36,9 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A network diagnostics tool";
|
description = "A network diagnostics tool";
|
||||||
homepage = "https://www.bitwizard.nl/mtr/";
|
homepage = "https://www.bitwizard.nl/mtr/";
|
||||||
license = licenses.gpl2;
|
license = licenses.gpl2;
|
||||||
maintainers = with maintainers; [ koral orivej raskin globin ];
|
maintainers = with maintainers; [ koral orivej raskin globin ];
|
||||||
platforms = platforms.unix;
|
platforms = platforms.unix;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue