fix: nix package

This commit is contained in:
nydragon 2025-02-23 19:40:19 +01:00
parent 62c709a8e3
commit f9d108462f
Signed by: nydragon
SSH key fingerprint: SHA256:WcjW5NJPQ8Dx4uQDmoIlVPLWE27Od3fxoe0IUvuoPHE

View file

@ -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 $@
'';