Merge pull request #94643 from doronbehar/wrapNeovim
wrapNeovim: fix darwin build
This commit is contained in:
commit
a7aae2e34d
@ -116,11 +116,14 @@ let
|
|||||||
in
|
in
|
||||||
symlinkJoin {
|
symlinkJoin {
|
||||||
name = "neovim-${stdenv.lib.getVersion neovim}";
|
name = "neovim-${stdenv.lib.getVersion neovim}";
|
||||||
postBuild = ''
|
|
||||||
# Remove the symlinks created by symlinkJoin which we need to perform
|
# Remove the symlinks created by symlinkJoin which we need to perform
|
||||||
# extra actions upon
|
# extra actions upon
|
||||||
rm $out/share/applications/nvim.desktop $out/bin/nvim
|
postBuild = ''
|
||||||
|
rm $out/bin/nvim
|
||||||
makeWrapper ${lib.escapeShellArgs initialMakeWrapperArgs} ${extraMakeWrapperArgs}
|
makeWrapper ${lib.escapeShellArgs initialMakeWrapperArgs} ${extraMakeWrapperArgs}
|
||||||
|
''
|
||||||
|
+ lib.optionalString stdenv.isLinux ''
|
||||||
|
rm $out/share/applications/nvim.desktop
|
||||||
substitute ${neovim}/share/applications/nvim.desktop $out/share/applications/nvim.desktop \
|
substitute ${neovim}/share/applications/nvim.desktop $out/share/applications/nvim.desktop \
|
||||||
--replace 'TryExec=nvim' "TryExec=$out/bin/nvim" \
|
--replace 'TryExec=nvim' "TryExec=$out/bin/nvim" \
|
||||||
--replace 'Name=Neovim' 'Name=WrappedNeovim'
|
--replace 'Name=Neovim' 'Name=WrappedNeovim'
|
||||||
|
Loading…
Reference in New Issue
Block a user