nixpkgs/pkgs/by-name/gn/gnome-console/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

70 lines
1.4 KiB
Nix
Raw Normal View History

2021-03-13 19:41:38 +00:00
{ lib
, stdenv
, fetchurl
2021-03-13 19:41:38 +00:00
, gettext
, gnome
, libgtop
, gtk4
, libadwaita
, pango
2021-03-13 19:41:38 +00:00
, pcre2
, vte-gtk4
2021-03-13 19:41:38 +00:00
, desktop-file-utils
, meson
, ninja
, pkg-config
, wrapGAppsHook4
, nixosTests
2021-03-13 19:41:38 +00:00
}:
stdenv.mkDerivation rec {
pname = "gnome-console";
version = "47.1";
2021-03-13 19:41:38 +00:00
src = fetchurl {
url = "mirror://gnome/sources/gnome-console/${lib.versions.major version}/${pname}-${version}.tar.xz";
hash = "sha256-0/YAtFtRcWaRrukocDMunJqMqJ1VNWXzEx2eKAdHJdA=";
2021-03-13 19:41:38 +00:00
};
nativeBuildInputs = [
desktop-file-utils
gettext
2021-03-13 19:41:38 +00:00
meson
ninja
pkg-config
wrapGAppsHook4
];
buildInputs = [
libgtop
gtk4
libadwaita
pango
pcre2
vte-gtk4
2022-08-01 12:48:13 +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")
'';
passthru = {
updateScript = gnome.updateScript {
packageName = "gnome-console";
};
};
2021-03-13 19:41:38 +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";
homepage = "https://gitlab.gnome.org/GNOME/console";
2021-03-13 19:41:38 +00:00
license = licenses.gpl3Plus;
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
};
}