2021-03-13 20:41:38 +01:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2022-02-19 08:13:38 +01:00
|
|
|
, fetchurl
|
2022-09-23 15:41:58 +02:00
|
|
|
, fetchpatch
|
2021-03-13 20:41:38 +01:00
|
|
|
, gettext
|
2021-05-07 23:18:14 +02:00
|
|
|
, gnome
|
2021-03-16 18:37:45 +01:00
|
|
|
, libgtop
|
2022-09-23 15:41:58 +02:00
|
|
|
, gtk3
|
|
|
|
, libhandy
|
2021-03-13 20:41:38 +01:00
|
|
|
, pcre2
|
2022-09-23 15:41:58 +02:00
|
|
|
, vte
|
2021-03-13 20:41:38 +01:00
|
|
|
, appstream-glib
|
|
|
|
, desktop-file-utils
|
2022-09-23 15:41:58 +02:00
|
|
|
, git
|
2021-03-13 20:41:38 +01:00
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
|
|
|
, python3
|
2022-09-23 15:41:58 +02:00
|
|
|
, sassc
|
|
|
|
, wrapGAppsHook
|
2020-11-13 19:54:56 +01:00
|
|
|
, nixosTests
|
2021-03-13 20:41:38 +01:00
|
|
|
}:
|
|
|
|
|
2022-02-19 08:13:38 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "gnome-console";
|
2022-09-23 15:41:58 +02:00
|
|
|
# Do not upgrade until https://gitlab.gnome.org/GNOME/vte/-/issues/2584 is resolved!
|
|
|
|
version = "42.2";
|
2021-03-13 20:41:38 +01:00
|
|
|
|
2022-02-19 08:13:38 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://gnome/sources/gnome-console/${lib.versions.major version}/${pname}-${version}.tar.xz";
|
2022-09-23 15:41:58 +02:00
|
|
|
sha256 = "fSbmwYdExXWnhykyY/YM7/YwEHCY6eWKd2WwCsdDcEk=";
|
2021-03-13 20:41:38 +01:00
|
|
|
};
|
|
|
|
|
2022-09-23 15:41:58 +02:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
name = "fix-clang-build-issues.patch";
|
|
|
|
url = "https://gitlab.gnome.org/GNOME/console/-/commit/0e29a417d52e27da62f5cac461400be6a764dc65.patch";
|
|
|
|
sha256 = "sha256-5ORNZOxjC5dMk9VKaBcJu5OV1SEZo9SNUbN4Ob5hVJs=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2021-03-13 20:41:38 +01:00
|
|
|
buildInputs = [
|
|
|
|
gettext
|
2021-03-16 18:37:45 +01:00
|
|
|
libgtop
|
2022-09-23 15:41:58 +02:00
|
|
|
gtk3
|
|
|
|
libhandy
|
2021-03-13 20:41:38 +01:00
|
|
|
pcre2
|
2022-09-23 15:41:58 +02:00
|
|
|
vte
|
2021-03-13 20:41:38 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
appstream-glib
|
|
|
|
desktop-file-utils
|
2022-09-23 15:41:58 +02:00
|
|
|
git
|
2021-03-13 20:41:38 +01:00
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
|
|
|
python3
|
2022-09-23 15:41:58 +02:00
|
|
|
sassc
|
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
mesonFlags = [
|
|
|
|
"-Dnautilus=disabled"
|
2022-08-01 14:48:13 +02:00
|
|
|
];
|
|
|
|
|
2022-02-19 08:13:38 +01:00
|
|
|
passthru = {
|
|
|
|
updateScript = gnome.updateScript {
|
|
|
|
packageName = pname;
|
|
|
|
};
|
|
|
|
};
|
2021-03-13 20:41:38 +01:00
|
|
|
|
2020-11-13 19:54:56 +01:00
|
|
|
passthru.tests.test = nixosTests.terminal-emulators.kgx;
|
|
|
|
|
2021-03-13 20:41:38 +01:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Simple user-friendly terminal emulator for the GNOME desktop";
|
2022-02-19 08:13:38 +01:00
|
|
|
homepage = "https://gitlab.gnome.org/GNOME/console";
|
2021-03-13 20:41:38 +01:00
|
|
|
license = licenses.gpl3Plus;
|
2022-02-19 08:13:38 +01:00
|
|
|
maintainers = teams.gnome.members ++ (with maintainers; [ zhaofengli ]);
|
2022-08-01 14:48:13 +02:00
|
|
|
platforms = platforms.unix;
|
2021-03-13 20:41:38 +01:00
|
|
|
};
|
|
|
|
}
|