mirror of
https://github.com/nix-community/nix-direnv.git
synced 2025-11-08 19:46:11 +01:00
use readlink instead of realpath
fixes #54 readpath is not available on macOS.
This commit is contained in:
parent
9b3e62f10f
commit
e5c4a4678a
1 changed files with 1 additions and 1 deletions
2
direnvrc
2
direnvrc
|
|
@ -68,7 +68,7 @@ use_flake() {
|
|||
local tmp_profile="$(direnv_layout_dir)/flake-profile.$$"
|
||||
[[ -d "$(direnv_layout_dir)" ]] || mkdir -p "$(direnv_layout_dir)"
|
||||
local tmp_profile_rc=$(nix print-dev-env --profile "$tmp_profile")
|
||||
drv=$(realpath "$tmp_profile")
|
||||
drv=$(readlink "$tmp_profile")
|
||||
echo "$tmp_profile_rc" > "$profile_rc"
|
||||
rm -f "$tmp_profile" "$tmp_profile"*
|
||||
_nix_add_gcroot "$drv" "$profile"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue