Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

72 lines
1.4 KiB
Nix

{
lib,
stdenv,
fetchurl,
gettext,
gnome,
libgtop,
gtk4,
libadwaita,
pango,
pcre2,
vte-gtk4,
desktop-file-utils,
meson,
ninja,
pkg-config,
wrapGAppsHook4,
nixosTests,
}:
stdenv.mkDerivation rec {
pname = "gnome-console";
version = "48.0.1";
src = fetchurl {
url = "mirror://gnome/sources/gnome-console/${lib.versions.major version}/${pname}-${version}.tar.xz";
hash = "sha256-AY6Qjk2uvPyxUNTxuyjZgnKqnRTWgV6vjaRfiJ2wXEk=";
};
nativeBuildInputs = [
desktop-file-utils
gettext
meson
ninja
pkg-config
wrapGAppsHook4
];
buildInputs = [
libgtop
gtk4
libadwaita
pango
pcre2
vte-gtk4
];
preFixup = ''
# FIXME: properly address https://github.com/NixOS/nixpkgs/pull/333911#issuecomment-2362710334
# and https://gitlab.gnome.org/GNOME/console/-/commit/c81801c82f186f20
gappsWrapperArgs+=(--set "TERM" "xterm-256color")
'';
passthru = {
updateScript = gnome.updateScript {
packageName = "gnome-console";
};
};
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/GNOME/console";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ zhaofengli ];
teams = [ teams.gnome ];
platforms = platforms.unix;
mainProgram = "kgx";
};
}