diff options
author | oxalica <oxalicc@pm.me> | 2021-10-29 01:26:55 +0800 |
---|---|---|
committer | oxalica <oxalicc@pm.me> | 2021-10-29 01:26:55 +0800 |
commit | d9ff013d0ca7ca1a1dc9c181319bb6c5a78dd376 (patch) | |
tree | 2d588ae25c3532a431d478130c33e95e3cd9f647 /pkgs/applications/terminal-emulators | |
parent | 9e81c86a4419289a8d9fed9abc9fc443020ea917 (diff) |
alacritty: include patch to fix PTY EIO error
Diffstat (limited to 'pkgs/applications/terminal-emulators')
-rw-r--r-- | pkgs/applications/terminal-emulators/alacritty/default.nix | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/pkgs/applications/terminal-emulators/alacritty/default.nix b/pkgs/applications/terminal-emulators/alacritty/default.nix index 0a23d63e3eab6..a25613ba58e5e 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 |