about summary refs log tree commit diff
path: root/pkgs/applications/misc/alacritty/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/applications/misc/alacritty/default.nix')
-rw-r--r--pkgs/applications/misc/alacritty/default.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/applications/misc/alacritty/default.nix b/pkgs/applications/misc/alacritty/default.nix
index 5e7dc934a093..79333e7d9fa1 100644
--- a/pkgs/applications/misc/alacritty/default.nix
+++ b/pkgs/applications/misc/alacritty/default.nix
@@ -46,12 +46,14 @@ buildRustPackage rec {
     pkgconfig
   ] ++ rpathLibs;
 
-  patchPhase = ''
+  postPatch = ''
     substituteInPlace copypasta/src/x11.rs \
       --replace Command::new\(\"xclip\"\) Command::new\(\"${xclip}/bin/xclip\"\)
   '';
 
   installPhase = ''
+    runHook preInstall
+
     mkdir -p $out/bin
     for f in $(find target/release -maxdepth 1 -type f); do
       cp $f $out/bin
@@ -60,6 +62,8 @@ buildRustPackage rec {
 
     mkdir -p $out/share/applications
     cp Alacritty.desktop $out/share/applications/alacritty.desktop
+
+    runHook postInstall
   '';
 
   dontPatchELF = true;