diff options
author | Maximilian Bosch <maximilian@mbosch.me> | 2019-09-12 09:34:22 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-12 09:34:22 +0200 |
commit | 99b291c73c589a1b807bb6c4e7a727d9a994e495 (patch) | |
tree | dbfa3a5171854c431eb096dd13dd147b253fcaf7 /pkgs/tools/networking | |
parent | 4bb69053f19fe6497f963c9ba8a1fb252bdb4537 (diff) | |
parent | 968d4643b0380238af6abeac56b794a7f45e7ea7 (diff) |
Merge pull request #68507 from peterhoeg/f/mtr
nixos/mtr: support for selecting the package
Diffstat (limited to 'pkgs/tools/networking')
-rw-r--r-- | pkgs/tools/networking/mtr/default.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/tools/networking/mtr/default.nix b/pkgs/tools/networking/mtr/default.nix index 1acd513be31f..217f3b7d7cc8 100644 --- a/pkgs/tools/networking/mtr/default.nix +++ b/pkgs/tools/networking/mtr/default.nix @@ -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 { |