Fix the self repl script.

This commit is contained in:
Tom Alexander 2025-12-10 21:35:50 -05:00
parent dc28b9a112
commit 0bd5931013
Signed by: talexander
GPG Key ID: 36C99E8B3C39D85F
2 changed files with 2 additions and 9 deletions

View File

@ -101,10 +101,9 @@
...
}:
let
repl_path = toString ./.;
nix-self-repl = pkgs.writeShellScriptBin "nix-self-repl" ''
source /etc/set-environment
nix repl "${repl_path}/repl.nix" "$@"
nix repl --expr 'builtins.getFlake "${self}"'
'';
# If we wanted the current version of a flake then we'd just launch
# nix repl
@ -136,10 +135,9 @@
...
}:
let
repl_path = toString ./.;
nix-self-repl = pkgs.writeShellScriptBin "nix-self-repl" ''
source /etc/set-environment
nix repl "${repl_path}/repl.nix" "$@"
nix repl --expr 'builtins.getFlake "${self}"'
'';
# If we wanted the current version of a flake then we'd just launch
# nix repl

View File

@ -1,5 +0,0 @@
let
flake = builtins.getFlake (toString ./.);
nixpkgs = import <nixpkgs> { };
in
{ inherit flake; } // flake // builtins // nixpkgs // nixpkgs.lib // flake.nixosConfigurations