mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-16 09:54:52 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
70 lines
1.4 KiB
Nix
70 lines
1.4 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchurl
|
|
, gettext
|
|
, gnome
|
|
, libgtop
|
|
, gtk4
|
|
, libadwaita
|
|
, pango
|
|
, pcre2
|
|
, vte-gtk4
|
|
, desktop-file-utils
|
|
, meson
|
|
, ninja
|
|
, pkg-config
|
|
, wrapGAppsHook4
|
|
, nixosTests
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "gnome-console";
|
|
version = "47.1";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://gnome/sources/gnome-console/${lib.versions.major version}/${pname}-${version}.tar.xz";
|
|
hash = "sha256-0/YAtFtRcWaRrukocDMunJqMqJ1VNWXzEx2eKAdHJdA=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
desktop-file-utils
|
|
gettext
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
wrapGAppsHook4
|
|
];
|
|
|
|
buildInputs = [
|
|
libgtop
|
|
gtk4
|
|
libadwaita
|
|
pango
|
|
pcre2
|
|
vte-gtk4
|
|
];
|
|
|
|
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";
|
|
};
|
|
};
|
|
|
|
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;
|
|
mainProgram = "kgx";
|
|
};
|
|
}
|