From fc74a36672a6672c239a4ba8b55b2020728e5038 Mon Sep 17 00:00:00 2001 From: Tim Steinbach Date: Mon, 31 Jul 2017 18:45:26 -0400 Subject: [PATCH] alacritty: Don't use xclip from PATH --- pkgs/applications/misc/alacritty/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/applications/misc/alacritty/default.nix b/pkgs/applications/misc/alacritty/default.nix index e84ee7ee16ba..6c9f9ee3ab00 100644 --- a/pkgs/applications/misc/alacritty/default.nix +++ b/pkgs/applications/misc/alacritty/default.nix @@ -47,6 +47,11 @@ buildRustPackage rec { pkgconfig ] ++ rpathLibs; + patchPhase = '' + substituteInPlace copypasta/src/x11.rs \ + --replace Command::new\(\"xclip\"\) Command::new\(\"${xclip}/bin/xclip\"\) + ''; + installPhase = '' mkdir -p $out/bin for f in $(find target/release -maxdepth 1 -type f); do