From 6e01011211f856ca94c643daeab3f82694750916 Mon Sep 17 00:00:00 2001 From: Thomas Tuegel Date: Tue, 19 Sep 2017 12:16:04 -0500 Subject: [PATCH] alacritty: respect pre- and post-hooks of overridden phases Failing to `runHook` when overriding phases can have unpredictable results. fixes #29572 --- pkgs/applications/misc/alacritty/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/misc/alacritty/default.nix b/pkgs/applications/misc/alacritty/default.nix index 5e7dc934a09..79333e7d9fa 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;