From db3e6e585d13e2c4084179cf74d90b14c204a1e0 Mon Sep 17 00:00:00 2001 From: Jack O'Sullivan Date: Tue, 31 Oct 2023 14:38:51 +0000 Subject: [PATCH] devshell: Update repl command for newer Nix --- devshell/commands.nix | 8 +------- devshell/default.nix | 2 +- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/devshell/commands.nix b/devshell/commands.nix index 611240f..016782d 100644 --- a/devshell/commands.nix +++ b/devshell/commands.nix @@ -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"; diff --git a/devshell/default.nix b/devshell/default.nix index 0854241..249b856 100644 --- a/devshell/default.nix +++ b/devshell/default.nix @@ -12,7 +12,7 @@ in NIX_USER_CONF_FILES = toString (pkgs.writeText "nix.conf" '' - experimental-features = nix-command flakes ca-derivations + experimental-features = nix-command flakes ca-derivations repl-flake #substituters = https://nix-cache.nul.ie https://cache.nixos.org substituters = https://cache.nixos.org trusted-public-keys = ${concatStringsSep " " lib.my.nix.cacheKeys}