anchor.diff:  , Foundation
   , libiconv
   }:
  -let
  -  runtimeDeps = [
  -    zlib
  -    fontconfig
  -    freetype
  -  ] ++ lib.optionals stdenv.isLinux [
  -    libX11
  -    xcbutil
  -    libxcb
  -    xcbutilimage
  -    xcbutilkeysyms
  -    xcbutilwm
  -    libxkbcommon
  -    dbus
  -    libglvnd
  -    egl-wayland
  -    wayland
  -    libGLU
  -    libGL
  -    openssl
  -  ] ++ lib.optionals stdenv.isDarwin [
  -    Foundation
  -    CoreGraphics
  -    Cocoa
  -    libiconv
  -  ];
  -in
   
   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=";
  -    fetchSubmodules = true;
     };
  -
  -  outputs = [ "out" "terminfo" ];
   
     postPatch = ''
       echo ${version} > .tag
  
positive.code: , fetchFromGitHub
  , ncurses
  , pkg-config
  , fontconfig
  , python3
  , openssl
  , perl
  , dbus
  , libX11
  , xcbutil
  , libxcb
  , xcbutilimage
  , xcbutilkeysyms
  , xcbutilwm # contains xcb-ewmh among others
  , libxkbcommon
  , libglvnd # libEGL.so.1
  , egl-wayland
  , wayland
  , libGLU
  , libGL
  , freetype
  , zlib
    # Apple frameworks
  , CoreGraphics
  
negative.code:   '';
  
    preFixup = lib.optionalString stdenv.isLinux ''
      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"
  