alacritty: fix build on darwin
This commit is contained in:
parent
60f0e62b3c
commit
cb11ab3bf6
1 changed files with 2 additions and 3 deletions
|
@ -90,8 +90,6 @@ rustPlatform.buildRustPackage rec {
|
||||||
--replace xdg-open ${xdg_utils}/bin/xdg-open
|
--replace xdg-open ${xdg_utils}/bin/xdg-open
|
||||||
'';
|
'';
|
||||||
|
|
||||||
postBuild = lib.optionalString stdenv.isDarwin "make app";
|
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
runHook preInstall
|
runHook preInstall
|
||||||
|
|
||||||
|
@ -100,7 +98,8 @@ rustPlatform.buildRustPackage rec {
|
||||||
'' + (
|
'' + (
|
||||||
if stdenv.isDarwin then ''
|
if stdenv.isDarwin then ''
|
||||||
mkdir $out/Applications
|
mkdir $out/Applications
|
||||||
cp -r $releaseDir/osx/Alacritty.app $out/Applications/Alacritty.app
|
cp -r extra/osx/Alacritty.app $out/Applications
|
||||||
|
ln -s $out/bin $out/Applications/Alacritty.app/Contents/MacOS
|
||||||
'' else ''
|
'' else ''
|
||||||
install -D extra/linux/Alacritty.desktop -t $out/share/applications/
|
install -D extra/linux/Alacritty.desktop -t $out/share/applications/
|
||||||
install -D extra/logo/compat/alacritty-term.svg $out/share/icons/hicolor/scalable/apps/Alacritty.svg
|
install -D extra/logo/compat/alacritty-term.svg $out/share/icons/hicolor/scalable/apps/Alacritty.svg
|
||||||
|
|
Loading…
Reference in a new issue