gcc: minimal hacky fixup for our pkgsi686Linux.nix

This has been blocking nixos-unstable channel through i686 ISO:
Fixes #82435, closes #82436.
https://hydra.nixos.org/build/114512204
This commit is contained in:
Vladimír Čunát 2020-03-13 08:34:50 +01:00
parent 285a98eff4
commit b6ae8193ed
No known key found for this signature in database
GPG Key ID: E747DF1F9575A3AA

View File

@ -245,6 +245,12 @@ stdenv.mkDerivation ({
inherit (stdenv) is64bit;
# In this particular combination it stopped creating lib output at all.
# TODO: perhaps find a better fix? (ideally understand what's going on)
postFixup = if crossStageStatic && targetPlatform.isMusl && targetPlatform.isi686
then ''mkdir "$lib"''
else null;
meta = {
homepage = https://gcc.gnu.org/;
license = stdenv.lib.licenses.gpl3Plus; # runtime support libraries are typically LGPLv3+