devshell: Update repl command for newer Nix

This commit is contained in:
2023-10-31 14:38:51 +00:00
parent 08bdc5def8
commit db3e6e585d
2 changed files with 2 additions and 8 deletions

View File

@@ -9,13 +9,7 @@ in
name = "repl";
category = "utilities";
help = "Open a `nix repl` with this flake";
command =
''
tmp="$(mktemp --tmpdir repl.nix.XXXXX)"
echo "builtins.getFlake \"$PRJ_ROOT\"" > "$tmp"
nix repl "$tmp" || true
rm "$tmp"
'';
command = "nix repl .#";
}
{
name = "home-link";