nixos/tests: add passthru.tests to all tested terminal emulators

main
Jamie McClymont 4 years ago
parent 842e547c17
commit 694862304b
  1. 4
      pkgs/applications/kde/konsole.nix
  2. 3
      pkgs/applications/terminal-emulators/alacritty/default.nix
  3. 4
      pkgs/applications/terminal-emulators/contour/default.nix
  4. 4
      pkgs/applications/terminal-emulators/cool-retro-term/default.nix
  5. 3
      pkgs/applications/terminal-emulators/ctx/default.nix
  6. 3
      pkgs/applications/terminal-emulators/darktile/default.nix
  7. 3
      pkgs/applications/terminal-emulators/eterm/default.nix
  8. 3
      pkgs/applications/terminal-emulators/germinal/default.nix
  9. 3
      pkgs/applications/terminal-emulators/guake/default.nix
  10. 4
      pkgs/applications/terminal-emulators/hyper/default.nix
  11. 3
      pkgs/applications/terminal-emulators/kermit-terminal/default.nix
  12. 3
      pkgs/applications/terminal-emulators/kgx/default.nix
  13. 3
      pkgs/applications/terminal-emulators/kitty/default.nix
  14. 4
      pkgs/applications/terminal-emulators/lxterminal/default.nix
  15. 4
      pkgs/applications/terminal-emulators/mlterm/default.nix
  16. 3
      pkgs/applications/terminal-emulators/mrxvt/default.nix
  17. 4
      pkgs/applications/terminal-emulators/roxterm/default.nix
  18. 3
      pkgs/applications/terminal-emulators/rxvt-unicode/default.nix
  19. 6
      pkgs/applications/terminal-emulators/rxvt-unicode/wrapper.nix
  20. 3
      pkgs/applications/terminal-emulators/sakura/default.nix
  21. 3
      pkgs/applications/terminal-emulators/st/default.nix
  22. 4
      pkgs/applications/terminal-emulators/stupidterm/default.nix
  23. 3
      pkgs/applications/terminal-emulators/terminator/default.nix
  24. 7
      pkgs/applications/terminal-emulators/termite/default.nix
  25. 4
      pkgs/applications/terminal-emulators/termonad/default.nix
  26. 3
      pkgs/applications/terminal-emulators/tilda/default.nix
  27. 3
      pkgs/applications/terminal-emulators/tilix/default.nix
  28. 3
      pkgs/applications/terminal-emulators/wayst/default.nix
  29. 3
      pkgs/applications/terminal-emulators/wezterm/default.nix
  30. 5
      pkgs/applications/terminal-emulators/xterm/default.nix
  31. 4
      pkgs/desktops/enlightenment/terminology/default.nix
  32. 3
      pkgs/desktops/gnome/core/gnome-terminal/default.nix
  33. 3
      pkgs/desktops/lxqt/qterminal/default.nix
  34. 4
      pkgs/desktops/mate/mate-terminal/default.nix
  35. 4
      pkgs/desktops/xfce/applications/xfce4-terminal/default.nix

@ -1,5 +1,5 @@
{
mkDerivation, lib,
mkDerivation, lib, nixosTests,
extra-cmake-modules, kdoctools,
kbookmarks, kcompletion, kconfig, kconfigwidgets, kcoreaddons, kguiaddons,
ki18n, kiconthemes, kinit, kio, knotifications,
@ -22,5 +22,7 @@ mkDerivation {
kservice ktextwidgets kwidgetsaddons kwindowsystem kxmlgui qtscript knewstuff
];
passthru.tests.test = nixosTests.terminal-emulators.konsole;
propagatedUserEnvPkgs = [ (lib.getBin kinit) ];
}

