diff --git a/flake.nix b/flake.nix index 1bb6817..9998149 100644 --- a/flake.nix +++ b/flake.nix @@ -143,7 +143,13 @@ name = "repl"; category = "utilities"; help = "Open a `nix repl` with this flake"; - command = ''nix repl ${pkgs.writeText "repl.nix" "builtins.getFlake \"${./.}\""}''; + command = + '' + tmp="$(mktemp --tmpdir repl.nix.XXXXX)" + echo "builtins.getFlake \"$PRJ_ROOT\"" > "$tmp" + nix repl "$tmp" || true + rm "$tmp" + ''; } { name = "home-link";