anchor.diff:      wayland
       libGLU
       libGL
  +  ] ++ stdenv.lib.optionals (stdenv.isDarwin) [
  +    Foundation
  +    CoreGraphics
  +    Cocoa
     ];
  -  runtimeDeps = commonRuntimeDeps
  -    ++ stdenv.lib.optionals (!stdenv.isDarwin) linuxRuntimeDeps
  -    ++ stdenv.lib.optionals (stdenv.isDarwin) [ Foundation CoreGraphics Cocoa ];
     pname = "wezterm";
   in
   
  
positive.code:   buildInputs = runtimeDeps;
  
    installPhase = ''
      for artifact in wezterm wezterm-gui wezterm-mux-server strip-ansi-escapes; do
    '' + stdenv.lib.optionalString stdenv.isLinux ''
        patchelf --set-rpath "${lib.makeLibraryPath runtimeDeps}" $releaseDir/$artifact
    '' + ''
        install -D $releaseDir/$artifact -t $out/bin
      done
    '';
  
    # prevent further changes to the RPATH
  
negative.code: , zlib
  }:
  let
    runtimeDeps = [
      zlib
      fontconfig
      freetype
    ] ++ stdenv.lib.optionals (stdenv.isLinux) [
      libX11
      xcbutil
      libxcb
  