From ded9632c61e3b6e4fce5bb279fceb3917045a4e4 Mon Sep 17 00:00:00 2001 From: Narthana Epa Date: Tue, 11 Jun 2024 22:47:24 +1000 Subject: [PATCH] neovide: add darwin app --- pkgs/by-name/ne/neovide/package.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/ne/neovide/package.nix b/pkgs/by-name/ne/neovide/package.nix index 1e94ae750561..4c4dfab2fe1d 100644 --- a/pkgs/by-name/ne/neovide/package.nix +++ b/pkgs/by-name/ne/neovide/package.nix @@ -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"