diff options
| author | Alyssa Ross <hi@alyssa.is> | 2023-12-03 01:32:01 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-03 01:32:01 +0100 |
| commit | 973120823b5824d426b97a7e9e027191b22f33ac (patch) | |
| tree | 976938b95dce606d6d540e5514887c9cfe3c4fe1 /pkgs/development/python-modules/termplotlib/gnuplot-subprocess.patch | |
| parent | 0616776a5e4072e9455e3966d1fce58feefa7a58 (diff) | |
lib.systems.elaborate: fix passing `rust` (more) (#271707)
An important idea around the rust stuff in lib.systems is that it's
elaborated — this means that it should idempotently add to the values
passed in, if any. But we missed that the names used for the
parameter and the elaborated value for "rustcTarget"/"config" didn't
line up. The intention was to use "rustcTarget" everywhere in the new
interface, as a more descriptive name than "config".
This fixes setting the system in NixOS configuration, which results in
an already elaborated system being elaborated again. Before, this
wouldn't produce the correct result:
% nix-instantiate --eval -A stdenv.hostPlatform.rust.rustcTarget --system armv7l-linux
"armv7-unknown-linux-gnueabihf"
% NIX_PATH= nix-instantiate --eval -E '(import nixos/lib/eval-config.nix { system = "armv7l-linux"; modules = []; }).pkgs.stdenv.hostPlatform.rust.rustcTarget'
"arm-unknown-linux-gnueabihf"
Fixes: e3e57b8f1885 ("lib.systems: elaborate Rust metadata")
Fixes: https://github.com/NixOS/nixpkgs/issues/271000
Diffstat (limited to 'pkgs/development/python-modules/termplotlib/gnuplot-subprocess.patch')
0 files changed, 0 insertions, 0 deletions
