···8# `glibc` needs to be overridden here because it's still needed to `./configure` the source in order
9# to have a build environment where we can call the needed make target.
1011-glibc.overrideAttrs ({ meta ? {}, ... }: {
12 pname = "glibc-mtrace";
1314 buildPhase = ''
···25 mv malloc/mtrace $out/bin/
26 '';
2728- # Perl interpreter used for `mtrace`.
29- buildInputs = [ perl ];
003031 # Reset a few things declared by `pkgs.glibc`.
32 outputs = [ "out" ];
33 separateDebugInfo = false;
3435- meta = meta // {
36 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).";
37 };
38})
···8# `glibc` needs to be overridden here because it's still needed to `./configure` the source in order
9# to have a build environment where we can call the needed make target.
1011+glibc.overrideAttrs (oldAttrs: {
12 pname = "glibc-mtrace";
1314 buildPhase = ''
···25 mv malloc/mtrace $out/bin/
26 '';
2728+ # Perl checked during configure
29+ nativeBuildInputs = oldAttrs.nativeBuildInputs ++ [ perl ];
30+ # Perl shebang used for `mtrace`.
31+ buildInputs = oldAttrs.buildInputs ++ [ perl ];
3233 # Reset a few things declared by `pkgs.glibc`.
34 outputs = [ "out" ];
35 separateDebugInfo = false;
3637+ meta = oldAttrs.meta // {
38 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).";
39 };
40})