From 182dd834a448a0e65406f9d4dafc67227529373d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20Gro=C3=9Fmann?= Date: Sun, 8 Oct 2023 14:24:05 +0200 Subject: [PATCH] fix: devshell cannot be impure --- pwn/.envrc | 2 +- pwn/devshell.nix | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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"; } ]; };