···14 ];
15in
1617-callPackage ./common.nix { inherit stdenv; } {
18- pname = "glibc" + lib.optionalString withGd "-gd";
19-20- inherit withLinuxHeaders profilingLibraries withGd withLibcrypt;
2122 # Note:
23 # Things you write here override, and do not add to,
24 # the values in `common.nix`.
25 # (For example, if you define `patches = [...]` here, it will
26- # override the patches in `common.nix`.)
02728 NIX_NO_SELF_RPATH = true;
29···74 # - dejagnu: during linux bootstrap tcl SIGSEGVs
75 # - clang-wrapper in cross-compilation
76 # Last attempt: https://github.com/NixOS/nixpkgs/pull/36948
77- preInstall = ''
78 if [ -f ${stdenv.cc.cc}/lib/libgcc_s.so.1 ]; then
79 mkdir -p $out/lib
80 cp ${stdenv.cc.cc}/lib/libgcc_s.so.1 $out/lib/libgcc_s.so.1
···153154 separateDebugInfo = true;
155156- meta.description = "The GNU C Library";
157- }
0
···14 ];
15in
1617+(callPackage ./common.nix { inherit stdenv; } {
18+ inherit withLinuxHeaders withGd profilingLibraries withLibcrypt;
19+ pname = "glibc" + lib.optionalString withGd "-gd";
20+}).overrideAttrs(previousAttrs: {
2122 # Note:
23 # Things you write here override, and do not add to,
24 # the values in `common.nix`.
25 # (For example, if you define `patches = [...]` here, it will
26+ # override the patches in `common.nix` -- so instead you should
27+ # write `patches = (previousAttrs.patches or []) ++ [ ... ]`.
2829 NIX_NO_SELF_RPATH = true;
30···75 # - dejagnu: during linux bootstrap tcl SIGSEGVs
76 # - clang-wrapper in cross-compilation
77 # Last attempt: https://github.com/NixOS/nixpkgs/pull/36948
78+ preInstall = lib.optionalString (stdenv.hostPlatform == stdenv.buildPlatform) ''
79 if [ -f ${stdenv.cc.cc}/lib/libgcc_s.so.1 ]; then
80 mkdir -p $out/lib
81 cp ${stdenv.cc.cc}/lib/libgcc_s.so.1 $out/lib/libgcc_s.so.1
···154155 separateDebugInfo = true;
156157+ meta = (previousAttrs.meta or {}) // { description = "The GNU C Library"; };
158+})
159+