mtr: build a -gui option as well

This commit is contained in:
Peter Hoeg 2019-08-05 17:39:40 +08:00
parent 89721e4954
commit 49e61479d4
2 changed files with 4 additions and 2 deletions

View File

@ -1,11 +1,11 @@
{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig
{ stdenv, lib, fetchFromGitHub, autoreconfHook, pkgconfig
, libcap, ncurses
, withGtk ? false, gtk2 ? null }:
assert withGtk -> gtk2 != null;
stdenv.mkDerivation rec {
pname = "mtr";
pname = "mtr${lib.optionalString withGtk "-gui"}";
version = "0.93";
src = fetchFromGitHub {

View File

@ -4781,6 +4781,8 @@ in
mtr = callPackage ../tools/networking/mtr {};
mtr-gui = callPackage ../tools/networking/mtr { withGtk = true; };
mtx = callPackage ../tools/backup/mtx {};
mt-st = callPackage ../tools/backup/mt-st {};