-
-
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 develop --build and phases confusion #6202
Comments
I ran into this too, and it was a bit confusing. This also applies to using
IMO 1 is the cleanest, but is annoying to type and there will be lots of tutorials etc. that will never be fixed. 2 is pragmatic, but still results in some confusion with user-defined (or non-default) phases, or where |
Any progress? I ran into this problem too, which is very confusing to me. |
Not really. I think this could be somewhat easily be worked around in Nix by replacing the |
But which implementation is preferred? The commit mentioned has already done this but it's not accepted. |
Oh, I'd forgotten about that 🤦♂️ |
@thufschmitt I've created a PR for nixpkgs in preparation of fixing this issue, please take a look at it. |
Provide a `runPhase` function which wraps the phase running action of genericBuild. The new function can be used as an interface by `nix develop`, i.e. `nix develop some#flake --build` may just call `runPhase build`, which makes its behavior more consistent with `nix build`. In preparation of fixing NixOS/nix#6202
Provide a `runPhase` function which wraps the phase running action of genericBuild. The new function can be used as an interface by `nix develop`, i.e. `nix develop some#flake --build` may just call `runPhase build`, which makes its behavior more consistent with `nix build`. In preparation of fixing NixOS/nix#6202
When buildPhase is defined,
nix develop --build
does not work due to confusion between the variable and function during stdenv eval.need feedback:
flox@c03252c
Or change the order here in stdenv? https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L72-L80
The text was updated successfully, but these errors were encountered: