-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nix repl repl-flake behaves differently than :lf #8059
Comments
Slightly related: is there a way to print defined variables? |
what's added by
what's additionally loaded by
The nix <flake>#<attribute> argument apparently only supports the output attributes, so maybe it would make sense to make all nix commands support these attributes too, not just the output attributes. For example, then you could run |
This workaround loads all the same attributes as {
outputs = { self, ... }: {
inherit (self) _type inputs lastModified lastModifiedDate narHash outPath outputs sourceInfo submodules;
};
} |
Discussed during the Nix maintainers meeting on 2024-02-26.
|
This issue has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/2024-02-28-nix-team-meeting-129/40499/1 |
you can use functions like
actually, |
Do you mean that $ nix repl nixpkgs
Nix 2.21.0pre20240304_4388559
Type :? for help.
Loading installable 'flake:nixpkgs#'...
Added 5 variables.
nix-repl> lib.nixosSystem
«lambda nixosSystem @ /nix/store/3i3rncs75fid9hwai5p2nvwc4ngdnia7-source/flake.nix:21:23» |
Pretty sure that's loaded, but attributes such as |
Not sure of this is a bug or desired behavior of the new experimental repl-flake.
With repl-flake enabled and entered my nixos flake, when I run
nix repl .#
, only 5 variables added. In my previous workflow with:lf
inside repl, I can see more variables added. Things like input etc are missing bynix repl .#
The text was updated successfully, but these errors were encountered: