From d9ff013d0ca7ca1a1dc9c181319bb6c5a78dd376 Mon Sep 17 00:00:00 2001 From: oxalica Date: Fri, 29 Oct 2021 01:26:55 +0800 Subject: [PATCH] alacritty: include patch to fix PTY EIO error --- .../terminal-emulators/alacritty/default.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/applications/terminal-emulators/alacritty/default.nix b/pkgs/applications/terminal-emulators/alacritty/default.nix index 0a23d63e3eab..a25613ba58e5 100644 --- a/pkgs/applications/terminal-emulators/alacritty/default.nix +++ b/pkgs/applications/terminal-emulators/alacritty/default.nix @@ -1,6 +1,7 @@ { stdenv , lib , fetchFromGitHub +, fetchpatch , rustPlatform , cmake @@ -87,6 +88,14 @@ rustPlatform.buildRustPackage rec { outputs = [ "out" "terminfo" ]; + patches = [ + # Handle PTY EIO error for Rust 1.55+ + (fetchpatch { + url = "https://github.com/alacritty/alacritty/commit/58985a4dcbe464230b5d2566ee68e2d34a1788c8.patch"; + sha256 = "sha256-Z6589yRrQtpx3/vNqkMiGgGsLysd/QyfaX7trqX+k5c="; + }) + ]; + postPatch = '' substituteInPlace alacritty/src/config/ui_config.rs \ --replace xdg-open ${xdg-utils}/bin/xdg-open