anchor.diff:  { lib
   , stdenv
  -, genericBranding ? false
  -, fetchFromGitLab
  +, fetchurl
   , gettext
   , gnome
   , libgtop
  
positive.code: , nixosTests
  }:
  
  stdenv.mkDerivation {
    pname = "kgx";
    version = "unstable-2021-03-13";
  
    src = fetchFromGitLab {
      domain = "gitlab.gnome.org";
      owner = "ZanderBrown";
      repo = "kgx";
      rev = "105adb6a8d09418a3ce622442aef6ae623dee787";
      sha256 = "0m34y0nbcfkyicb40iv0iqaq6f9r3f66w43lr803j3351nxqvcz2";
    };
  
    buildInputs = [
  
negative.code:     wrapGAppsHook
    ];
  
    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.linux;
    };
  }
  