buildGoModule: intersect given and available meta.platforms#457308
buildGoModule: intersect given and available meta.platforms#457308acid-bong wants to merge 1 commit intoNixOS:masterfrom
meta.platforms#457308Conversation
This comment was marked as outdated.
This comment was marked as outdated.
ShamrockLee
left a comment
There was a problem hiding this comment.
I like the meta change!
The passthru change is reasonable, though I'm not 100% sure if it we need to add a release note for this change as it does touch the interface.
Here's a brief history of the current passthru design:
The design decision (I made in #225051 ) about the current passthru precedence predates the final version of lib.extendMkDerivation. At that time, I was still hoping that we could eventually pass everything directly into stdenv.mkDerivation (i.e., no removeAttrs or excludeDrvArgNames) and turn language- and framework-specific build helpers into attribute overlays one could load via overrideAttrs during package definition. (See comment #234651 (comment) for the motivation.)
I changed my mind after participating in the __structuredAttrs = true conversion. Backward compatibility can only be made possible with excludeDrvArgNames. Even stdenv.mkDerivation itself excludes env when __structuredAttrs is false. Comment #234651 (comment) explains this in detail.
|
Hmm, seems that non-overridable passthrus are more complicated. I'll remove that commit and leave only the meta part |
…ms and Go's ones Adapted from `buildRustPackage`: https://github.com/NixOS/nixpkgs/blob/master/pkgs/build-support/rust/build-rust-package/default.nix#L165-L169
1d3d5f8 to
e307c27
Compare
meta.platforms
|
Could you explain again why we need this change? As I understand it, when I add a platform to |
sounds good, but it'll require changes in all builders for the sake of consistency |
At least Aerc and Syncthing aren't getting rebuilt, I can't remember any other Go-based programs on top of my head. Hopefully it's not gonna cause a mass rebuild
Things done
passthru.tests.nixpkgs-reviewon this PR. See nixpkgs-review usage../result/bin/.Add a 👍 reaction to pull requests you find important.