anchor.diff:      cp -r linux-package/{bin,share,lib} $out
       ''}
       wrapProgram "$out/bin/kitty" --prefix PATH : "$out/bin:${lib.makeBinPath [ imagemagick xsel ncurses.dev ]}"
  -    runHook postInstall
   
       installShellCompletion --cmd kitty \
         --bash <("$out/bin/kitty" + complete setup bash) \
         --fish <("$out/bin/kitty" + complete setup fish) \
         --zsh  <("$out/bin/kitty" + complete setup zsh)
  +    runHook postInstall
     '';
   
     postInstall = ''
  
positive.code:   ];
  
    nativeBuildInputs = [
      pkg-config sphinx ncurses
      installShellFiles
    ] ++ lib.optionals stdenv.isDarwin [
      imagemagick
      libicns  # For the png2icns tool.
  
negative.code: with python3Packages;
  buildPythonApplication rec {
    pname = "kitty";
    version = "0.23.1";
    format = "other";
  
    src = fetchFromGitHub {
      owner = "kovidgoyal";
      repo = "kitty";
      rev = "v${version}";
      sha256 = "sha256-2RwDU6EOJWF0u2ikJFg9U2yqSXergDkJH3h2i+QJ7G4=";
    };
  
    buildInputs = [
  