From 0d3528c67d9d7ea665846685397bca7cd8c792be Mon Sep 17 00:00:00 2001 From: Jack O'Sullivan Date: Tue, 15 Feb 2022 00:12:10 +0000 Subject: [PATCH] devshell: Add repl command --- flake.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/flake.nix b/flake.nix index ed93709..06ed081 100644 --- a/flake.nix +++ b/flake.nix @@ -138,6 +138,12 @@ ]; commands = [ + { + name = "repl"; + category = "utilities"; + help = "Open a `nix repl` with this flake"; + command = ''nix repl ${pkgs.writeText "repl.nix" "builtins.getFlake \"${./.}\""}''; + } { name = "home-link"; category = "utilities";