neovide: add darwin app

This commit is contained in:
Narthana Epa 2024-06-11 22:47:24 +10:00
parent d51f8579f0
commit ded9632c61
No known key found for this signature in database
GPG Key ID: 2330390BFC0F517A

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"