fix: nix package
This commit is contained in:
parent
62c709a8e3
commit
f9d108462f
1 changed files with 4 additions and 7 deletions
|
@ -45,14 +45,11 @@ pkgs.writeTextFile {
|
|||
text = ''
|
||||
#!${pkgs.bash}/bin/bash
|
||||
export PATH=${lib.makeBinPath deps}:$PATH
|
||||
|
||||
CONF="${../.}"
|
||||
|
||||
if [ -z $${TMP_PROJECT_ROOT+x} ]; then
|
||||
export LUA_PATH=${../.}/lua/?.lua;
|
||||
export CONFIG_LOC=${../init.lua}
|
||||
else
|
||||
export LUA_PATH="$TMP_PROJECT_ROOT/lua/?.lua";
|
||||
export CONFIG_LOC="$TMP_PROJECT_ROOT/init.lua"
|
||||
fi
|
||||
export LUA_PATH="$CONF/lua/?.lua";
|
||||
export CONFIG_LOC="$CONF/init.lua"
|
||||
|
||||
${pkgs.neovim-unwrapped}/bin/nvim -u $CONFIG_LOC $@
|
||||
'';
|
||||
|
|
Loading…
Add table
Reference in a new issue