kythe: Add missing executable, fix rpath and symlink executables into bin (#50882)
* kythe: Add ncurses5 to rpath * kythe: Add entrystream executable * kythe: Symlink executables into bin/ folder
This commit is contained in:
parent
31de7743f8
commit
12a19002cc
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, binutils , fetchurl, glibc }:
|
{ stdenv, binutils , fetchurl, glibc, ncurses5 }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
version = "0.0.28";
|
version = "0.0.28";
|
||||||
@ -20,13 +20,14 @@ stdenv.mkDerivation rec {
|
|||||||
cd tools
|
cd tools
|
||||||
for exe in http_server \
|
for exe in http_server \
|
||||||
kythe read_entries triples verifier \
|
kythe read_entries triples verifier \
|
||||||
write_entries write_tables; do
|
write_entries write_tables entrystream; do
|
||||||
echo "Patching:" $exe
|
echo "Patching:" $exe
|
||||||
patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" $exe
|
patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" $exe
|
||||||
patchelf --set-rpath "${stdenv.cc.cc.lib}/lib64" $exe
|
patchelf --set-rpath "${stdenv.cc.cc.lib}/lib64:${ncurses5}/lib" $exe
|
||||||
done
|
done
|
||||||
cd ../
|
cd ../
|
||||||
cp -R ./ $out
|
cp -R ./ $out
|
||||||
|
ln -s $out/tools $out/bin
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user