valgrind-light: correctly override meta

This is broken due to Nix treating `a = { b.c = d; }` as `a = { b = { c
= d; }; }` and `overrideAttrs` isn't recursively merging attributes with
old ones.

Broken in 95e172d7c0
https://github.com/NixOS/nixpkgs/pull/340144
This commit is contained in:
aleksana 2024-09-09 16:18:51 +08:00
parent cb97dfe6c0
commit d476605713

View File

@ -19123,7 +19123,7 @@ with pkgs;
inherit (buildPackages.darwin) xnu bootstrap_cmds;
};
valgrind-light = (res.valgrind.override { gdb = null; }).overrideAttrs (oldAttrs: {
meta.description = "${oldAttrs.meta.description} (without GDB)";
meta = oldAttrs.meta // { description = "${oldAttrs.meta.description} (without GDB)"; };
});
qcachegrind = libsForQt5.callPackage ../development/tools/analysis/qcachegrind { };