2021-03-13 19:41:38 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2022-02-19 07:13:38 +00:00
|
|
|
, fetchurl
|
2021-03-13 19:41:38 +00:00
|
|
|
, gettext
|
2021-05-07 21:18:14 +00:00
|
|
|
, gnome
|
2021-03-16 17:37:45 +00:00
|
|
|
, libgtop
|
2023-02-01 22:36:42 +00:00
|
|
|
, gtk4
|
|
|
|
, libadwaita
|
2024-08-18 08:28:42 +00:00
|
|
|
, pango
|
2021-03-13 19:41:38 +00:00
|
|
|
, pcre2
|
2023-02-01 22:36:42 +00:00
|
|
|
, vte-gtk4
|
2021-03-13 19:41:38 +00:00
|
|
|
, desktop-file-utils
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
2023-02-01 22:36:42 +00:00
|
|
|
, wrapGAppsHook4
|
2020-11-13 18:54:56 +00:00
|
|
|
, nixosTests
|
2021-03-13 19:41:38 +00:00
|
|
|
}:
|
|
|
|
|
2022-02-19 07:13:38 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "gnome-console";
|
2024-09-19 23:59:48 +00:00
|
|
|
version = "47.1";
|
2021-03-13 19:41:38 +00:00
|
|
|
|
2022-02-19 07:13:38 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://gnome/sources/gnome-console/${lib.versions.major version}/${pname}-${version}.tar.xz";
|
2024-09-19 23:59:48 +00:00
|
|
|
hash = "sha256-0/YAtFtRcWaRrukocDMunJqMqJ1VNWXzEx2eKAdHJdA=";
|
2021-03-13 19:41:38 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
desktop-file-utils
|
2023-02-01 22:36:42 +00:00
|
|
|
gettext
|
2021-03-13 19:41:38 +00:00
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
2023-02-01 22:36:42 +00:00
|
|
|
wrapGAppsHook4
|
2022-09-23 13:41:58 +00:00
|
|
|
];
|
|
|
|
|
2023-02-01 22:36:42 +00:00
|
|
|
buildInputs = [
|
|
|
|
libgtop
|
|
|
|
gtk4
|
|
|
|
libadwaita
|
2024-08-18 08:28:42 +00:00
|
|
|
pango
|
2023-02-01 22:36:42 +00:00
|
|
|
pcre2
|
|
|
|
vte-gtk4
|
2022-08-01 12:48:13 +00:00
|
|
|
];
|
|
|
|
|
2024-08-18 08:28:42 +00:00
|
|
|
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")
|
|
|
|
'';
|
|
|
|
|
2022-02-19 07:13:38 +00:00
|
|
|
passthru = {
|
|
|
|
updateScript = gnome.updateScript {
|
2023-02-01 22:36:42 +00:00
|
|
|
packageName = "gnome-console";
|
2022-02-19 07:13:38 +00:00
|
|
|
};
|
|
|
|
};
|
2021-03-13 19:41:38 +00:00
|
|
|
|
2020-11-13 18:54:56 +00:00
|
|
|
passthru.tests.test = nixosTests.terminal-emulators.kgx;
|
|
|
|
|
2021-03-13 19:41:38 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Simple user-friendly terminal emulator for the GNOME desktop";
|
2022-02-19 07:13:38 +00:00
|
|
|
homepage = "https://gitlab.gnome.org/GNOME/console";
|
2021-03-13 19:41:38 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2022-02-19 07:13:38 +00:00
|
|
|
maintainers = teams.gnome.members ++ (with maintainers; [ zhaofengli ]);
|
2022-08-01 12:48:13 +00:00
|
|
|
platforms = platforms.unix;
|
2023-11-27 01:17:53 +00:00
|
|
|
mainProgram = "kgx";
|
2021-03-13 19:41:38 +00:00
|
|
|
};
|
|
|
|
}
|