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 bb3bf98 commit 5e9ca04
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions os/bazelisk/clear.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

set -euxo pipefail

incus exec bazelisk -- rm -rf /home/test/.cache/bazel
4 changes: 4 additions & 0 deletions pkgs/bazelisk-env/gcc_multi_patched.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ stdenv.mkDerivation {
-e s,${gcc_multi.libc},,g \
-e s,${gcc_multi.libc.dev},/usr,g \
{} +
find bin -type f -exec sed -i \
-e 's,expandResponseParams,params=("$@");true,g' \
{} +
'';

installPhase = ''
Expand Down

0 comments on commit 5e9ca04

Please sign in to comment.