gnome-console: unstable-2021-03-13 → 42.beta

105adb6a8d...42.beta
This commit is contained in:
Jan Tojnar 2022-02-19 08:13:38 +01:00
parent fa13ab6e1f
commit 184fe6a337

View file

@ -1,7 +1,6 @@
{ lib { lib
, stdenv , stdenv
, genericBranding ? false , fetchurl
, fetchFromGitLab
, gettext , gettext
, gnome , gnome
, libgtop , libgtop
@ -21,16 +20,13 @@
, nixosTests , nixosTests
}: }:
stdenv.mkDerivation { stdenv.mkDerivation rec {
pname = "kgx"; pname = "gnome-console";
version = "unstable-2021-03-13"; version = "42.beta";
src = fetchFromGitLab { src = fetchurl {
domain = "gitlab.gnome.org"; url = "mirror://gnome/sources/gnome-console/${lib.versions.major version}/${pname}-${version}.tar.xz";
owner = "ZanderBrown"; sha256 = "Lq/shyAhDcwB5HqpihvGx2+xwVU2Xax7/NerFwR36DQ=";
repo = "kgx";
rev = "105adb6a8d09418a3ce622442aef6ae623dee787";
sha256 = "0m34y0nbcfkyicb40iv0iqaq6f9r3f66w43lr803j3351nxqvcz2";
}; };
buildInputs = [ buildInputs = [
@ -55,25 +51,19 @@ stdenv.mkDerivation {
wrapGAppsHook wrapGAppsHook
]; ];
mesonFlags = lib.optional genericBranding "-Dgeneric=true"; passthru = {
updateScript = gnome.updateScript {
postPatch = '' packageName = pname;
chmod +x build-aux/meson/postinstall.py };
patchShebangs build-aux/meson/postinstall.py };
'';
preFixup = ''
substituteInPlace $out/share/applications/org.gnome.zbrown.KingsCross.desktop \
--replace "Exec=kgx" "Exec=$out/bin/kgx"
'';
passthru.tests.test = nixosTests.terminal-emulators.kgx; passthru.tests.test = nixosTests.terminal-emulators.kgx;
meta = with lib; { meta = with lib; {
description = "Simple user-friendly terminal emulator for the GNOME desktop"; description = "Simple user-friendly terminal emulator for the GNOME desktop";
homepage = "https://gitlab.gnome.org/ZanderBrown/kgx"; homepage = "https://gitlab.gnome.org/GNOME/console";
license = licenses.gpl3Plus; license = licenses.gpl3Plus;
maintainers = with maintainers; [ zhaofengli ]; maintainers = teams.gnome.members ++ (with maintainers; [ zhaofengli ]);
platforms = platforms.linux; platforms = platforms.linux;
}; };
} }