nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchurl,
5 appstream,
6 gettext,
7 gnome,
8 libgtop,
9 gtk4,
10 libadwaita,
11 pango,
12 pcre2,
13 vte-gtk4,
14 desktop-file-utils,
15 meson,
16 ninja,
17 pkg-config,
18 wrapGAppsHook4,
19 nixosTests,
20}:
21
22stdenv.mkDerivation rec {
23 pname = "gnome-console";
24 version = "49.2";
25
26 src = fetchurl {
27 url = "mirror://gnome/sources/gnome-console/${lib.versions.major version}/${pname}-${version}.tar.xz";
28 hash = "sha256-J7As6OiQ/49TyoXbeGsa41kD8LYyeBLwIk3AtUsQiNs=";
29 };
30
31 nativeBuildInputs = [
32 appstream
33 desktop-file-utils
34 gettext
35 meson
36 ninja
37 pkg-config
38 wrapGAppsHook4
39 ];
40
41 buildInputs = [
42 libgtop
43 gtk4
44 libadwaita
45 pango
46 pcre2
47 vte-gtk4
48 ];
49
50 preFixup = ''
51 # FIXME: properly address https://github.com/NixOS/nixpkgs/pull/333911#issuecomment-2362710334
52 # and https://gitlab.gnome.org/GNOME/console/-/commit/c81801c82f186f20
53 gappsWrapperArgs+=(--set "TERM" "xterm-256color")
54 '';
55
56 passthru = {
57 updateScript = gnome.updateScript {
58 packageName = "gnome-console";
59 };
60 };
61
62 passthru.tests.test = nixosTests.terminal-emulators.kgx;
63
64 meta = {
65 description = "Simple user-friendly terminal emulator for the GNOME desktop";
66 homepage = "https://gitlab.gnome.org/GNOME/console";
67 license = lib.licenses.gpl3Plus;
68 maintainers = with lib.maintainers; [ zhaofengli ];
69 teams = [ lib.teams.gnome ];
70 platforms = lib.platforms.unix;
71 mainProgram = "kgx";
72 };
73}