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

@ -46,13 +46,10 @@ pkgs.writeTextFile {
#!${pkgs.bash}/bin/bash #!${pkgs.bash}/bin/bash
export PATH=${lib.makeBinPath deps}:$PATH export PATH=${lib.makeBinPath deps}:$PATH
if [ -z $${TMP_PROJECT_ROOT+x} ]; then CONF="${../.}"
export LUA_PATH=${../.}/lua/?.lua;
export CONFIG_LOC=${../init.lua} export LUA_PATH="$CONF/lua/?.lua";
else export CONFIG_LOC="$CONF/init.lua"
export LUA_PATH="$TMP_PROJECT_ROOT/lua/?.lua";
export CONFIG_LOC="$TMP_PROJECT_ROOT/init.lua"
fi
${pkgs.neovim-unwrapped}/bin/nvim -u $CONFIG_LOC $@ ${pkgs.neovim-unwrapped}/bin/nvim -u $CONFIG_LOC $@
''; '';