mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-30 17:43:42 +00:00
84 lines
1.6 KiB
Nix
84 lines
1.6 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchurl
|
|
, fetchpatch
|
|
, gettext
|
|
, gnome
|
|
, libgtop
|
|
, gtk3
|
|
, libhandy
|
|
, pcre2
|
|
, vte
|
|
, appstream-glib
|
|
, desktop-file-utils
|
|
, git
|
|
, meson
|
|
, ninja
|
|
, pkg-config
|
|
, python3
|
|
, sassc
|
|
, wrapGAppsHook
|
|
, nixosTests
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "gnome-console";
|
|
version = "42.2";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://gnome/sources/gnome-console/${lib.versions.major version}/${pname}-${version}.tar.xz";
|
|
sha256 = "fSbmwYdExXWnhykyY/YM7/YwEHCY6eWKd2WwCsdDcEk=";
|
|
};
|
|
|
|
patches = [
|
|
(fetchpatch {
|
|
name = "fix-clang-build-issues.patch";
|
|
url = "https://gitlab.gnome.org/GNOME/console/-/commit/0e29a417d52e27da62f5cac461400be6a764dc65.patch";
|
|
sha256 = "sha256-5ORNZOxjC5dMk9VKaBcJu5OV1SEZo9SNUbN4Ob5hVJs=";
|
|
})
|
|
];
|
|
|
|
buildInputs = [
|
|
gettext
|
|
libgtop
|
|
gtk3
|
|
libhandy
|
|
pcre2
|
|
vte
|
|
] ++ lib.optionals stdenv.isLinux [
|
|
gnome.nautilus
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
appstream-glib
|
|
desktop-file-utils
|
|
git
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
python3
|
|
sassc
|
|
wrapGAppsHook
|
|
];
|
|
|
|
mesonFlags = lib.optionals (!stdenv.isLinux) [
|
|
"-Dnautilus=disabled"
|
|
];
|
|
|
|
passthru = {
|
|
updateScript = gnome.updateScript {
|
|
packageName = pname;
|
|
};
|
|
};
|
|
|
|
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 ]);
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|