neovim: accepts an extraName to distinguish between wrappers

especially useful to distinguish between the different neovim generated during the tests
This commit is contained in:
Matthieu Coudron 2021-05-21 12:44:02 +02:00
parent b0798e7d4b
commit a793aacf9d

View File

@ -11,8 +11,9 @@ neovim:
let
wrapper = {
extraName ? ""
# should contain all args but the binary
wrapperArgs ? ""
, wrapperArgs ? ""
, manifestRc ? null
, withPython2 ? false
, withPython3 ? true, python3Env ? null
@ -37,7 +38,7 @@ let
assert withPython2 -> throw "Python2 support has been removed from the neovim wrapper, please remove withPython2 and python2Env.";
symlinkJoin {
name = "neovim-${lib.getVersion neovim}";
name = "neovim-${lib.getVersion neovim}${extraName}";
# Remove the symlinks created by symlinkJoin which we need to perform
# extra actions upon
postBuild = lib.optionalString stdenv.isLinux ''