anchor.diff:  { lib
   , stdenv
  -, genericBranding ? false
  -, fetchFromGitLab
  +, fetchurl
   , gettext
   , gnome
   , libgtop
  
positive.code:     wrapGAppsHook
    ];
  
    mesonFlags = lib.optional genericBranding "-Dgeneric=true";
  
    postPatch = ''
      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;
  
    meta = with lib; {
      description = "Simple user-friendly terminal emulator for the GNOME desktop";
      homepage = "https://gitlab.gnome.org/ZanderBrown/kgx";
      license = licenses.gpl3Plus;
      maintainers = with maintainers; [ zhaofengli ];
      platforms = platforms.linux;
    };
  }
  
negative.code: , nixosTests
  }:
  
  stdenv.mkDerivation rec {
    pname = "gnome-console";
    version = "42.beta";
  
    src = fetchurl {
      url = "mirror://gnome/sources/gnome-console/${lib.versions.major version}/${pname}-${version}.tar.xz";
      sha256 = "Lq/shyAhDcwB5HqpihvGx2+xwVU2Xax7/NerFwR36DQ=";
    };
  
    buildInputs = [
  