Skip to content

Commit

Permalink
bazelisk-env: fix gcc linking against nixos libc
Browse files Browse the repository at this point in the history
  • Loading branch information
mkg20001 committed Sep 15, 2024
1 parent 5e9ca04 commit 8423001
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion pkgs/bazelisk-env/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ buildFHSUserEnv {
# crt1.o is already taken care of by buildFHSEnv.nix
(pkgs.callPackage ./gcc_multi_patched.nix {})

binutils
pkg-config
python3
coreutils-full # is not multi since takes forever to build and no cache available
Expand Down
3 changes: 3 additions & 0 deletions pkgs/bazelisk-env/gcc_multi_patched.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
gcc_multi,
stdenv,
bintools-unwrapped,
}:

stdenv.mkDerivation {
Expand All @@ -19,6 +20,8 @@ stdenv.mkDerivation {
find bin -type f -exec sed -i \
-e 's,expandResponseParams,params=("$@");true,g' \
{} +
rm bin/ld
ln -s ${bintools-unwrapped}/bin/ld bin/ld
'';

installPhase = ''
Expand Down

0 comments on commit 8423001

Please sign in to comment.