alacritty: fix build

Use postInstall instead of installPhase to give the cargo hooks a chance
to set $releaseDir.
This commit is contained in:
Jakub Kądziołka 2021-02-26 21:59:45 +01:00
parent 8e5a172d0c
commit 5e401dcd2b
No known key found for this signature in database
GPG Key ID: E315A75846131564

View File

@ -90,12 +90,7 @@ rustPlatform.buildRustPackage rec {
--replace xdg-open ${xdg-utils}/bin/xdg-open
'';
installPhase = ''
runHook preInstall
install -D $releaseDir/alacritty $out/bin/alacritty
'' + (
postInstall = (
if stdenv.isDarwin then ''
mkdir $out/Applications
cp -r extra/osx/Alacritty.app $out/Applications
@ -126,8 +121,6 @@ rustPlatform.buildRustPackage rec {
tic -xe alacritty,alacritty-direct -o "$terminfo/share/terminfo" extra/alacritty.info
mkdir -p $out/nix-support
echo "$terminfo" >> $out/nix-support/propagated-user-env-packages
runHook postInstall
'';
dontPatchELF = true;