Fix the self repl script.
This commit is contained in:
parent
dc28b9a112
commit
0bd5931013
@ -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
|
||||
|
||||
@ -1,5 +0,0 @@
|
||||
let
|
||||
flake = builtins.getFlake (toString ./.);
|
||||
nixpkgs = import <nixpkgs> { };
|
||||
in
|
||||
{ inherit flake; } // flake // builtins // nixpkgs // nixpkgs.lib // flake.nixosConfigurations
|
||||
Loading…
x
Reference in New Issue
Block a user