From f9d108462f128f074327a688eb13e022e8becd5f Mon Sep 17 00:00:00 2001 From: nydragon Date: Sun, 23 Feb 2025 19:40:19 +0100 Subject: [PATCH] fix: nix package --- nix/package.nix | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/nix/package.nix b/nix/package.nix index 1c15d3d..666eabf 100644 --- a/nix/package.nix +++ b/nix/package.nix @@ -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 $@ '';