devShell: Fix repl
This commit is contained in:
parent
99f8695df2
commit
716ee35c29
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user