anchor.diff:    lib,
     fetchFromGitHub,
     rustPlatform,
  +
     cmake,
  +  gzip,
     makeWrapper,
     ncurses,
  +  pkgconfig,
  +  python3,
  +
     expat,
  -  pkgconfig,
  +  fontconfig,
     freetype,
  -  fontconfig,
  +  libGL,
     libX11,
  -  gzip,
     libXcursor,
  -  libXxf86vm,
     libXi,
     libXrandr,
  -  libGL,
  -  xclip,
  +  libXxf86vm,
  +  libxcb,
  +  libxkbcommon,
     wayland,
  -  libxkbcommon,
  +
     # Darwin Frameworks
     cf-private,
     AppKit,
  
positive.code: let
    rpathLibs = [
      expat
      freetype
      fontconfig
      libX11
      libXcursor
      libXxf86vm
      libXrandr
      libGL
      libXi
    ] ++ lib.optionals stdenv.isLinux [
      wayland
      libxkbcommon
    ];
  in buildRustPackage rec {
    pname = "alacritty";
    version = "0.3.2";
  
    src = fetchFromGitHub {
      owner = "jwilm";
      repo = pname;
      rev = "v${version}";
      sha256 = "16lhxfpwysd5ngw8yq76vbzjdmfzs9plsvairf768hnl290jcpbh";
    };
  
    cargoSha256 = "02q5kkr0zygpm9i2hd1sr246f18pyia1lq9dwjagqk7d2x3xlc7p";
  
    nativeBuildInputs = [
      cmake
      makeWrapper
      pkgconfig
      ncurses
      gzip
    ];
  
    buildInputs = rpathLibs
  
negative.code:     ];
  
    outputs = [ "out" "terminfo" ];
  
    postBuild = lib.optionalString stdenv.isDarwin "make app";
  
  