-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
broken nix print-dev-env on drvs #8309
Labels
Comments
Ericson2314
added a commit
to obsidiansystems/nix
that referenced
this issue
May 9, 2023
Fixes NixOS#8309 This regression was because both `CmdDevelop` and `CmdPrintDevEnv` were switched to be `InstallableValueCommand` subclasses, but only `CmdDevelop` should have been.
8 tasks
Try out #8310 |
Ericson2314
added a commit
to obsidiansystems/nix
that referenced
this issue
May 10, 2023
Fixes NixOS#8309 This regression was because both `CmdDevelop` and `CmdPrintDevEnv` were switched to be `InstallableValueCommand` subclasses, but actually neither should have been. The `nixpkgsFlakeRef` method should indeed not be on the base installable class, because "flake refs" and "nixpkgs" are not installable-wide notions, but that doesn't mean these commands should only accept installable values.
Ericson2314
added a commit
to obsidiansystems/nix
that referenced
this issue
May 10, 2023
Fixes NixOS#8309 This regression was because both `CmdDevelop` and `CmdPrintDevEnv` were switched to be `InstallableValueCommand` subclasses, but actually neither should have been. The `nixpkgsFlakeRef` method should indeed not be on the base installable class, because "flake refs" and "nixpkgs" are not installable-wide notions, but that doesn't mean these commands should only accept installable values.
github-actions bot
pushed a commit
that referenced
this issue
May 11, 2023
Fixes #8309 This regression was because both `CmdDevelop` and `CmdPrintDevEnv` were switched to be `InstallableValueCommand` subclasses, but actually neither should have been. The `nixpkgsFlakeRef` method should indeed not be on the base installable class, because "flake refs" and "nixpkgs" are not installable-wide notions, but that doesn't mean these commands should only accept installable values. (cherry picked from commit a93110a)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
nix print-dev-env
doesn't work on derivations and store paths anymore. It seems to require a flake reference.Steps To Reproduce
nix run nix/2.15.1#nix -- print-dev-env "$(nix eval --raw nixpkgs#hello.drvPath)"
Expected behavior
This should print the development environment for the given derivation.
nix-env --version
outputAdditional context
The commit that caused this is 256f3e3
The old behavior is used by https://github.com/divnix/std/blob/63b3a0e83f6a7c9d326f18198b2e6e4110b44816/src/blocktypes/devshells.nix#L55
I made a haphazard patch to fix the issue, but I'm sure there's a better way than duplicating all that code. After trying for a few hours I couldn't make any sense of the C++ errors and gave up on that.
@Ericson2314
Priorities
Add 👍 to issues you find important.
The text was updated successfully, but these errors were encountered: