mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 04:02:55 +03:00
gcc-arm-embedded: add missing dependency on 'ncurses'
Fixes this: $ arm-none-eabi-gdb arm-none-eabi-gdb: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
This commit is contained in:
parent
8ed9a7106d
commit
52243083ca
@ -1,4 +1,4 @@
|
||||
{ stdenv, bzip2, patchelf, glibc, gcc, fetchurl, version, releaseType, sha256 }:
|
||||
{ stdenv, bzip2, patchelf, glibc, gcc, fetchurl, version, releaseType, sha256, ncurses }:
|
||||
with stdenv.lib;
|
||||
let
|
||||
versionParts = splitString "-" version; # 4.7 2013q3 20130916
|
||||
@ -31,7 +31,7 @@ stdenv.mkDerivation {
|
||||
for f in $(find $out); do
|
||||
if [ -f "$f" ] && patchelf "$f" 2> /dev/null; then
|
||||
patchelf --set-interpreter ${glibc}/lib/ld-linux.so.2 \
|
||||
--set-rpath $out/lib:${gcc}/lib \
|
||||
--set-rpath $out/lib:${gcc}/lib:${ncurses}/lib \
|
||||
"$f" || true
|
||||
fi
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user