libgccjit, gccgo*: remove a reflexive symlink

https://hydra.nixos.org/build/286689241/nixlog/7/tail
https://hydra.nixos.org/build/287154953/nixlog/1/tail

Feel free to improve this ;-)
This commit is contained in:
Vladimír Čunát
2025-01-31 09:19:51 +01:00
parent 97fc6f36d0
commit c3c1643d8a

View File

@@ -391,5 +391,13 @@ pipe ((callFile ./common/builder.nix {}) ({
(callPackage ./common/libgcc.nix { inherit version langC langCC langJit targetPlatform hostPlatform withoutTargetLibc enableShared libcCross; })
] ++ optionals atLeast11 [
(callPackage ./common/checksum.nix { inherit langC langCC; })
])
]
# This symlink points to itself, and we disallow that now by noBrokenSymlinks (#370750)
# TODO: find how exactly this happens and solve it in a better way.
++ optional langJit (pkg: pkg.overrideAttrs (attrs: {
postInstall = attrs.postInstall or "" + ''
rm "$out/lib/lib"
'';
}))
)