2022-03-30 09:31:56 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, gettext
|
|
|
|
, gnome
|
|
|
|
, libgtop
|
2023-02-09 11:40:11 +00:00
|
|
|
, gtk4
|
|
|
|
, libadwaita
|
2022-03-30 09:31:56 +00:00
|
|
|
, pcre2
|
2023-02-09 11:40:11 +00:00
|
|
|
, vte-gtk4
|
2022-03-30 09:31:56 +00:00
|
|
|
, desktop-file-utils
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
2023-02-09 11:40:11 +00:00
|
|
|
, wrapGAppsHook4
|
2022-03-30 09:31:56 +00:00
|
|
|
, nixosTests
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "gnome-console";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "45.0";
|
2022-03-30 09:31:56 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://gnome/sources/gnome-console/${lib.versions.major version}/${pname}-${version}.tar.xz";
|
2024-01-02 11:29:13 +00:00
|
|
|
sha256 = "50YhKNLfIySh10gGLEBCnNBQSvCeQHBnsz86nQxZyOE=";
|
2022-03-30 09:31:56 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
desktop-file-utils
|
2023-02-09 11:40:11 +00:00
|
|
|
gettext
|
2022-03-30 09:31:56 +00:00
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
2023-02-09 11:40:11 +00:00
|
|
|
wrapGAppsHook4
|
2022-03-30 09:31:56 +00:00
|
|
|
];
|
|
|
|
|
2023-02-09 11:40:11 +00:00
|
|
|
buildInputs = [
|
|
|
|
libgtop
|
|
|
|
gtk4
|
|
|
|
libadwaita
|
|
|
|
pcre2
|
|
|
|
vte-gtk4
|
2022-08-12 12:06:08 +00:00
|
|
|
];
|
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
passthru = {
|
|
|
|
updateScript = gnome.updateScript {
|
2023-02-09 11:40:11 +00:00
|
|
|
packageName = "gnome-console";
|
2022-03-30 09:31:56 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
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 = teams.gnome.members ++ (with maintainers; [ zhaofengli ]);
|
2022-08-12 12:06:08 +00:00
|
|
|
platforms = platforms.unix;
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "kgx";
|
2022-03-30 09:31:56 +00:00
|
|
|
};
|
|
|
|
}
|