@ -3,6 +3,7 @@
, fetchFromGitHub
, fetchpatch
, rustPlatform
, nixosTests
, cmake
, gzip
@ -132,6 +133,8 @@ rustPlatform.buildRustPackage rec {
dontPatchELF = true;
passthru.tests.test = nixosTests.terminal-emulators.alacritty;
meta = with lib; {
description = "A cross-platform, GPU-accelerated terminal emulator";
homepage = "https://github.com/alacritty/alacritty";

@ -1,4 +1,4 @@
{ lib, stdenv, mkDerivation, fetchFromGitHub, cmake, pkg-config, freetype, libGL, pcre }:
{ lib, stdenv, mkDerivation, fetchFromGitHub, cmake, pkg-config, freetype, libGL, pcre, nixosTests }:
mkDerivation rec {
pname = "contour";
@ -16,6 +16,8 @@ mkDerivation rec {
buildInputs = [ freetype libGL pcre ];
passthru.tests.test = nixosTests.terminal-emulators.contour;
meta = with lib; {
description = "Modern C++ Terminal Emulator";
homepage = "https://github.com/christianparpart/contour";

@ -1,5 +1,5 @@
{ lib, stdenv, fetchFromGitHub, mkDerivation, qtbase, qtquick1, qmltermwidget
, qtquickcontrols, qtgraphicaleffects, qmake }:
, qtquickcontrols, qtgraphicaleffects, qmake, nixosTests }:
mkDerivation rec {
version = "1.1.1";
@ -29,6 +29,8 @@ mkDerivation rec {
ln -s $out/bin/cool-retro-term.app/Contents/MacOS/cool-retro-term $out/bin/cool-retro-term
'';
passthru.tests.test = nixosTests.terminal-emulators.cool-retro-term;
meta = {
description = "Terminal emulator which mimics the old cathode display";
longDescription = ''

@ -8,6 +8,7 @@
, libdrm # Not documented
, pkg-config
, enableFb ? false
, nixosTests
}:
stdenv.mkDerivation rec {
@ -43,6 +44,8 @@ stdenv.mkDerivation rec {
"PREFIX=${placeholder "out"}"
];
passthru.tests.test = nixosTests.terminal-emulators.ctx;
meta = with lib; {
homepage = "https://ctx.graphics/";
description = "Vector graphics terminal";

@ -12,6 +12,7 @@
, libXext
, libXxf86vm
, libGL
, nixosTests
}:
stdenv.mkDerivation rec {
@ -57,6 +58,8 @@ stdenv.mkDerivation rec {
runHook postInstall
'';
passthru.tests.test = nixosTests.terminal-emulators.darktile;
meta = with lib; {
description = "A GPU rendered terminal emulator designed for tiling window managers";
homepage = "https://github.com/liamg/darktile";

@ -8,6 +8,7 @@
, libXext
, libast
, pkg-config
, nixosTests
}:
stdenv.mkDerivation rec {
@ -33,6 +34,8 @@ stdenv.mkDerivation rec {
libast
];
passthru.tests.test = nixosTests.terminal-emulators.eterm;
meta = with lib; {
homepage = "https://github.com/mej/Eterm"; # http://www.eterm.org is gone
description = "Terminal emulator";

@ -9,6 +9,7 @@
, tmux
, vte
, wrapGAppsHook
, nixosTests
}:
stdenv.mkDerivation rec {
@ -45,6 +46,8 @@ stdenv.mkDerivation rec {
runHook postFixup
'';
passthru.tests.test = nixosTests.terminal-emulators.germinal;
meta = with lib; {
description = "A minimal terminal emulator";
homepage = "https://github.com/Keruspe/Germinal";

@ -10,6 +10,7 @@
, libutempter
, vte
, libwnck
, nixosTests
}:
python3.pkgs.buildPythonApplication rec {
@ -66,6 +67,8 @@ python3.pkgs.buildPythonApplication rec {
gappsWrapperArgs+=(--prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath [ libutempter ]}")
'';
passthru.tests.test = nixosTests.terminal-emulators.guake;
meta = with lib; {
description = "Drop-down terminal for GNOME";
homepage = "http://guake-project.org";

@ -2,7 +2,7 @@
, freetype, fontconfig, dbus, libXi, libXcursor, libXdamage, libXrandr, libXcomposite
, libXext, libXfixes, libXrender, libX11, libXtst, libXScrnSaver, libxcb, nss, nspr
, alsa-lib, cups, expat, udev, libpulseaudio, at-spi2-atk, at-spi2-core, libxshmfence
, libdrm, libxkbcommon, mesa }:
, libdrm, libxkbcommon, mesa, nixosTests}:
let
libPath = lib.makeLibraryPath [
@ -43,6 +43,8 @@ stdenv.mkDerivation rec {
--replace "/opt/Hyper/hyper" "hyper"
'';
passthru.tests.test = nixosTests.terminal-emulators.hyper;
dontPatchELF = true;
meta = with lib; {
description = "A terminal built on web technologies";

@ -6,6 +6,7 @@
, pcre
, pkg-config
, vte
, nixosTests
}:
stdenv.mkDerivation rec {
@ -31,6 +32,8 @@ stdenv.mkDerivation rec {
vte
];
passthru.tests.test = nixosTests.terminal-emulators.kermit;
meta = with lib; {
homepage = "https://github.com/orhun/kermit";
description = "A VTE-based, simple and froggy terminal emulator";

@ -18,6 +18,7 @@
, python3
, sassc
, wrapGAppsHook
, nixosTests
}:
stdenv.mkDerivation {
@ -66,6 +67,8 @@ stdenv.mkDerivation {
--replace "Exec=kgx" "Exec=$out/bin/kgx"
'';
passthru.tests.test = nixosTests.terminal-emulators.kgx;
meta = with lib; {
description = "Simple user-friendly terminal emulator for the GNOME desktop";
homepage = "https://gitlab.gnome.org/ZanderBrown/kgx";

@ -22,6 +22,7 @@
, zsh
, fish
, fetchpatch
, nixosTests
}:
with python3Packages;
@ -176,6 +177,8 @@ buildPythonApplication rec {
runHook postInstall
'';
passthru.tests.test = nixosTests.terminal-emulators.kitty;
meta = with lib; {
homepage = "https://github.com/kovidgoyal/kitty";
description = "A modern, hackable, featureful, OpenGL based terminal emulator";

@ -1,5 +1,5 @@
{ lib, stdenv, fetchFromGitHub, automake, autoconf, intltool, pkg-config, gtk3, vte, wrapGAppsHook
, libxslt, docbook_xml_dtd_412, docbook_xsl, libxml2, findXMLCatalogs
, libxslt, docbook_xml_dtd_412, docbook_xsl, libxml2, findXMLCatalogs, nixosTests
}:
stdenv.mkDerivation rec {
@ -35,6 +35,8 @@ stdenv.mkDerivation rec {
doCheck = true;
passthru.tests.test = nixosTests.terminal-emulators.lxterminal;
meta = {
description = "The standard terminal emulator of LXDE";
longDescription = ''

@ -1,4 +1,4 @@
{ stdenv, lib, fetchFromGitHub, pkg-config, autoconf, makeDesktopItem
{ stdenv, lib, fetchFromGitHub, pkg-config, autoconf, makeDesktopItem, nixosTests
, libX11, gdk-pixbuf, cairo, libXft, gtk3, vte
, harfbuzz #substituting glyphs with opentype fonts
, fribidi, m17n_lib #bidi and encoding
@ -110,6 +110,8 @@ stdenv.mkDerivation rec {
startupNotify = false;
};
passthru.tests.test = nixosTests.terminal-emulators.mlterm;
meta = with lib; {
description = "Multi Lingual TERMinal emulator";
homepage = "http://mlterm.sourceforge.net/";

@ -10,6 +10,7 @@
, freetype
, pkg-config
, which
, nixosTests
}:
stdenv.mkDerivation rec {
@ -38,6 +39,8 @@ stdenv.mkDerivation rec {
NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${freetype.dev}/include/freetype2";
'';
passthru.tests.test = nixosTests.terminal-emulators.mrxvt;
meta = with lib; {
description = "Lightweight multitabbed feature-rich X11 terminal emulator";
longDescription = "

@ -1,7 +1,7 @@
{ at-spi2-core, cmake, dbus, dbus-glib, docbook_xsl, libepoxy, fetchFromGitHub
, glib, gtk3, harfbuzz, libXdmcp, libXtst, libpthreadstubs
, libselinux, libsepol, libtasn1, libxkbcommon, libxslt, p11-kit, pcre2
, pkg-config, lib, stdenv, util-linuxMinimal, vte, wrapGAppsHook, xmlto
, pkg-config, lib, stdenv, util-linuxMinimal, vte, wrapGAppsHook, xmlto, nixosTests
}:
stdenv.mkDerivation rec {
@ -23,6 +23,8 @@ stdenv.mkDerivation rec {
libsepol libxkbcommon libepoxy at-spi2-core libXtst libtasn1 p11-kit
];
passthru.tests.test = nixosTests.terminal-emulators.roxterm;
meta = with lib; {
homepage = "https://github.com/realh/roxterm";
license = licenses.gpl3;

@ -7,6 +7,7 @@
, gdkPixbufSupport ? true
, unicode3Support ? true
, emojiSupport ? false
, nixosTests
}:
let
@ -102,6 +103,8 @@ stdenv.mkDerivation {
cp -r ${desktopItem}/share/applications/ $out/share/
'';
passthru.tests.test = nixosTests.terminal-emulators.urxvt;
meta = {
inherit description;
homepage = "http://software.schmorp.de/pkg/rxvt-unicode.html";

@ -5,6 +5,7 @@
, rxvt-unicode-unwrapped
, rxvt-unicode-plugins
, perlPackages
, nixosTests
, configure ? { availablePlugins, ... }:
{ plugins = builtins.attrValues availablePlugins;
extraDeps = [ ];
@ -51,7 +52,10 @@ let
--suffix-each URXVT_PERL_LIB ':' "$out/lib/urxvt/perl"
'';
passthru.plugins = plugins;
passthru = {
plugins = plugins;
tests.test = nixosTests.terminal-emulators.urxvt;
};
};
in

@ -9,6 +9,7 @@
, perl
, pkg-config
, vte
, nixosTests
}:
stdenv.mkDerivation rec {
@ -43,6 +44,8 @@ stdenv.mkDerivation rec {
--suffix XDG_DATA_DIRS : ${gtk3}/share/gsettings-schemas/${gtk3.name}/
'';
passthru.tests.test = nixosTests.terminal-emulators.sakura;
meta = with lib; {
homepage = "https://www.pleyades.net/david/projects/sakura";
description = "A terminal emulator based on GTK and VTE";

@ -11,6 +11,7 @@
, conf ? null
, patches ? [ ]
, extraLibs ? [ ]
, nixosTests
}:
stdenv.mkDerivation rec {
@ -55,6 +56,8 @@ stdenv.mkDerivation rec {
installFlags = [ "PREFIX=$(out)" ];
passthru.tests.test = nixosTests.terminal-emulators.st;
meta = with lib; {
homepage = "https://st.suckless.org/";
description = "Simple Terminal for X from Suckless.org Community";

@ -1,4 +1,4 @@
{ lib, stdenv, fetchFromGitHub, pkg-config, vte, gtk, pcre2 }:
{ lib, stdenv, fetchFromGitHub, pkg-config, vte, gtk, pcre2, nixosTests }:
stdenv.mkDerivation {
pname = "stupidterm";
@ -26,6 +26,8 @@ stdenv.mkDerivation {
--replace "Exec=st" "Exec=$out/bin/stupidterm"
'';
passthru.tests.test = nixosTests.terminal-emulators.stupidterm;
meta = with lib; {
description = "Simple wrapper around the VTE terminal emulator widget for GTK";
homepage = "https://github.com/esmil/stupidterm";

@ -9,6 +9,7 @@
, libnotify
, wrapGAppsHook
, vte
, nixosTests
}:
python3.pkgs.buildPythonApplication rec {
@ -62,6 +63,8 @@ python3.pkgs.buildPythonApplication rec {
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
'';
passthru.tests.test = nixosTests.terminal-emulators.terminator;
meta = with lib; {
description = "Terminal emulator with support for tiling and tabs";
longDescription = ''

@ -1,4 +1,4 @@
{ lib, stdenv, fetchFromGitHub, fetchpatch, pkg-config, vte, gtk3, ncurses, pcre2, wrapGAppsHook }:
{ lib, stdenv, fetchFromGitHub, fetchpatch, pkg-config, vte, gtk3, ncurses, pcre2, wrapGAppsHook, nixosTests }:
let
@ -57,7 +57,10 @@ in stdenv.mkDerivation rec {
outputs = [ "out" "terminfo" ];
passthru = { inherit vte-ng; };
passthru = {
inherit vte-ng;
tests = nixosTests.terminal-emulators.termite;
};
postInstall = ''
mkdir -p $terminfo/share

@ -1,4 +1,4 @@
{ stdenv, haskellPackages, makeWrapper, packages ? (pkgSet: []) }:
{ stdenv, haskellPackages, makeWrapper, packages ? (pkgSet: []), nixosTests }:
let
termonadEnv = haskellPackages.ghcWithPackages (self: [ self.termonad ] ++ packages self);
@ -17,6 +17,8 @@ in stdenv.mkDerivation {
preferLocalBuild = true;
allowSubstitutes = false;
passthru.tests.test = nixosTests.terminal-emulators.termonad;
meta = haskellPackages.termonad.meta // {
mainProgram = "termonad";
};

@ -9,6 +9,7 @@
, pcre2
, vte
, makeWrapper
, nixosTests
}:
stdenv.mkDerivation rec {
@ -42,6 +43,8 @@ stdenv.mkDerivation rec {
--prefix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH"
'';
passthru.tests.test = nixosTests.terminal-emulators.tilda;
meta = with lib; {
description = "A Gtk based drop down terminal for Linux and Unix";
homepage = "https://github.com/lanoxx/tilda/";

@ -17,6 +17,7 @@
, wrapGAppsHook
, libunwind
, appstream
, nixosTests
}:
stdenv.mkDerivation rec {
@ -66,6 +67,8 @@ stdenv.mkDerivation rec {
--replace "Exec=tilix" "Exec=$out/bin/tilix"
'';
passthru.tests.test = nixosTests.terminal-emulators.tilix;
meta = with lib; {
description = "Tiling terminal emulator following the Gnome Human Interface Guidelines";
homepage = "https://gnunn1.github.io/tilix-web";

@ -2,6 +2,7 @@
, lib
, fetchFromGitHub
, pkg-config
, nixosTests
, freetype
, fontconfig
, libGL
@ -78,6 +79,8 @@ stdenv.mkDerivation rec {
install -D icons/wayst.svg $out/share/icons/hicolor/scalable/apps/wayst.svg
'';
passthru.tests.test = nixosTests.terminal-emulators.wayst;
meta = with lib; {
description = "A simple terminal emulator";
mainProgram = "wayst";

@ -22,6 +22,7 @@
, Cocoa
, Foundation
, libiconv
, nixosTests
}:
rustPlatform.buildRustPackage rec {
@ -99,6 +100,8 @@ rustPlatform.buildRustPackage rec {
ln -s $out/bin/{wezterm,wezterm-mux-server,wezterm-gui,strip-ansi-escapes} "$OUT_APP"
'';
passthru.tests.test = nixosTests.terminal-emulators.wezterm;
meta = with lib; {
description = "A GPU-accelerated cross-platform terminal emulator and multiplexer written by @wez and implemented in Rust";
homepage = "https://wezfurlong.org/wezterm";

@ -76,7 +76,10 @@ stdenv.mkDerivation rec {
'';
passthru = {
tests = { inherit (nixosTests) xterm; };
tests = {
customTest = nixosTests.xterm;
standardTest = nixosTests.terminal-emulators.xterm;
};
updateScript = let
# Tags that end in letters are unstable

@ -1,4 +1,4 @@
{ lib, stdenv, fetchurl, meson, ninja, pkg-config, python3, efl }:
{ lib, stdenv, fetchurl, meson, ninja, pkg-config, python3, efl, nixosTests }:
stdenv.mkDerivation rec {
pname = "terminology";
@ -24,6 +24,8 @@ stdenv.mkDerivation rec {
patchShebangs data/colorschemes/*.py
'';
passthru.tests.test = nixosTests.terminal-emulators.terminology;
meta = with lib; {
description = "Powerful terminal emulator based on EFL";
homepage = "https://www.enlightenment.org/about-terminology";

@ -23,6 +23,7 @@
, pcre2
, libxslt
, docbook-xsl-nons
, nixosTests
}:
stdenv.mkDerivation rec {
@ -82,6 +83,8 @@ stdenv.mkDerivation rec {
};
};
passthru.tests.test = nixosTests.terminal-emulators.gnome-terminal;
meta = with lib; {
description = "The GNOME Terminal Emulator";
homepage = "https://wiki.gnome.org/Apps/Terminal";

@ -8,6 +8,7 @@
, qttools
, qtx11extras
, lxqtUpdateScript
, nixosTests
}:
mkDerivation rec {
@ -35,6 +36,8 @@ mkDerivation rec {
passthru.updateScript = lxqtUpdateScript { inherit pname version src; };
passthru.tests.test = nixosTests.terminal-emulators.qterminal;
meta = with lib; {
homepage = "https://github.com/lxqt/qterminal";
description = "A lightweight Qt-based terminal emulator";

@ -1,4 +1,4 @@
{ lib, stdenv, fetchurl, pkg-config, gettext, itstool, libxml2, mate-desktop, dconf, vte, pcre2, wrapGAppsHook, mateUpdateScript }:
{ lib, stdenv, fetchurl, pkg-config, gettext, itstool, libxml2, mate-desktop, dconf, vte, pcre2, wrapGAppsHook, mateUpdateScript, nixosTests }:
stdenv.mkDerivation rec {
pname = "mate-terminal";
@ -28,6 +28,8 @@ stdenv.mkDerivation rec {
passthru.updateScript = mateUpdateScript { inherit pname version; };
passthru.tests.test = nixosTests.terminal-emulators.mate-terminal;
meta = with lib; {
description = "MATE desktop terminal emulator";
homepage = "https://mate-desktop.org";

@ -1,4 +1,4 @@
{ lib, mkXfceDerivation, gtk3, libxfce4ui, vte, xfconf, pcre2, libxslt, docbook_xml_dtd_45, docbook_xsl }:
{ lib, mkXfceDerivation, gtk3, libxfce4ui, vte, xfconf, pcre2, libxslt, docbook_xml_dtd_45, docbook_xsl, nixosTests }:
mkXfceDerivation {
category = "apps";
@ -11,6 +11,8 @@ mkXfceDerivation {
buildInputs = [ gtk3 libxfce4ui vte xfconf pcre2 ];
passthru.tests.test = nixosTests.terminal-emulators.xfce4-terminal;
meta = with lib; {
description = "A modern terminal emulator";
maintainers = with maintainers; [ ] ++ teams.xfce.members;

Loading…
Cancel
Save