diff --git a/pkgs/applications/misc/alacritty/default.nix b/pkgs/applications/misc/alacritty/default.nix index e84ee7ee16b..50af18ca1fc 100644 --- a/pkgs/applications/misc/alacritty/default.nix +++ b/pkgs/applications/misc/alacritty/default.nix @@ -43,10 +43,14 @@ buildRustPackage rec { buildInputs = [ cmake makeWrapper - xclip 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