git.iko.soy/typeable/nixpkgs
on master help sign in
alacritty: respect pre- and post-hooks of overridden phases

Failing to `runHook` when overriding phases can have unpredictable results. fixes #29572

commit6e01011211f856ca94c643daeab3f82694750916 authorThomas Tuegel <ttuegel@mailbox.org> dateTue 19 Sep 2017, 12:16 (9 years ago) parenta50d0b7
1 file changed+5−1
pkgs/applications/misc/alacritty/default.nix+5−1
pkgs/applications/misc/alacritty/default.nix+5−1
@@ -46,12 +46,14 @@ buildRustPackage rec {
4646 pkgconfig
4747 ] ++ rpathLibs;
4848
49− patchPhase = ''
49+ postPatch = ''
5050 substituteInPlace copypasta/src/x11.rs \
5151 --replace Command::new\(\"xclip\"\) Command::new\(\"${xclip}/bin/xclip\"\)
5252 '';
5353
5454 installPhase = ''
55+ runHook preInstall
56+
5557 mkdir -p $out/bin
5658 for f in $(find target/release -maxdepth 1 -type f); do
5759 cp $f $out/bin
@@ -60,6 +62,8 @@ buildRustPackage rec {
6062
6163 mkdir -p $out/share/applications
6264 cp Alacritty.desktop $out/share/applications/alacritty.desktop
65+
66+ runHook postInstall
6367 '';
6468
6569 dontPatchELF = true;