Merge pull request #319061 from triarius/neovide-macos-app

Install app on macOS for neovide
This commit is contained in:
Christian Kögler
2024-06-22 06:25:34 +02:00
committed by GitHub
+5 -1
View File
@@ -96,7 +96,11 @@ rustPlatform.buildRustPackage.override { stdenv = clangStdenv; } rec {
--prefix LD_LIBRARY_PATH : ${libPath}
'';
postInstall = ''
postInstall = lib.optionalString stdenv.isDarwin ''
mkdir -p $out/Applications
cp -r extra/osx/Neovide.app $out/Applications
ln -s $out/bin $out/Applications/Neovide.app/Contents/MacOS
'' + lib.optionalString stdenv.isLinux ''
for n in 16x16 32x32 48x48 256x256; do
install -m444 -D "assets/neovide-$n.png" \
"$out/share/icons/hicolor/$n/apps/neovide.png"