-
-
Notifications
You must be signed in to change notification settings - Fork 14.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
.inputDerivation broken for __structuredAttrs derivations #321005
Labels
0.kind: bug
Something is broken
Comments
Interesting - that approach changes the code to use structuredAttrs. it might just be simpler to unset structuredAttrs in the override (or otherwise, to always set structuredattrs). No specific need to use structuredattrs for this bit only. |
Certain derivation attribute values such as |
2 tasks
wolfgangwalther
added a commit
to wolfgangwalther/nixpkgs
that referenced
this issue
Dec 2, 2024
The goal is to print all store references into $out. First, $out itself is not defined with structuredAttrs, but we can work around that with placeholder. Alternatively we could source $stdenv/setup after sourcing the attrs.sh file, but that feels like overkill. To support structuredAttrs we source the attrs.sh file. export will not be enough anymore, because the attrs file sets bash variables, not environment variables. Thus we resort to declare -p. Resolves NixOS#321005
13 tasks
RedEtherbloom
pushed a commit
to RedEtherbloom/nixpkgs
that referenced
this issue
Dec 4, 2024
The goal is to print all store references into $out. First, $out itself is not defined with structuredAttrs, but we can work around that with placeholder. Alternatively we could source $stdenv/setup after sourcing the attrs.sh file, but that feels like overkill. To support structuredAttrs we source the attrs.sh file. export will not be enough anymore, because the attrs file sets bash variables, not environment variables. Thus we resort to declare -p. Resolves NixOS#321005
mkg20001
pushed a commit
to mkg20001/nixpkgs
that referenced
this issue
Dec 5, 2024
The goal is to print all store references into $out. First, $out itself is not defined with structuredAttrs, but we can work around that with placeholder. Alternatively we could source $stdenv/setup after sourcing the attrs.sh file, but that feels like overkill. To support structuredAttrs we source the attrs.sh file. export will not be enough anymore, because the attrs file sets bash variables, not environment variables. Thus we resort to declare -p. Resolves NixOS#321005
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Every derivation has a .inputDerivation that can be used to e.g. create a dev shell. The runtime dependencies of this derivation are the build dependencies of the parent.
On my computer, on the two packages I've tried, if
__structuredAttrs = true
is set for the parent, the inputDerivation will fail to build.Steps To Reproduce
Expected behavior
Succeeds
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
Notify maintainers
@roberth seems to have made a bunch of PRs to this piece of code!
Add a 👍 reaction to issues you find important.
The text was updated successfully, but these errors were encountered: