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

[Tracking Issue] __structuredAttrs TODOs and FIXMEs #205690

Open
Artturin opened this issue Dec 11, 2022 · 6 comments
Open

[Tracking Issue] __structuredAttrs TODOs and FIXMEs #205690

Artturin opened this issue Dec 11, 2022 · 6 comments
Labels
0.kind: bug Something is broken 5. scope: tracking Long-lived issue tracking long-term fixes or multiple sub-problems

Comments

@Artturin
Copy link
Member

Artturin commented Dec 11, 2022

Note

Originally started by @Artturin, updated by @ConnorBaker.

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.

Issues

Closed

Nix
Nixpkgs

Open

Nixpkgs

PRs

Closed

Nixpkgs

Merged

Nix
Nixpkgs

Open

Nixpkgs

Draft

Nixpkgs

Misc

Things relating to __structuredAttrs of some note, like discussions or work suspended until better support for __structuredAttrs is implemented.

PRs

Closed

Nixpkgs

Merged

Nixpkgs

Open

Nixpkgs
@Artturin Artturin changed the title structuredAttrs TODOS structuredAttrs TODOs/FIXMEs Dec 11, 2022
@wolfgangwalther
Copy link
Contributor

cmake and meson (and possibly more?) setup hooks are broken: #289037

@tomodachi94 tomodachi94 added the 0.kind: bug Something is broken label May 13, 2024
@ConnorBaker ConnorBaker changed the title structuredAttrs TODOs/FIXMEs [Tracking] __structuredAttrs TODOs and FIXMEs Sep 10, 2024
@ConnorBaker ConnorBaker changed the title [Tracking] __structuredAttrs TODOs and FIXMEs [Tracking Issue] __structuredAttrs TODOs and FIXMEs Sep 10, 2024
@SigmaSquadron SigmaSquadron added the 5. scope: tracking Long-lived issue tracking long-term fixes or multiple sub-problems label Sep 10, 2024
@ShamrockLee
Copy link
Contributor

#347194 enables __structuredAttrs support for Python packages. Please take a look.

@ShamrockLee
Copy link
Contributor

#352709 is a continuation of #339117.

@wolfgangwalther
Copy link
Contributor

structuredAttrs and hardeningEnable don't work together well: #353131

@wolfgangwalther
Copy link
Contributor

structuredAttrs and hardeningEnable don't work together well: #353131

Actually fixed in #353142

@wolfgangwalther
Copy link
Contributor

#347194 enables __structuredAttrs support for Python packages. Please take a look.

A part of that is split into #351734.

Ma27 added a commit to Ma27/nixpkgs that referenced this issue Nov 8, 2024
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`.
Ma27 added a commit to Ma27/nixpkgs that referenced this issue Nov 8, 2024
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`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug Something is broken 5. scope: tracking Long-lived issue tracking long-term fixes or multiple sub-problems
Projects
None yet
Development

No branches or pull requests

5 participants