anchor.diff:      ];
   
     outputs = [ "out" "terminfo" ];
  -
  -  postPatch = ''
  -    substituteInPlace copypasta/src/x11.rs \
  -      --replace Command::new\(\"xclip\"\) Command::new\(\"${xclip}/bin/xclip\"\)
  -  '';
   
     postBuild = lib.optionalString stdenv.isDarwin "make app";
   
  
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:   lib,
    fetchFromGitHub,
    rustPlatform,
  
    cmake,
    gzip,
    makeWrapper,
    ncurses,
    pkgconfig,
    python3,
  
    expat,
    fontconfig,
    freetype,
    libGL,
    libX11,
    libXcursor,
    libXi,
    libXrandr,
    libXxf86vm,
    libxcb,
    libxkbcommon,
    wayland,
  
    # Darwin Frameworks
    cf-private,
    AppKit,
  