···88# `glibc` needs to be overridden here because it's still needed to `./configure` the source in order
99# to have a build environment where we can call the needed make target.
10101111-glibc.overrideAttrs ({ meta ? {}, ... }: {
1111+glibc.overrideAttrs (oldAttrs: {
1212 pname = "glibc-mtrace";
13131414 buildPhase = ''
···2525 mv malloc/mtrace $out/bin/
2626 '';
27272828- # Perl interpreter used for `mtrace`.
2929- buildInputs = [ perl ];
2828+ # Perl checked during configure
2929+ nativeBuildInputs = oldAttrs.nativeBuildInputs ++ [ perl ];
3030+ # Perl shebang used for `mtrace`.
3131+ buildInputs = oldAttrs.buildInputs ++ [ perl ];
30323133 # Reset a few things declared by `pkgs.glibc`.
3234 outputs = [ "out" ];
3335 separateDebugInfo = false;
34363535- meta = meta // {
3737+ meta = oldAttrs.meta // {
3638 description = "Perl script used to interpret and provide human readable output of the trace log contained in the file mtracedata, whose contents were produced by mtrace(3).";
3739 };
3840})