-
-
Notifications
You must be signed in to change notification settings - Fork 14.3k
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
[Tracking Issue] __structuredAttrs
TODOs and FIXMEs
#205690
Comments
cmake and meson (and possibly more?) setup hooks are broken: #289037 |
__structuredAttrs
TODOs and FIXMEs
__structuredAttrs
TODOs and FIXMEs__structuredAttrs
TODOs and FIXMEs
#347194 enables |
structuredAttrs and hardeningEnable don't work together well: #353131 |
Closes NixOS#334705 Addresses NixOS#205690 The main issue was that the output variable (i.e. `$out` and friends) didn't exist. I figured the easiest way to add those is to source `stdenv` here. Given that we build another derivation in this builder, it's pretty likely that `stdenv` gets pulled already, so I don't expect a real overhead here. Also, this mounts `/build` into the VM: this is required to make sure `.attrs.json` & `.attrs.sh` are available. Dropped the mount of `xchg` into `/tmp` now since it's also part of `/build`.
Closes NixOS#334705 Addresses NixOS#205690 The main issue was that the output variable (i.e. `$out` and friends) didn't exist. I figured the easiest way to add those is to source `stdenv` here. Given that we build another derivation in this builder, it's pretty likely that `stdenv` gets pulled already, so I don't expect a real overhead here. Also, this mounts `/build` into the VM: this is required to make sure `.attrs.json` & `.attrs.sh` are available. Dropped the mount of `xchg` into `/tmp` now since it's also part of `/build`.
I started to try to build Before the build starts, output is flooded by eval warnings like this:
I'm addressing this in #357054. One of the first failures is glibc trying to append makeFlags like One of the next failures is related to This also highlights another problem: I can't edit the issue's description, if somebody could add the mentioned issues / PRs, that would be great. |
Yes and yes :) By the way, I think that we can’t just replace all use of |
But it's not #339303 that you're thinking of? |
Ah, I guess it literally is that :) |
Closes NixOS#334705 Addresses NixOS#205690 The main issue was that the output variable (i.e. `$out` and friends) didn't exist. I figured the easiest way to add those is to source `stdenv` here. Given that we build another derivation in this builder, it's pretty likely that `stdenv` gets pulled already, so I don't expect a real overhead here. Also, this mounts `/build` into the VM: this is required to make sure `.attrs.json` & `.attrs.sh` are available. Dropped the mount of `xchg` into `/tmp` now since it's also part of `/build`.
After #357053 there will be two instances left where
|
Note
Originally started by @Artturin, updated by @ConnorBaker and @wolfgangwalther.
This is a tracking issue to follow progress towards
__structuredAttrs
compatibility in Nixpkgs. This list is not exhaustive; please feel free to add or comment more issue or PRs you feel are related.Core
Things relating to adding support for
__structuredAttrs
to setup hooks or tooling used for ecosystems.Open
Issues
substituteAll
is a terrible function and we need to stop using it / fix it respectively #237216PRs
__structuredAttrs = true
#347194env
attribute to pass environment variables #359641ldflags
andtags
__structuredAttrs
-agnostically #360037TODO
$stdenv/setup
work with structuredAttrs in:nixpkgs/pkgs/development/web/nodejs/node-npm-build-npm-package-logic.patch
Line 53 in d225878
$stdenv/setup
work with structuredAttrs in:nixpkgs/pkgs/build-support/docker/default.nix
Lines 1170 to 1171 in d225878
Done
Issues
Nix
__structuredAttrs
nix#7429Nixpkgs
__structuredAttrs = true
#289037vmTools.runInLinuxVM
fails upon__structuredAttrs = true
, complainingmkdir: missing operand
#334705PRs
Nix
nix-shell
with__structuredAttrs = true;
nix#4770Nixpkgs
__structuredAttrs
instdenv.mkDerivation
#65686env
gracefully #205944NIX_ATTRS_{JSON,SH}_FILE
to be set correctly by Nix #214937inputDerivation
: supportstructuredAttrs
#215173NIX_ATTRS_*_FILE
over.attrs.*
#257919*Phases
variables__structuredAttrs
-agnostically #339117__structuredAttrs = true
(the easier ones) #351734hardeningEnable
with__structuredAttrs = true;
#353131__structuredAttrs = true;
#353142createEmptyImage
/preVM
case #358705Misc
Things relating to
__structuredAttrs
of some note, like discussions or work suspended until better support for__structuredAttrs
is implemented.Open
PRs
paths
pre-instantiation filtering and sorting #300722stdenv
#336837Done
PRs
cmakeFlags
more ergonomic #17886__structuredAttrs
#214373The text was updated successfully, but these errors were encountered: