anchor.diff: -{ stdenv,
  -  lib,
  -  fetchFromGitHub,
  -  rustPlatform,
  +{ stdenv
  +, lib
  +, fetchFromGitHub
  +, rustPlatform
   
  -  cmake,
  -  gzip,
  -  installShellFiles,
  -  makeWrapper,
  -  ncurses,
  -  pkgconfig,
  -  python3,
  +, cmake
  +, gzip
  +, installShellFiles
  +, makeWrapper
  +, ncurses
  +, pkgconfig
  +, python3
   
  -  expat,
  -  fontconfig,
  -  freetype,
  -  libGL,
  -  libX11,
  -  libXcursor,
  -  libXi,
  -  libXrandr,
  -  libXxf86vm,
  -  libxcb,
  -  libxkbcommon,
  -  wayland,
  -  xdg_utils,
  +, expat
  +, fontconfig
  +, freetype
  +, libGL
  +, libX11
  +, libXcursor
  +, libXi
  +, libXrandr
  +, libXxf86vm
  +, libxcb
  +, libxkbcommon
  +, wayland
  +, xdg_utils
   
     # Darwin Frameworks
  -  AppKit,
  -  CoreGraphics,
  -  CoreServices,
  -  CoreText,
  -  Foundation,
  -  OpenGL }:
  -
  -with rustPlatform;
  -
  +, AppKit
  +, CoreGraphics
  +, CoreServices
  +, CoreText
  +, Foundation
  +, OpenGL
  +}:
   let
     rpathLibs = [
       expat
  
positive.code:     libxkbcommon
      wayland
    ];
  in buildRustPackage rec {
    pname = "alacritty";
    version = "0.4.1";
  
    src = fetchFromGitHub {
      owner = "jwilm";
      repo = pname;
      rev = "v${version}";
      sha256 = "05jcg33ifngpzw2hdhgb614j87ihhhlqgar0kky183rywg0dxikg";
    };
  
    cargoSha256 = "182j8ah67b2gw409vjfml3p41i00zh0klx9m8bwfkm64y2ki2bip";
  
    nativeBuildInputs = [
      cmake
  
negative.code:   ];
  
    buildInputs = rpathLibs
    ++ lib.optionals stdenv.isDarwin [
      AppKit
      CoreGraphics
      CoreServices
      CoreText
      Foundation
      OpenGL
    ];
  
    outputs = [ "out" "terminfo" ];
  
    postPatch = ''
      substituteInPlace alacritty/src/config/mouse.rs \
        --replace xdg-open ${xdg_utils}/bin/xdg-open
  