Skip to content

Commit

Permalink
feat(libs): add library packages required by the toolchain
Browse files Browse the repository at this point in the history
Signed-off-by: Miguel Silva <[email protected]>
  • Loading branch information
miguelafsilva5 authored and Diogo21Costa committed Dec 5, 2024
1 parent db1516f commit 84fdfb6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pkgs/toolchains/riscv64-unknown-elf.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,12 @@
, fetchurl
, ncurses5
, python38
, libmpc
, rsync
, mpfr
, gmp
, zlib
, zstd
}:

stdenv.mkDerivation rec {
Expand Down Expand Up @@ -37,7 +42,7 @@ stdenv.mkDerivation rec {
find $out -type f | while read f; do
patchelf "$f" > /dev/null 2>&1 || continue
patchelf --set-interpreter $(cat ${stdenv.cc}/nix-support/dynamic-linker) "$f" || true
patchelf --set-rpath ${lib.makeLibraryPath [ "$out" stdenv.cc.cc ncurses5 python38 zlib]} "$f" || true
patchelf --set-rpath ${lib.makeLibraryPath [ "$out" stdenv.cc.cc ncurses5 python38 zlib libmpc mpfr gmp zstd]} "$f" || true
done
'';

Expand Down

0 comments on commit 84fdfb6

Please sign in to comment.