Skip to content

Create a scope variable in nix repl #9215

Open
@Denommus

Description

Is your feature request related to a problem? Please describe.
I was using node2nix, and it generates the variable names of the created nix derivations with the same name as the original name from npm. That means you can have a name like "@foo/bar". When you check the resulting default.nix with nix repl -f default.nix, you don't have a way of calling the generated derivation, since they are quoted.

Describe the solution you'd like
If the repl had a variable, say _scope, with all the variables in the global scope, you could call the above example with _scope."@foo/bar".

Describe alternatives you've considered
There are workarounds, like calling import instead of using -f, but having this additional option would improve usability a bit.

Metadata

Assignees

No one assigned

    Labels

    featureFeature request or proposalreplThe Read Eval Print Loop, "nix repl" command and debugger

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions