Before this commit, aarch64 users building the following configuration would end up with an aarch64-linux builder, while after it, they get the x86_64-linux builder they expect:
The reason for this is that the linux-builder module calls override on the package option, and the linux-builder-x86_64 package is also defined using override:
Before this commit, aarch64 users building the following configuration would end up with an aarch64-linux builder, while after it, they get the x86_64-linux builder they expect:
Before, in order to get an x86_64-linux builder, they would have needed to use this configuration instead:
The reason for this is that the linux-builder module calls
override
on the package option, and thelinux-builder-x86_64
package is also defined using override:The module was effectively discarding the
nixpkgs.hostPlatform
option.Example issue: https://github.com/NixOS/nixpkgs/issues/313784