Skip to content
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 run should work with an installable that is a function. #5316

Open
tomprince opened this issue Oct 2, 2021 · 3 comments
Open

nix run should work with an installable that is a function. #5316

tomprince opened this issue Oct 2, 2021 · 3 comments
Labels

Comments

@tomprince
Copy link

Describe the bug

A clear and concise description of what the bug is.

If you have a problem with a specific package or NixOS,
you probably want to file an issue at https://github.com/NixOS/nixpkgs/issues.

Steps To Reproduce

nix run --impure --expr '{pkgs ? import <nixpkgs> {}}: pkgs.hello'

Result

error: attribute 'type' does not exist

Expected behavior

I expect nix run to evaluate the function with default agrurments.

nix-env --version output

nix-env (Nix) 2.4pre20210922_bcd73eb

Additional context

My actual use case involves passing -f /path/to/command.nix. nix shell has the expected behavior.

@tomprince tomprince added the bug label Oct 2, 2021
@stale
Copy link

stale bot commented Apr 16, 2022

I marked this as stale due to inactivity. → More info

@stale stale bot added the stale label Apr 16, 2022
@ghost
Copy link

ghost commented Dec 7, 2023

This is still not fixed.

And the error message is incredibly unhelpful.

@stale stale bot removed the stale label Dec 7, 2023
@Bvngee
Copy link

Bvngee commented Sep 2, 2024

Agree, this is a much needed user experience improvement imo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants