diff --git a/pwn/.envrc b/pwn/.envrc index 4a87cb9..ebf2961 100644 --- a/pwn/.envrc +++ b/pwn/.envrc @@ -1,2 +1,2 @@ nix_direnv_watch_file ./devshell.nix -use flake +use flake . diff --git a/pwn/devshell.nix b/pwn/devshell.nix index 8434e94..c03bd3a 100644 --- a/pwn/devshell.nix +++ b/pwn/devshell.nix @@ -32,11 +32,11 @@ env = [ { name = "NIX_LD"; - value = "$PWD/ld-linux-x86-64.so.2"; + eval = "$PRJ_ROOT/ld-linux-x86-64.so.2"; } { name = "NIX_LD_LIBRARY_PATH"; - value = "$PWD/libc.so.6"; + eval = "$PRJ_ROOT"; } ]; };