anchor.diff:    '';
   
     preFixup = lib.optionalString stdenv.isLinux ''
  -    for artifact in wezterm wezterm-gui wezterm-mux-server strip-ansi-escapes; do
  -      patchelf --set-rpath "${lib.makeLibraryPath runtimeDeps}" $out/bin/$artifact
  -    done
  +    patchelf --add-needed "${libGL}/lib/libEGL.so.1" $out/bin/wezterm-gui
     '' + lib.optionalString stdenv.isDarwin ''
       mkdir -p "$out/Applications"
       OUT_APP="$out/Applications/WezTerm.app"
  
positive.code:   nativeBuildInputs = [
      pkg-config
      python3
      perl
      ncurses
    ];
  
    buildInputs = runtimeDeps;
  
    postInstall = ''
      # terminfo
  
negative.code: , Foundation
  , libiconv
  }:
  
  rustPlatform.buildRustPackage rec {
    pname = "wezterm";
    version = "20210814-124438-54e29167";
  
    outputs = [ "out" "terminfo" ];
  
    src = fetchFromGitHub {
      owner = "wez";
      repo = pname;
      rev = version;
      fetchSubmodules = true;
      sha256 = "sha256-6HXTftgAs6JMzOMCY+laN74in8xfjE8yJc5xSl9PQCE=";
    };
  
    postPatch = ''
      echo ${version} > .tag
  