diff options
| author | Winter <winter@winter.cafe> | 2025-07-08 17:05:16 -0400 |
|---|---|---|
| committer | Winter M <winter@antithesis.com> | 2025-08-27 16:35:53 -0400 |
| commit | 2141b4e38b8bae900b823b2cd1e2e59c5fa1368d (patch) | |
| tree | 7e2de1691a7d494a869db536fbf6e0e56a1a4327 /pkgs/development/python-modules/termplotlib/gnuplot-subprocess.patch | |
| parent | 30baf2b7f91165285980d9115f7c67036efd5520 (diff) | |
lib.addMetaAttrs: use overrideAttrs when available
Previously, any subsequent change to a derivation after
an `addMetaAttrs` call would cause said attribute(s) to
be unconditionally reset back to their previous value(s):
nix-repl> ((oldPkgs.lib.lowPrio oldPkgs.hello).overrideAttrs {a = 1;}).meta.priority
error:
… while evaluating the attribute 'meta.priority'
at /nix/store/nxdiklm6dnf9pma1zg7srls2nzrykrjf-nixos/nixos/pkgs/stdenv/generic/make-derivation.nix:846:17:
845| inherit passthru overrideAttrs;
846| inherit meta;
| ^
847| }
error: attribute 'priority' missing
at «string»:1:67:
1| ((oldPkgs.lib.lowPrio oldPkgs.hello).overrideAttrs {a = 1;}).meta.priority
| ^
This change makes it so that this does not happen (unless, of
course, a subsequent override does affect those values):
nix-repl> ((newPkgs.lib.lowPrio oldPkgs.hello).overrideAttrs {a = 1;}).meta.priority
10
Fixes #323624.
Diffstat (limited to 'pkgs/development/python-modules/termplotlib/gnuplot-subprocess.patch')
0 files changed, 0 insertions, 0 deletions
