misc pkgs: Use $NIX_BINUTILS for when needed
Certain files are now only there instead of $NIX_CC (some are in both)
This commit is contained in:
parent
40e9b2a7e6
commit
3f30cffa55
@ -35,7 +35,7 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
patchelf \
|
patchelf \
|
||||||
--set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
--set-interpreter "$(cat $NIX_BINUTILS/nix-support/dynamic-linker)" \
|
||||||
--set-rpath "$out/opt/google/musicmanager:${stdenv.lib.makeLibraryPath [ readline ncurses stdenv.cc.libc.out qt48 stdenv.cc.cc libidn expat flac libvorbis ]}" opt/google/musicmanager/MusicManager
|
--set-rpath "$out/opt/google/musicmanager:${stdenv.lib.makeLibraryPath [ readline ncurses stdenv.cc.libc.out qt48 stdenv.cc.cc libidn expat flac libvorbis ]}" opt/google/musicmanager/MusicManager
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
@ -61,7 +61,7 @@ stdenv.mkDerivation {
|
|||||||
cp -r ./usr/share $out
|
cp -r ./usr/share $out
|
||||||
cp -r ./usr/bin $out
|
cp -r ./usr/bin $out
|
||||||
|
|
||||||
patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
patchelf --set-interpreter "$(cat $NIX_BINUTILS/nix-support/dynamic-linker)" \
|
||||||
"$out/share/google-play-music-desktop-player/Google Play Music Desktop Player"
|
"$out/share/google-play-music-desktop-player/Google Play Music Desktop Player"
|
||||||
|
|
||||||
wrapProgram $out/bin/google-play-music-desktop-player \
|
wrapProgram $out/bin/google-play-music-desktop-player \
|
||||||
|
@ -49,7 +49,7 @@ stdenv.mkDerivation rec {
|
|||||||
mkdir $out/bin
|
mkdir $out/bin
|
||||||
ln -s $out/renoise $out/bin/renoise
|
ln -s $out/renoise $out/bin/renoise
|
||||||
|
|
||||||
patchelf --set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) --set-rpath $out/lib $out/renoise
|
patchelf --set-interpreter $(cat $NIX_BINUTILS/nix-support/dynamic-linker) --set-rpath $out/lib $out/renoise
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
@ -89,7 +89,7 @@ stdenv.mkDerivation {
|
|||||||
rpath="$out/share/spotify:$libdir"
|
rpath="$out/share/spotify:$libdir"
|
||||||
|
|
||||||
patchelf \
|
patchelf \
|
||||||
--interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
--interpreter "$(cat $NIX_BINUTILS/nix-support/dynamic-linker)" \
|
||||||
--set-rpath $rpath $out/share/spotify/spotify
|
--set-rpath $rpath $out/share/spotify/spotify
|
||||||
|
|
||||||
librarypath="${stdenv.lib.makeLibraryPath deps}:$libdir"
|
librarypath="${stdenv.lib.makeLibraryPath deps}:$libdir"
|
||||||
|
@ -25,10 +25,10 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
fixupPhase
|
fixupPhase
|
||||||
|
|
||||||
patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
patchelf --set-interpreter "$(cat $NIX_BINUTILS/nix-support/dynamic-linker)" \
|
||||||
--set-rpath "${atomEnv.libPath}:$out/share/atom" \
|
--set-rpath "${atomEnv.libPath}:$out/share/atom" \
|
||||||
$out/share/atom/atom
|
$out/share/atom/atom
|
||||||
patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
patchelf --set-interpreter "$(cat $NIX_BINUTILS/nix-support/dynamic-linker)" \
|
||||||
--set-rpath "${atomEnv.libPath}" \
|
--set-rpath "${atomEnv.libPath}" \
|
||||||
$out/share/atom/resources/app/apm/bin/node
|
$out/share/atom/resources/app/apm/bin/node
|
||||||
|
|
||||||
|
@ -36,11 +36,11 @@ stdenv.mkDerivation rec {
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
postFixup = ''
|
postFixup = ''
|
||||||
patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
patchelf --set-interpreter "$(cat $NIX_BINUTILS/nix-support/dynamic-linker)" \
|
||||||
--set-rpath "${bracketsLibs}:$out/opt/brackets/lib" \
|
--set-rpath "${bracketsLibs}:$out/opt/brackets/lib" \
|
||||||
$out/opt/brackets/Brackets
|
$out/opt/brackets/Brackets
|
||||||
|
|
||||||
patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
patchelf --set-interpreter "$(cat $NIX_BINUTILS/nix-support/dynamic-linker)" \
|
||||||
--set-rpath "${bracketsLibs}" \
|
--set-rpath "${bracketsLibs}" \
|
||||||
$out/opt/brackets/Brackets-node
|
$out/opt/brackets/Brackets-node
|
||||||
|
|
||||||
|
@ -35,7 +35,7 @@ let
|
|||||||
ln -s ${cmake} bin/cmake
|
ln -s ${cmake} bin/cmake
|
||||||
|
|
||||||
lldbLibPath=$out/clion-${version}/bin/lldb/lib
|
lldbLibPath=$out/clion-${version}/bin/lldb/lib
|
||||||
interp="$(cat $NIX_CC/nix-support/dynamic-linker)"
|
interp="$(cat $NIX_BINUTILS/nix-support/dynamic-linker)"
|
||||||
ln -s ${ncurses.out}/lib/libncurses.so $lldbLibPath/libtinfo.so.5
|
ln -s ${ncurses.out}/lib/libncurses.so $lldbLibPath/libtinfo.so.5
|
||||||
|
|
||||||
patchelf --set-interpreter $interp \
|
patchelf --set-interpreter $interp \
|
||||||
|
@ -50,31 +50,31 @@ in
|
|||||||
postFixup = lib.optionalString (stdenv.system == "i686-linux" || stdenv.system == "x86_64-linux") ''
|
postFixup = lib.optionalString (stdenv.system == "i686-linux" || stdenv.system == "x86_64-linux") ''
|
||||||
# Patch Binaries
|
# Patch Binaries
|
||||||
patchelf \
|
patchelf \
|
||||||
--set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
--set-interpreter "$(cat $NIX_BINUTILS/nix-support/dynamic-linker)" \
|
||||||
--set-rpath "$out:${atomEnv.libPath}" \
|
--set-rpath "$out:${atomEnv.libPath}" \
|
||||||
$out/kodestudio
|
$out/kodestudio
|
||||||
patchelf \
|
patchelf \
|
||||||
--set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
--set-interpreter "$(cat $NIX_BINUTILS/nix-support/dynamic-linker)" \
|
||||||
--set-rpath ".:${stdenv.cc.libc}/lib:${xorg.libXinerama}/lib:${xorg.libX11}/lib:${alsaLib}/lib:${mesa}/lib:${openssl.out}/lib" \
|
--set-rpath ".:${stdenv.cc.libc}/lib:${xorg.libXinerama}/lib:${xorg.libX11}/lib:${alsaLib}/lib:${mesa}/lib:${openssl.out}/lib" \
|
||||||
$out/resources/app/extensions/krom/Krom/linux/Krom
|
$out/resources/app/extensions/krom/Krom/linux/Krom
|
||||||
patchelf \
|
patchelf \
|
||||||
--set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
--set-interpreter "$(cat $NIX_BINUTILS/nix-support/dynamic-linker)" \
|
||||||
--set-rpath ".:${stdenv.cc.libc}/lib" \
|
--set-rpath ".:${stdenv.cc.libc}/lib" \
|
||||||
$out/resources/app/extensions/kha/Kha/Kore/Tools/krafix/krafix-linux64
|
$out/resources/app/extensions/kha/Kha/Kore/Tools/krafix/krafix-linux64
|
||||||
patchelf \
|
patchelf \
|
||||||
--set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
--set-interpreter "$(cat $NIX_BINUTILS/nix-support/dynamic-linker)" \
|
||||||
--set-rpath ".:${stdenv.cc.libc}/lib" \
|
--set-rpath ".:${stdenv.cc.libc}/lib" \
|
||||||
$out/resources/app/extensions/kha/Kha/Kore/Tools/kraffiti/kraffiti-linux64
|
$out/resources/app/extensions/kha/Kha/Kore/Tools/kraffiti/kraffiti-linux64
|
||||||
patchelf \
|
patchelf \
|
||||||
--set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
--set-interpreter "$(cat $NIX_BINUTILS/nix-support/dynamic-linker)" \
|
||||||
--set-rpath ".:${stdenv.cc.libc}/lib:${stdenv.cc.cc.lib}/lib" \
|
--set-rpath ".:${stdenv.cc.libc}/lib:${stdenv.cc.cc.lib}/lib" \
|
||||||
$out/resources/app/extensions/kha/Kha/Tools/kravur/kravur-linux64
|
$out/resources/app/extensions/kha/Kha/Tools/kravur/kravur-linux64
|
||||||
patchelf \
|
patchelf \
|
||||||
--set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
--set-interpreter "$(cat $NIX_BINUTILS/nix-support/dynamic-linker)" \
|
||||||
--set-rpath ".:${stdenv.cc.libc}/lib:${zlib}/lib" \
|
--set-rpath ".:${stdenv.cc.libc}/lib:${zlib}/lib" \
|
||||||
$out/resources/app/extensions/kha/Kha/Tools/haxe/haxe-linux64
|
$out/resources/app/extensions/kha/Kha/Tools/haxe/haxe-linux64
|
||||||
patchelf \
|
patchelf \
|
||||||
--set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
--set-interpreter "$(cat $NIX_BINUTILS/nix-support/dynamic-linker)" \
|
||||||
--set-rpath ".:${stdenv.cc.libc}/lib:${libvorbis}/lib:${libogg}/lib:${flac.out}/lib" \
|
--set-rpath ".:${stdenv.cc.libc}/lib:${libvorbis}/lib:${libogg}/lib:${flac.out}/lib" \
|
||||||
$out/resources/app/extensions/kha/Kha/Tools/oggenc/oggenc-linux64
|
$out/resources/app/extensions/kha/Kha/Tools/oggenc/oggenc-linux64
|
||||||
|
|
||||||
|
@ -39,7 +39,7 @@ stdenv.mkDerivation rec {
|
|||||||
mv ./${name}-linux/* $out/share/LightTable
|
mv ./${name}-linux/* $out/share/LightTable
|
||||||
|
|
||||||
patchelf \
|
patchelf \
|
||||||
--interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
--interpreter "$(cat $NIX_BINUTILS/nix-support/dynamic-linker)" \
|
||||||
--set-rpath ${libPath}:${libPath}/lib64:$out/share/LightTable \
|
--set-rpath ${libPath}:${libPath}/lib64:$out/share/LightTable \
|
||||||
$out/share/LightTable/LightTable
|
$out/share/LightTable/LightTable
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
echo ${libPath}
|
echo ${libPath}
|
||||||
patchelf \
|
patchelf \
|
||||||
--interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
--interpreter "$(cat $NIX_BINUTILS/nix-support/dynamic-linker)" \
|
||||||
--set-rpath ${libPath}:${stdenv.cc.cc.lib}/lib${stdenv.lib.optionalString stdenv.is64bit "64"} \
|
--set-rpath ${libPath}:${stdenv.cc.cc.lib}/lib${stdenv.lib.optionalString stdenv.is64bit "64"} \
|
||||||
$out/sublime/sublime_text
|
$out/sublime/sublime_text
|
||||||
|
|
||||||
|
@ -50,7 +50,7 @@ in let
|
|||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
for i in sublime_text plugin_host crash_reporter; do
|
for i in sublime_text plugin_host crash_reporter; do
|
||||||
patchelf \
|
patchelf \
|
||||||
--interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
--interpreter "$(cat $NIX_BINUTILS/nix-support/dynamic-linker)" \
|
||||||
--set-rpath ${libPath}:${stdenv.cc.cc.lib}/lib${stdenv.lib.optionalString stdenv.is64bit "64"} \
|
--set-rpath ${libPath}:${stdenv.cc.cc.lib}/lib${stdenv.lib.optionalString stdenv.is64bit "64"} \
|
||||||
$i
|
$i
|
||||||
done
|
done
|
||||||
|
@ -66,7 +66,7 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
postFixup = ''
|
postFixup = ''
|
||||||
patchelf \
|
patchelf \
|
||||||
--set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
--set-interpreter "$(cat $NIX_BINUTILS/nix-support/dynamic-linker)" \
|
||||||
--set-rpath "$out/share/typora:${rpath}" "$out/share/typora/Typora"
|
--set-rpath "$out/share/typora:${rpath}" "$out/share/typora/Typora"
|
||||||
|
|
||||||
ln -s "$out/share/typora/Typora" "$out/bin/typora"
|
ln -s "$out/share/typora/Typora" "$out/bin/typora"
|
||||||
|
@ -69,7 +69,7 @@ in
|
|||||||
|
|
||||||
postFixup = lib.optionalString (stdenv.system == "i686-linux" || stdenv.system == "x86_64-linux") ''
|
postFixup = lib.optionalString (stdenv.system == "i686-linux" || stdenv.system == "x86_64-linux") ''
|
||||||
patchelf \
|
patchelf \
|
||||||
--set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
--set-interpreter "$(cat $NIX_BINUTILS/nix-support/dynamic-linker)" \
|
||||||
--set-rpath "${rpath}" \
|
--set-rpath "${rpath}" \
|
||||||
$out/lib/vscode/code
|
$out/lib/vscode/code
|
||||||
'';
|
'';
|
||||||
|
@ -26,7 +26,7 @@ stdenv.mkDerivation {
|
|||||||
mkdir $out/bin
|
mkdir $out/bin
|
||||||
for exe in DraftSight dsHttpApiController dsHttpApiService FxCrashRptApp HelpGuide; do
|
for exe in DraftSight dsHttpApiController dsHttpApiService FxCrashRptApp HelpGuide; do
|
||||||
echo "Patching $exe..."
|
echo "Patching $exe..."
|
||||||
patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
patchelf --interpreter "$(cat $NIX_BINUTILS/nix-support/dynamic-linker)" \
|
||||||
--set-rpath $libPath:\$ORIGIN/../Libraries \
|
--set-rpath $libPath:\$ORIGIN/../Libraries \
|
||||||
$out/draftsight/opt/dassault-systemes/DraftSight/Linux/$exe
|
$out/draftsight/opt/dassault-systemes/DraftSight/Linux/$exe
|
||||||
makeWrapper $out/draftsight/opt/dassault-systemes/DraftSight/Linux/$exe \
|
makeWrapper $out/draftsight/opt/dassault-systemes/DraftSight/Linux/$exe \
|
||||||
|
@ -17,7 +17,7 @@ rm $p/Reader/intellinux/plug_ins/PPKLite.api
|
|||||||
# More pointless files.
|
# More pointless files.
|
||||||
rm $p/bin/UNINSTALL
|
rm $p/bin/UNINSTALL
|
||||||
|
|
||||||
patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
patchelf --interpreter "$(cat $NIX_BINUTILS/nix-support/dynamic-linker)" \
|
||||||
--set-rpath $libPath \
|
--set-rpath $libPath \
|
||||||
$p/Reader/intellinux/bin/acroread
|
$p/Reader/intellinux/bin/acroread
|
||||||
|
|
||||||
|
@ -58,7 +58,7 @@ stdenv.mkDerivation rec {
|
|||||||
rm $out/bin/google-earth $out/opt/google/earth/free/google-earth
|
rm $out/bin/google-earth $out/opt/google/earth/free/google-earth
|
||||||
ln -s $out/opt/google/earth/free/googleearth $out/bin/google-earth
|
ln -s $out/opt/google/earth/free/googleearth $out/bin/google-earth
|
||||||
|
|
||||||
patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
patchelf --interpreter "$(cat $NIX_BINUTILS/nix-support/dynamic-linker)" \
|
||||||
--set-rpath "${fullPath}:\$ORIGIN" \
|
--set-rpath "${fullPath}:\$ORIGIN" \
|
||||||
$out/opt/google/earth/free/googleearth-bin
|
$out/opt/google/earth/free/googleearth-bin
|
||||||
|
|
||||||
|
@ -67,7 +67,7 @@ stdenv.mkDerivation rec {
|
|||||||
echo "export QT_XKB_CONFIG_ROOT="${xkeyboardconfig}/share/X11/xkb"" >> $out/houdini/sbin/app_init.sh
|
echo "export QT_XKB_CONFIG_ROOT="${xkeyboardconfig}/share/X11/xkb"" >> $out/houdini/sbin/app_init.sh
|
||||||
'';
|
'';
|
||||||
postFixup = ''
|
postFixup = ''
|
||||||
INTERPRETER="$(cat "$NIX_CC"/nix-support/dynamic-linker)"
|
INTERPRETER="$(cat "$NIX_BINUTILS/nix-support/dynamic-linker")"
|
||||||
for BIN in $(find $out/bin -type f -executable); do
|
for BIN in $(find $out/bin -type f -executable); do
|
||||||
if patchelf $BIN 2>/dev/null ; then
|
if patchelf $BIN 2>/dev/null ; then
|
||||||
echo "Patching ELF $BIN"
|
echo "Patching ELF $BIN"
|
||||||
|
@ -27,7 +27,7 @@ stdenv.mkDerivation rec {
|
|||||||
mkdir -p "$out/bin"
|
mkdir -p "$out/bin"
|
||||||
mv opt "$out/"
|
mv opt "$out/"
|
||||||
ln -s "$out/opt/Hyper/hyper" "$out/bin/hyper"
|
ln -s "$out/opt/Hyper/hyper" "$out/bin/hyper"
|
||||||
patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" --set-rpath "${libPath}:\$ORIGIN" "$out/opt/Hyper/hyper"
|
patchelf --set-interpreter "$(cat $NIX_BINUTILS/nix-support/dynamic-linker)" --set-rpath "${libPath}:\$ORIGIN" "$out/opt/Hyper/hyper"
|
||||||
mv usr/* "$out/"
|
mv usr/* "$out/"
|
||||||
'';
|
'';
|
||||||
dontPatchELF = true;
|
dontPatchELF = true;
|
||||||
|
@ -17,8 +17,8 @@ stdenv.mkDerivation rec {
|
|||||||
buildPhase = with xorg; ''
|
buildPhase = with xorg; ''
|
||||||
patchelf --set-rpath "${stdenv.lib.makeLibraryPath [ libX11 libXext libXrender libXtst libXi ]}" ./jre/lib/amd64/xawt/libmawt.so
|
patchelf --set-rpath "${stdenv.lib.makeLibraryPath [ libX11 libXext libXrender libXtst libXi ]}" ./jre/lib/amd64/xawt/libmawt.so
|
||||||
patchelf --set-rpath "${gcc.cc}/lib" ./libiKVM64.so
|
patchelf --set-rpath "${gcc.cc}/lib" ./libiKVM64.so
|
||||||
patchelf --set-rpath "${stdenv.lib.makeLibraryPath [ libXcursor libX11 libXext libXrender libXtst libXi ]}" --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" ./jre/bin/javaws
|
patchelf --set-rpath "${stdenv.lib.makeLibraryPath [ libXcursor libX11 libXext libXrender libXtst libXi ]}" --set-interpreter "$(cat $NIX_BINUTILS/nix-support/dynamic-linker)" ./jre/bin/javaws
|
||||||
patchelf --set-rpath "${gcc.cc}/lib:$out/jre/lib/amd64/jli" --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" ./jre/bin/java
|
patchelf --set-rpath "${gcc.cc}/lib:$out/jre/lib/amd64/jli" --set-interpreter "$(cat $NIX_BINUTILS/nix-support/dynamic-linker)" ./jre/bin/java
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
@ -30,7 +30,7 @@ stdenv.mkDerivation rec {
|
|||||||
mkdir -p $out/bin $out/libexec
|
mkdir -p $out/bin $out/libexec
|
||||||
|
|
||||||
patchelf \
|
patchelf \
|
||||||
--interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
--interpreter "$(cat $NIX_BINUTILS/nix-support/dynamic-linker)" \
|
||||||
--set-rpath ${libPath} \
|
--set-rpath ${libPath} \
|
||||||
./q/l32/q
|
./q/l32/q
|
||||||
mv ./q/l32/q $out/libexec/q
|
mv ./q/l32/q $out/libexec/q
|
||||||
|
@ -92,7 +92,7 @@ stdenv.mkDerivation rec {
|
|||||||
postInstall = ''
|
postInstall = ''
|
||||||
cp -r src/dependencies/xulrunner $out/lib/kiwix
|
cp -r src/dependencies/xulrunner $out/lib/kiwix
|
||||||
|
|
||||||
patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" $out/lib/kiwix/xulrunner/xulrunner
|
patchelf --set-interpreter "$(cat $NIX_BINUTILS/nix-support/dynamic-linker)" $out/lib/kiwix/xulrunner/xulrunner
|
||||||
|
|
||||||
rm $out/bin/kiwix
|
rm $out/bin/kiwix
|
||||||
makeWrapper $out/lib/kiwix/kiwix-launcher $out/bin/kiwix \
|
makeWrapper $out/lib/kiwix/kiwix-launcher $out/bin/kiwix \
|
||||||
|
@ -33,7 +33,7 @@ stdenv.mkDerivation {
|
|||||||
cp usr/bin/rescuetime $out/bin
|
cp usr/bin/rescuetime $out/bin
|
||||||
|
|
||||||
${patchelf}/bin/patchelf \
|
${patchelf}/bin/patchelf \
|
||||||
--interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
--interpreter "$(cat $NIX_BINUTILS/nix-support/dynamic-linker)" \
|
||||||
$out/bin/rescuetime
|
$out/bin/rescuetime
|
||||||
|
|
||||||
wrapProgram $out/bin/rescuetime \
|
wrapProgram $out/bin/rescuetime \
|
||||||
|
@ -47,7 +47,7 @@
|
|||||||
|
|
||||||
fixupPhase
|
fixupPhase
|
||||||
|
|
||||||
patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
patchelf --set-interpreter "$(cat $NIX_BINUTILS/nix-support/dynamic-linker)" \
|
||||||
--set-rpath "${libPath}:$out/share/simplenote" \
|
--set-rpath "${libPath}:$out/share/simplenote" \
|
||||||
$out/share/simplenote/simplenote
|
$out/share/simplenote/simplenote
|
||||||
|
|
||||||
|
@ -27,7 +27,7 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
install -D btsync "$out/bin/btsync"
|
install -D btsync "$out/bin/btsync"
|
||||||
patchelf --interpreter "$(< $NIX_CC/nix-support/dynamic-linker)" --set-rpath ${libPath} "$out/bin/btsync"
|
patchelf --interpreter "$(< $NIX_BINUTILS/nix-support/dynamic-linker)" --set-rpath ${libPath} "$out/bin/btsync"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
@ -152,7 +152,7 @@ stdenv.mkDerivation {
|
|||||||
updater crashreporter webapprt-stub
|
updater crashreporter webapprt-stub
|
||||||
do
|
do
|
||||||
if [ -e "$out/usr/lib/firefox-bin-${version}/$executable" ]; then
|
if [ -e "$out/usr/lib/firefox-bin-${version}/$executable" ]; then
|
||||||
patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
patchelf --interpreter "$(cat $NIX_BINUTILS/nix-support/dynamic-linker)" \
|
||||||
"$out/usr/lib/firefox-bin-${version}/$executable"
|
"$out/usr/lib/firefox-bin-${version}/$executable"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
@ -130,7 +130,7 @@ in stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
for elf in $out/share/google/$appname/{chrome,chrome-sandbox,nacl_helper}; do
|
for elf in $out/share/google/$appname/{chrome,chrome-sandbox,nacl_helper}; do
|
||||||
patchelf --set-rpath $rpath $elf
|
patchelf --set-rpath $rpath $elf
|
||||||
patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" $elf
|
patchelf --set-interpreter "$(cat $NIX_BINUTILS/nix-support/dynamic-linker)" $elf
|
||||||
done
|
done
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
@ -118,7 +118,7 @@ stdenv.mkDerivation rec {
|
|||||||
$out/lib${lib_suffix}/kde4/kcm_adobe_flash_player.so
|
$out/lib${lib_suffix}/kde4/kcm_adobe_flash_player.so
|
||||||
|
|
||||||
patchelf \
|
patchelf \
|
||||||
--set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) \
|
--set-interpreter $(cat $NIX_BINUTILS/nix-support/dynamic-linker) \
|
||||||
--set-rpath "$rpath" \
|
--set-rpath "$rpath" \
|
||||||
$out/bin/flash-player-properties
|
$out/bin/flash-player-properties
|
||||||
'';
|
'';
|
||||||
|
@ -84,7 +84,7 @@ stdenv.mkDerivation rec {
|
|||||||
cp -pv flashplayer${lib.optionalString debug "debugger"} $out/bin
|
cp -pv flashplayer${lib.optionalString debug "debugger"} $out/bin
|
||||||
|
|
||||||
patchelf \
|
patchelf \
|
||||||
--set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) \
|
--set-interpreter $(cat $NIX_BINUTILS/nix-support/dynamic-linker) \
|
||||||
--set-rpath "$rpath" \
|
--set-rpath "$rpath" \
|
||||||
$out/bin/flashplayer${lib.optionalString debug "debugger"}
|
$out/bin/flashplayer${lib.optionalString debug "debugger"}
|
||||||
'';
|
'';
|
||||||
|
@ -88,7 +88,7 @@ stdenv.mkDerivation rec {
|
|||||||
cp -prd opt/google/talkplugin/{data,GoogleTalkPlugin,locale,remoting24x24.png,windowpicker.glade} $out/libexec/google/talkplugin/
|
cp -prd opt/google/talkplugin/{data,GoogleTalkPlugin,locale,remoting24x24.png,windowpicker.glade} $out/libexec/google/talkplugin/
|
||||||
|
|
||||||
patchelf \
|
patchelf \
|
||||||
--set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
--set-interpreter "$(cat $NIX_BINUTILS/nix-support/dynamic-linker)" \
|
||||||
--set-rpath "${rpathProgram}:${stdenv.cc.cc.lib}/lib64" \
|
--set-rpath "${rpathProgram}:${stdenv.cc.cc.lib}/lib64" \
|
||||||
$out/libexec/google/talkplugin/GoogleTalkPlugin
|
$out/libexec/google/talkplugin/GoogleTalkPlugin
|
||||||
|
|
||||||
|
@ -114,7 +114,7 @@ in stdenv.mkDerivation {
|
|||||||
| while read f
|
| while read f
|
||||||
do
|
do
|
||||||
patchelf \
|
patchelf \
|
||||||
--set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
--set-interpreter "$(cat $NIX_BINUTILS/nix-support/dynamic-linker)" \
|
||||||
--set-rpath "$out/lib:${rpath}" \
|
--set-rpath "$out/lib:${rpath}" \
|
||||||
"$f"
|
"$f"
|
||||||
done
|
done
|
||||||
|
@ -129,7 +129,7 @@ stdenv.mkDerivation rec {
|
|||||||
buildCommand = ''
|
buildCommand = ''
|
||||||
# For convenience ...
|
# For convenience ...
|
||||||
TBB_IN_STORE=$out/share/tor-browser
|
TBB_IN_STORE=$out/share/tor-browser
|
||||||
interp=$(< $NIX_CC/nix-support/dynamic-linker)
|
interp=$(< $NIX_BINUTILS/nix-support/dynamic-linker)
|
||||||
|
|
||||||
# Unpack & enter
|
# Unpack & enter
|
||||||
mkdir -p "$TBB_IN_STORE"
|
mkdir -p "$TBB_IN_STORE"
|
||||||
|
@ -43,7 +43,7 @@ stdenv.mkDerivation rec {
|
|||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
echo "Patching Vivaldi binaries"
|
echo "Patching Vivaldi binaries"
|
||||||
patchelf \
|
patchelf \
|
||||||
--set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
--set-interpreter "$(cat $NIX_BINUTILS/nix-support/dynamic-linker)" \
|
||||||
--set-rpath "${libPath}" \
|
--set-rpath "${libPath}" \
|
||||||
opt/vivaldi/vivaldi-bin
|
opt/vivaldi/vivaldi-bin
|
||||||
'' + stdenv.lib.optionalString proprietaryCodecs ''
|
'' + stdenv.lib.optionalString proprietaryCodecs ''
|
||||||
|
@ -16,7 +16,7 @@ stdenv.mkDerivation rec {
|
|||||||
sed -i $n -e "s|#!/usr/bin/env bash|#! ${bash}/bin/bash|"
|
sed -i $n -e "s|#!/usr/bin/env bash|#! ${bash}/bin/bash|"
|
||||||
done
|
done
|
||||||
'' + stdenv.lib.optionalString (!stdenv.isDarwin) ''
|
'' + stdenv.lib.optionalString (!stdenv.isDarwin) ''
|
||||||
patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" bin/container-executor;
|
patchelf --set-interpreter "$(cat $NIX_BINUTILS/nix-support/dynamic-linker)" bin/container-executor;
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
@ -108,7 +108,7 @@ in mkDerivation {
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
preFixup = ''
|
preFixup = ''
|
||||||
INTERP=$(cat $NIX_CC/nix-support/dynamic-linker)
|
INTERP=$(cat $NIX_BINUTILS/nix-support/dynamic-linker)
|
||||||
RPATH="${ldpath}:$out/${appdir}"
|
RPATH="${ldpath}:$out/${appdir}"
|
||||||
getType='s/ *Type: *\([A-Z]*\) (.*/\1/'
|
getType='s/ *Type: *\([A-Z]*\) (.*/\1/'
|
||||||
find "$out/${appdir}" -type f -print | while read obj; do
|
find "$out/${appdir}" -type f -print | while read obj; do
|
||||||
|
@ -30,7 +30,7 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
# Copying how adobe-reader does it,
|
# Copying how adobe-reader does it,
|
||||||
# see pkgs/applications/misc/adobe-reader/builder.sh
|
# see pkgs/applications/misc/adobe-reader/builder.sh
|
||||||
patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
patchelf --set-interpreter "$(cat $NIX_BINUTILS/nix-support/dynamic-linker)" \
|
||||||
--set-rpath "$out/opt/discord:$libPath" \
|
--set-rpath "$out/opt/discord:$libPath" \
|
||||||
$out/opt/discord/Discord
|
$out/opt/discord/Discord
|
||||||
|
|
||||||
|
@ -44,7 +44,7 @@ in stdenv.mkDerivation rec {
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" Franz
|
patchelf --set-interpreter "$(cat $NIX_BINUTILS/nix-support/dynamic-linker)" Franz
|
||||||
patchelf --set-rpath "$out/opt/franz:${stdenv.lib.makeLibraryPath deps}" Franz
|
patchelf --set-rpath "$out/opt/franz:${stdenv.lib.makeLibraryPath deps}" Franz
|
||||||
|
|
||||||
mkdir -p $out/bin $out/opt/franz
|
mkdir -p $out/bin $out/opt/franz
|
||||||
|
@ -68,7 +68,7 @@ stdenv.mkDerivation {
|
|||||||
mv usr/share $out
|
mv usr/share $out
|
||||||
|
|
||||||
for file in $(find $d -type f); do
|
for file in $(find $d -type f); do
|
||||||
patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" $file || true
|
patchelf --set-interpreter "$(cat $NIX_BINUTILS/nix-support/dynamic-linker)" $file || true
|
||||||
patchelf --set-rpath ${rpath}:$out/libexec/hipchat/lib:\$ORIGIN $file || true
|
patchelf --set-rpath ${rpath}:$out/libexec/hipchat/lib:\$ORIGIN $file || true
|
||||||
done
|
done
|
||||||
|
|
||||||
|
@ -72,7 +72,7 @@ in stdenv.mkDerivation {
|
|||||||
|
|
||||||
# patch the binaries
|
# patch the binaries
|
||||||
for file in $(find $out -type f \( -perm /0111 -o -name \*.so\* \) ); do
|
for file in $(find $out -type f \( -perm /0111 -o -name \*.so\* \) ); do
|
||||||
patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" "$file" || true
|
patchelf --set-interpreter "$(cat $NIX_BINUTILS/nix-support/dynamic-linker)" "$file" || true
|
||||||
patchelf --set-rpath ${rpath}:$out/libexec $file || true
|
patchelf --set-rpath ${rpath}:$out/libexec $file || true
|
||||||
done
|
done
|
||||||
|
|
||||||
|
@ -44,7 +44,7 @@ in stdenv.mkDerivation rec {
|
|||||||
dontPatchELF = true;
|
dontPatchELF = true;
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" rambox
|
patchelf --set-interpreter "$(cat $NIX_BINUTILS/nix-support/dynamic-linker)" rambox
|
||||||
patchelf --set-rpath "$out/opt/rambox:${stdenv.lib.makeLibraryPath deps}" rambox
|
patchelf --set-rpath "$out/opt/rambox:${stdenv.lib.makeLibraryPath deps}" rambox
|
||||||
|
|
||||||
mkdir -p $out/bin $out/opt/rambox
|
mkdir -p $out/bin $out/opt/rambox
|
||||||
|
@ -78,7 +78,7 @@ in stdenv.mkDerivation {
|
|||||||
|
|
||||||
postFixup = ''
|
postFixup = ''
|
||||||
patchelf \
|
patchelf \
|
||||||
--set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
--set-interpreter "$(cat $NIX_BINUTILS/nix-support/dynamic-linker)" \
|
||||||
--set-rpath "$out/share/skypeforlinux:${rpath}" "$out/share/skypeforlinux/skypeforlinux"
|
--set-rpath "$out/share/skypeforlinux:${rpath}" "$out/share/skypeforlinux/skypeforlinux"
|
||||||
|
|
||||||
ln -s "$out/share/skypeforlinux/skypeforlinux" "$out/bin/skypeforlinux"
|
ln -s "$out/share/skypeforlinux/skypeforlinux" "$out/bin/skypeforlinux"
|
||||||
|
@ -68,7 +68,7 @@ in stdenv.mkDerivation {
|
|||||||
chmod -R g-w $out
|
chmod -R g-w $out
|
||||||
|
|
||||||
for file in $(find $out -type f \( -perm /0111 -o -name \*.so\* \) ); do
|
for file in $(find $out -type f \( -perm /0111 -o -name \*.so\* \) ); do
|
||||||
patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" "$file" || true
|
patchelf --set-interpreter "$(cat $NIX_BINUTILS/nix-support/dynamic-linker)" "$file" || true
|
||||||
patchelf --set-rpath ${rpath}:$out/lib/slack $file || true
|
patchelf --set-rpath ${rpath}:$out/lib/slack $file || true
|
||||||
done
|
done
|
||||||
|
|
||||||
|
@ -62,7 +62,7 @@ stdenv.mkDerivation rec {
|
|||||||
mv ts3client_linux_${arch} ts3client
|
mv ts3client_linux_${arch} ts3client
|
||||||
echo "patching ts3client..."
|
echo "patching ts3client..."
|
||||||
patchelf \
|
patchelf \
|
||||||
--interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
--interpreter "$(cat $NIX_BINUTILS/nix-support/dynamic-linker)" \
|
||||||
--set-rpath ${stdenv.lib.makeLibraryPath deps}:$(cat $NIX_CC/nix-support/orig-cc)/${libDir} \
|
--set-rpath ${stdenv.lib.makeLibraryPath deps}:$(cat $NIX_CC/nix-support/orig-cc)/${libDir} \
|
||||||
--force-rpath \
|
--force-rpath \
|
||||||
ts3client
|
ts3client
|
||||||
|
@ -25,13 +25,13 @@ stdenv.mkDerivation {
|
|||||||
''
|
''
|
||||||
echo "patching ts3server"
|
echo "patching ts3server"
|
||||||
patchelf \
|
patchelf \
|
||||||
--interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
--interpreter "$(cat $NIX_BINUTILS/nix-support/dynamic-linker)" \
|
||||||
--set-rpath $(cat $NIX_CC/nix-support/orig-cc)/${libDir} \
|
--set-rpath $(cat $NIX_CC/nix-support/orig-cc)/${libDir} \
|
||||||
--force-rpath \
|
--force-rpath \
|
||||||
ts3server
|
ts3server
|
||||||
cp tsdns/tsdnsserver tsdnsserver
|
cp tsdns/tsdnsserver tsdnsserver
|
||||||
patchelf \
|
patchelf \
|
||||||
--interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
--interpreter "$(cat $NIX_BINUTILS/nix-support/dynamic-linker)" \
|
||||||
--set-rpath $(cat $NIX_CC/nix-support/orig-cc)/${libDir} \
|
--set-rpath $(cat $NIX_CC/nix-support/orig-cc)/${libDir} \
|
||||||
--force-rpath \
|
--force-rpath \
|
||||||
tsdnsserver
|
tsdnsserver
|
||||||
|
@ -72,7 +72,7 @@ stdenv.mkDerivation rec {
|
|||||||
chmod -R g-w $out
|
chmod -R g-w $out
|
||||||
|
|
||||||
for file in $(find $out -type f \( -perm /0111 -o -name \*.so\* \) ); do
|
for file in $(find $out -type f \( -perm /0111 -o -name \*.so\* \) ); do
|
||||||
patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" "$file" || true
|
patchelf --set-interpreter "$(cat $NIX_BINUTILS/nix-support/dynamic-linker)" "$file" || true
|
||||||
patchelf --set-rpath $libPath:$out/opt/viber/lib $file || true
|
patchelf --set-rpath $libPath:$out/opt/viber/lib $file || true
|
||||||
done
|
done
|
||||||
|
|
||||||
|
@ -65,10 +65,10 @@ in stdenv.mkDerivation {
|
|||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
cp -ar * $packagePath
|
cp -ar * $packagePath
|
||||||
|
|
||||||
patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" $packagePath/zoom
|
patchelf --set-interpreter "$(cat $NIX_BINUTILS/nix-support/dynamic-linker)" $packagePath/zoom
|
||||||
patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" $packagePath/QtWebEngineProcess
|
patchelf --set-interpreter "$(cat $NIX_BINUTILS/nix-support/dynamic-linker)" $packagePath/QtWebEngineProcess
|
||||||
patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" $packagePath/qtdiag
|
patchelf --set-interpreter "$(cat $NIX_BINUTILS/nix-support/dynamic-linker)" $packagePath/qtdiag
|
||||||
patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" $packagePath/zopen
|
patchelf --set-interpreter "$(cat $NIX_BINUTILS/nix-support/dynamic-linker)" $packagePath/zopen
|
||||||
# included from https://github.com/NixOS/nixpkgs/commit/fc218766333a05c9352b386e0cbb16e1ae84bf53
|
# included from https://github.com/NixOS/nixpkgs/commit/fc218766333a05c9352b386e0cbb16e1ae84bf53
|
||||||
# it works for me without it, but, well...
|
# it works for me without it, but, well...
|
||||||
paxmark m $packagePath/zoom
|
paxmark m $packagePath/zoom
|
||||||
|
@ -15,7 +15,7 @@ stdenv.mkDerivation rec {
|
|||||||
buildInputs = [ makeWrapper ];
|
buildInputs = [ makeWrapper ];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" client/insync-portable
|
patchelf --interpreter "$(cat $NIX_BINUTILS/nix-support/dynamic-linker)" client/insync-portable
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
@ -107,7 +107,7 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
# Patch binaries
|
# Patch binaries
|
||||||
binrp=$(patchelf --print-rpath $out/share/nylas-mail/nylas)
|
binrp=$(patchelf --print-rpath $out/share/nylas-mail/nylas)
|
||||||
patchelf --interpreter $(cat "$NIX_CC"/nix-support/dynamic-linker) \
|
patchelf --interpreter $(cat "$NIX_BINUTILS/nix-support/dynamic-linker") \
|
||||||
--set-rpath $binrp:$out/lib:${stdenv.cc.cc.lib}/lib:${lib.makeLibraryPath propagatedBuildInputs } \
|
--set-rpath $binrp:$out/lib:${stdenv.cc.cc.lib}/lib:${lib.makeLibraryPath propagatedBuildInputs } \
|
||||||
$out/share/nylas-mail/nylas
|
$out/share/nylas-mail/nylas
|
||||||
|
|
||||||
@ -119,7 +119,7 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
wrapProgram $out/share/nylas-mail/resources/apm/bin/apm \
|
wrapProgram $out/share/nylas-mail/resources/apm/bin/apm \
|
||||||
--set PATH "${coreutils}/bin"
|
--set PATH "${coreutils}/bin"
|
||||||
patchelf --interpreter $(cat "$NIX_CC"/nix-support/dynamic-linker) \
|
patchelf --interpreter $(cat "$NIX_BINUTILS/nix-support/dynamic-linker") \
|
||||||
--set-rpath ${gcc-unwrapped.lib}/lib $out/share/nylas-mail/resources/apm/bin/node
|
--set-rpath ${gcc-unwrapped.lib}/lib $out/share/nylas-mail/resources/apm/bin/node
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
@ -134,7 +134,7 @@ stdenv.mkDerivation {
|
|||||||
for executable in \
|
for executable in \
|
||||||
thunderbird crashreporter thunderbird-bin plugin-container updater
|
thunderbird crashreporter thunderbird-bin plugin-container updater
|
||||||
do
|
do
|
||||||
patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
patchelf --interpreter "$(cat $NIX_BINUTILS/nix-support/dynamic-linker)" \
|
||||||
"$out/usr/lib/thunderbird-bin-${version}/$executable"
|
"$out/usr/lib/thunderbird-bin-${version}/$executable"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
@ -41,7 +41,7 @@ in stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
postFixup = ''
|
postFixup = ''
|
||||||
patchelf \
|
patchelf \
|
||||||
--set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) \
|
--set-interpreter $(cat $NIX_BINUTILS/nix-support/dynamic-linker) \
|
||||||
--set-rpath "${libPath}" \
|
--set-rpath "${libPath}" \
|
||||||
$out/bin/anydesk
|
$out/bin/anydesk
|
||||||
|
|
||||||
|
@ -131,7 +131,7 @@ in stdenv.mkDerivation rec {
|
|||||||
echo "Patching ELF intrepreter and rpath for $f"
|
echo "Patching ELF intrepreter and rpath for $f"
|
||||||
chmod u+w "$f"
|
chmod u+w "$f"
|
||||||
patchelf \
|
patchelf \
|
||||||
--set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) \
|
--set-interpreter $(cat $NIX_BINUTILS/nix-support/dynamic-linker) \
|
||||||
--set-rpath "$ICAInstDir:$libPath" "$f"
|
--set-rpath "$ICAInstDir:$libPath" "$f"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@ in stdenv.mkDerivation rec {
|
|||||||
installPhase = ''
|
installPhase = ''
|
||||||
install -D rslsync "$out/bin/rslsync"
|
install -D rslsync "$out/bin/rslsync"
|
||||||
patchelf \
|
patchelf \
|
||||||
--interpreter "$(< $NIX_CC/nix-support/dynamic-linker)" \
|
--interpreter "$(< $NIX_BINUTILS/nix-support/dynamic-linker)" \
|
||||||
--set-rpath ${libPath} "$out/bin/rslsync"
|
--set-rpath ${libPath} "$out/bin/rslsync"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@ stdenv.mkDerivation rec {
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
postFixup = ''
|
postFixup = ''
|
||||||
patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
patchelf --set-interpreter "$(cat $NIX_BINUTILS/nix-support/dynamic-linker)" \
|
||||||
--set-rpath "${atomEnv.libPath}:${stdenv.lib.makeLibraryPath [ libXScrnSaver ]}:$out/lib/marp" \
|
--set-rpath "${atomEnv.libPath}:${stdenv.lib.makeLibraryPath [ libXScrnSaver ]}:$out/lib/marp" \
|
||||||
$out/bin/Marp
|
$out/bin/Marp
|
||||||
'';
|
'';
|
||||||
|
@ -78,9 +78,9 @@ stdenv.mkDerivation rec {
|
|||||||
${coreutils}/bin/cp "\$MDIR/moneyplex" "\$MDIR/moneyplex.patched"
|
${coreutils}/bin/cp "\$MDIR/moneyplex" "\$MDIR/moneyplex.patched"
|
||||||
${coreutils}/bin/chmod 0755 "\$MDIR/moneyplex.patched"
|
${coreutils}/bin/chmod 0755 "\$MDIR/moneyplex.patched"
|
||||||
fi
|
fi
|
||||||
if [ ! \`${patchelf}/bin/patchelf --print-interpreter \$MDIR/moneyplex.patched\` = $(cat $NIX_CC/nix-support/dynamic-linker) ] ||
|
if [ ! \`${patchelf}/bin/patchelf --print-interpreter \$MDIR/moneyplex.patched\` = $(cat $NIX_BINUTILS/nix-support/dynamic-linker) ] ||
|
||||||
[ ! \`${patchelf}/bin/patchelf --print-rpath \$MDIR/moneyplex.patched\` = "${libPath}" ]; then
|
[ ! \`${patchelf}/bin/patchelf --print-rpath \$MDIR/moneyplex.patched\` = "${libPath}" ]; then
|
||||||
${patchelf}/bin/patchelf --set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) --set-rpath "${libPath}" "\$MDIR/moneyplex.patched"
|
${patchelf}/bin/patchelf --set-interpreter $(cat $NIX_BINUTILS/nix-support/dynamic-linker) --set-rpath "${libPath}" "\$MDIR/moneyplex.patched"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exec \$MDIR/moneyplex.patched
|
exec \$MDIR/moneyplex.patched
|
||||||
|
@ -53,7 +53,7 @@ in stdenv.mkDerivation rec{
|
|||||||
mkdir $out/bin
|
mkdir $out/bin
|
||||||
for i in wps wpp et; do
|
for i in wps wpp et; do
|
||||||
patchelf \
|
patchelf \
|
||||||
--set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
--set-interpreter "$(cat $NIX_BINUTILS/nix-support/dynamic-linker)" \
|
||||||
--force-rpath --set-rpath "$prefix/office6:$libPath" \
|
--force-rpath --set-rpath "$prefix/office6:$libPath" \
|
||||||
$prefix/office6/$i
|
$prefix/office6/$i
|
||||||
|
|
||||||
|
@ -69,7 +69,7 @@ stdenv.mkDerivation rec {
|
|||||||
gcc -shared -fPIC -DEAGLE_PATH=\"$out/eagle-${version}\" ${./eagle_fixer.c} -o "$out"/lib/eagle_fixer.so -ldl
|
gcc -shared -fPIC -DEAGLE_PATH=\"$out/eagle-${version}\" ${./eagle_fixer.c} -o "$out"/lib/eagle_fixer.so -ldl
|
||||||
|
|
||||||
# Make wrapper script
|
# Make wrapper script
|
||||||
dynlinker="$(cat $NIX_CC/nix-support/dynamic-linker)"
|
dynlinker="$(cat $NIX_BINUTILS/nix-support/dynamic-linker)"
|
||||||
mkdir -p "$out"/bin
|
mkdir -p "$out"/bin
|
||||||
cat > "$out"/bin/eagle << EOF
|
cat > "$out"/bin/eagle << EOF
|
||||||
#!${stdenv.shell}
|
#!${stdenv.shell}
|
||||||
|
@ -44,7 +44,7 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
fixupPhase = ''
|
fixupPhase = ''
|
||||||
for x in bin/bcdump bin/extcore-info bin/jss bin/llvm-disasm bin/lss bin/saw; do
|
for x in bin/bcdump bin/extcore-info bin/jss bin/llvm-disasm bin/lss bin/saw; do
|
||||||
patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
patchelf --interpreter "$(cat $NIX_BINUTILS/nix-support/dynamic-linker)" \
|
||||||
--set-rpath "$out/lib:${libPath}" $out/$x;
|
--set-rpath "$out/lib:${libPath}" $out/$x;
|
||||||
done
|
done
|
||||||
'';
|
'';
|
||||||
|
@ -27,7 +27,7 @@ stdenv.mkDerivation rec {
|
|||||||
substituteInPlace $sharedir/TPTP2X/tptp2X_install --replace /bin/mv mv
|
substituteInPlace $sharedir/TPTP2X/tptp2X_install --replace /bin/mv mv
|
||||||
tcsh $sharedir/TPTP2X/tptp2X_install -default
|
tcsh $sharedir/TPTP2X/tptp2X_install -default
|
||||||
|
|
||||||
patchelf --interpreter $(cat $NIX_CC/nix-support/dynamic-linker) $sharedir/Scripts/tptp4X
|
patchelf --interpreter $(cat $NIX_BINUTILS/nix-support/dynamic-linker) $sharedir/Scripts/tptp4X
|
||||||
|
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
ln -s $sharedir/TPTP2X/tptp2X $out/bin
|
ln -s $sharedir/TPTP2X/tptp2X $out/bin
|
||||||
|
@ -10,7 +10,7 @@ let
|
|||||||
] + ":${stdenv.cc.cc.lib}/lib64";
|
] + ":${stdenv.cc.cc.lib}/lib64";
|
||||||
|
|
||||||
patchExe = x: ''
|
patchExe = x: ''
|
||||||
patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
patchelf --interpreter "$(cat $NIX_BINUTILS/nix-support/dynamic-linker)" \
|
||||||
--set-rpath ${libPath} ${x}
|
--set-rpath ${libPath} ${x}
|
||||||
'';
|
'';
|
||||||
in
|
in
|
||||||
|
@ -106,7 +106,7 @@ stdenv.mkDerivation rec {
|
|||||||
echo "patching $f executable <<"
|
echo "patching $f executable <<"
|
||||||
patchelf --shrink-rpath "$f"
|
patchelf --shrink-rpath "$f"
|
||||||
patchelf \
|
patchelf \
|
||||||
--set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
--set-interpreter "$(cat $NIX_BINUTILS/nix-support/dynamic-linker)" \
|
||||||
--set-rpath "$(patchelf --print-rpath "$f"):${ldpath}" \
|
--set-rpath "$(patchelf --print-rpath "$f"):${ldpath}" \
|
||||||
"$f" \
|
"$f" \
|
||||||
&& patchelf --shrink-rpath "$f" \
|
&& patchelf --shrink-rpath "$f" \
|
||||||
|
@ -93,7 +93,7 @@ stdenv.mkDerivation rec {
|
|||||||
elif [ "$type" == "EXEC" ]; then
|
elif [ "$type" == "EXEC" ]; then
|
||||||
echo "patching $f executable <<"
|
echo "patching $f executable <<"
|
||||||
patchelf \
|
patchelf \
|
||||||
--set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
--set-interpreter "$(cat $NIX_BINUTILS/nix-support/dynamic-linker)" \
|
||||||
--set-rpath "${ldpath}" \
|
--set-rpath "${ldpath}" \
|
||||||
"$f"
|
"$f"
|
||||||
patchelf --shrink-rpath "$f"
|
patchelf --shrink-rpath "$f"
|
||||||
|
@ -114,7 +114,7 @@ stdenv.mkDerivation rec {
|
|||||||
echo "patching $f executable <<"
|
echo "patching $f executable <<"
|
||||||
patchelf --shrink-rpath "$f"
|
patchelf --shrink-rpath "$f"
|
||||||
patchelf \
|
patchelf \
|
||||||
--set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
--set-interpreter "$(cat $NIX_BINUTILS/nix-support/dynamic-linker)" \
|
||||||
--set-rpath "$(patchelf --print-rpath "$f"):${ldpath}" \
|
--set-rpath "$(patchelf --print-rpath "$f"):${ldpath}" \
|
||||||
"$f" \
|
"$f" \
|
||||||
&& patchelf --shrink-rpath "$f" \
|
&& patchelf --shrink-rpath "$f" \
|
||||||
|
@ -51,7 +51,7 @@ stdenv.mkDerivation rec {
|
|||||||
fullLibPath="$sci/lib/scilab:$sci/lib/thirdparty:$libPath"
|
fullLibPath="$sci/lib/scilab:$sci/lib/thirdparty:$libPath"
|
||||||
fullLibPath="$fullLibPath:$sci/lib/thirdparty/redist"
|
fullLibPath="$fullLibPath:$sci/lib/thirdparty/redist"
|
||||||
|
|
||||||
patchelf --set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) \
|
patchelf --set-interpreter $(cat $NIX_BINUTILS/nix-support/dynamic-linker) \
|
||||||
--set-rpath "$fullLibPath" bin/scilab-bin
|
--set-rpath "$fullLibPath" bin/scilab-bin
|
||||||
find . -name '*.so' -type f | while read file; do
|
find . -name '*.so' -type f | while read file; do
|
||||||
patchelf --set-rpath "$fullLibPath" "$file" 2>/dev/null
|
patchelf --set-rpath "$fullLibPath" "$file" 2>/dev/null
|
||||||
|
@ -29,11 +29,11 @@ stdenv.mkDerivation {
|
|||||||
libs = stdenv.lib.makeLibraryPath [ qt4 zlib stdenv.cc.cc libSM libICE libX11 libXext libXt mesa ];
|
libs = stdenv.lib.makeLibraryPath [ qt4 zlib stdenv.cc.cc libSM libICE libX11 libXext libXt mesa ];
|
||||||
in ''
|
in ''
|
||||||
${patchelf}/bin/patchelf \
|
${patchelf}/bin/patchelf \
|
||||||
--interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
--interpreter "$(cat $NIX_BINUTILS/nix-support/dynamic-linker)" \
|
||||||
$out/bin/aliza
|
$out/bin/aliza
|
||||||
|
|
||||||
${patchelf}/bin/patchelf \
|
${patchelf}/bin/patchelf \
|
||||||
--interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
--interpreter "$(cat $NIX_BINUTILS/nix-support/dynamic-linker)" \
|
||||||
$out/bin/aliza-vtkvol
|
$out/bin/aliza-vtkvol
|
||||||
|
|
||||||
wrapProgram $out/bin/aliza \
|
wrapProgram $out/bin/aliza \
|
||||||
|
@ -33,7 +33,7 @@ stdenv.mkDerivation {
|
|||||||
|
|
||||||
for b in fdr4 _fdr4 refines _refines cspmprofiler cspmexplorerprof
|
for b in fdr4 _fdr4 refines _refines cspmprofiler cspmexplorerprof
|
||||||
do
|
do
|
||||||
patchelf --set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) \
|
patchelf --set-interpreter $(cat $NIX_BINUTILS/nix-support/dynamic-linker) \
|
||||||
--set-rpath "$libPath:$out/lib" \
|
--set-rpath "$libPath:$out/lib" \
|
||||||
"$out/bin/$b"
|
"$out/bin/$b"
|
||||||
done
|
done
|
||||||
|
@ -3,7 +3,7 @@ source $stdenv/setup
|
|||||||
buildPhase() {
|
buildPhase() {
|
||||||
for i in bin/*; do
|
for i in bin/*; do
|
||||||
patchelf \
|
patchelf \
|
||||||
--set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
--set-interpreter "$(cat $NIX_BINUTILS/nix-support/dynamic-linker)" \
|
||||||
--set-rpath $libX11/lib:$libXext/lib \
|
--set-rpath $libX11/lib:$libXext/lib \
|
||||||
$i
|
$i
|
||||||
done
|
done
|
||||||
|
@ -5,7 +5,7 @@ echo $NIX_CC
|
|||||||
buildPhase() {
|
buildPhase() {
|
||||||
for i in bin/*; do
|
for i in bin/*; do
|
||||||
patchelf \
|
patchelf \
|
||||||
--set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
--set-interpreter "$(cat $NIX_BINUTILS/nix-support/dynamic-linker)" \
|
||||||
--set-rpath $libX11/lib:$libXext/lib:$libSM/lib:$(cat $NIX_CC/nix-support/orig-cc)/lib \
|
--set-rpath $libX11/lib:$libXext/lib:$libSM/lib:$(cat $NIX_CC/nix-support/orig-cc)/lib \
|
||||||
$i
|
$i
|
||||||
done
|
done
|
||||||
|
@ -5,7 +5,7 @@ echo $NIX_CC
|
|||||||
buildPhase() {
|
buildPhase() {
|
||||||
for i in bin/*; do
|
for i in bin/*; do
|
||||||
patchelf \
|
patchelf \
|
||||||
--set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
--set-interpreter "$(cat $NIX_BINUTILS/nix-support/dynamic-linker)" \
|
||||||
--set-rpath $libX11/lib:$libXext/lib:$libSM/lib:$(cat $NIX_CC/nix-support/orig-cc)/lib \
|
--set-rpath $libX11/lib:$libXext/lib:$libSM/lib:$(cat $NIX_CC/nix-support/orig-cc)/lib \
|
||||||
$i
|
$i
|
||||||
done
|
done
|
||||||
|
@ -17,7 +17,7 @@ stdenv.mkDerivation {
|
|||||||
''
|
''
|
||||||
for i in bin/*; do
|
for i in bin/*; do
|
||||||
patchelf \
|
patchelf \
|
||||||
--set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
--set-interpreter "$(cat $NIX_BINUTILS/nix-support/dynamic-linker)" \
|
||||||
--set-rpath ${stdenv.lib.makeLibraryPath [ libX11 libXext libSM ]}:$(cat $NIX_CC/nix-support/orig-cc)/lib \
|
--set-rpath ${stdenv.lib.makeLibraryPath [ libX11 libXext libSM ]}:$(cat $NIX_CC/nix-support/orig-cc)/lib \
|
||||||
$i
|
$i
|
||||||
done
|
done
|
||||||
|
@ -17,7 +17,7 @@ stdenv.mkDerivation {
|
|||||||
''
|
''
|
||||||
for i in bin/*; do
|
for i in bin/*; do
|
||||||
patchelf \
|
patchelf \
|
||||||
--set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
--set-interpreter "$(cat $NIX_BINUTILS/nix-support/dynamic-linker)" \
|
||||||
--set-rpath ${stdenv.lib.makeLibraryPath [ libX11 libXext libSM ]}:$(cat $NIX_CC/nix-support/orig-cc)/lib \
|
--set-rpath ${stdenv.lib.makeLibraryPath [ libX11 libXext libSM ]}:$(cat $NIX_CC/nix-support/orig-cc)/lib \
|
||||||
$i
|
$i
|
||||||
done
|
done
|
||||||
|
@ -17,7 +17,7 @@ stdenv.mkDerivation {
|
|||||||
''
|
''
|
||||||
for i in bin/*; do
|
for i in bin/*; do
|
||||||
patchelf \
|
patchelf \
|
||||||
--set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
--set-interpreter "$(cat $NIX_BINUTILS/nix-support/dynamic-linker)" \
|
||||||
--set-rpath ${stdenv.lib.makeLibraryPath [ libX11 libXext libSM ]}:$(cat $NIX_CC/nix-support/orig-cc)/lib \
|
--set-rpath ${stdenv.lib.makeLibraryPath [ libX11 libXext libSM ]}:$(cat $NIX_CC/nix-support/orig-cc)/lib \
|
||||||
$i
|
$i
|
||||||
done
|
done
|
||||||
|
@ -17,7 +17,7 @@ stdenv.mkDerivation {
|
|||||||
''
|
''
|
||||||
for i in bin/*; do
|
for i in bin/*; do
|
||||||
patchelf \
|
patchelf \
|
||||||
--set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
--set-interpreter "$(cat $NIX_BINUTILS/nix-support/dynamic-linker)" \
|
||||||
--set-rpath ${stdenv.lib.makeLibraryPath [ libX11 libXext libSM ]}:$(cat $NIX_CC/nix-support/orig-cc)/lib \
|
--set-rpath ${stdenv.lib.makeLibraryPath [ libX11 libXext libSM ]}:$(cat $NIX_CC/nix-support/orig-cc)/lib \
|
||||||
$i
|
$i
|
||||||
done
|
done
|
||||||
|
@ -17,7 +17,7 @@ stdenv.mkDerivation {
|
|||||||
''
|
''
|
||||||
for i in bin/*; do
|
for i in bin/*; do
|
||||||
patchelf \
|
patchelf \
|
||||||
--set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
--set-interpreter "$(cat $NIX_BINUTILS/nix-support/dynamic-linker)" \
|
||||||
--set-rpath ${stdenv.lib.makeLibraryPath [ libX11 libXext libSM ]}:$(cat $NIX_CC/nix-support/orig-cc)/lib \
|
--set-rpath ${stdenv.lib.makeLibraryPath [ libX11 libXext libSM ]}:$(cat $NIX_CC/nix-support/orig-cc)/lib \
|
||||||
$i
|
$i
|
||||||
done
|
done
|
||||||
|
@ -17,7 +17,7 @@ stdenv.mkDerivation {
|
|||||||
''
|
''
|
||||||
for i in bin/*; do
|
for i in bin/*; do
|
||||||
patchelf \
|
patchelf \
|
||||||
--set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
--set-interpreter "$(cat $NIX_BINUTILS/nix-support/dynamic-linker)" \
|
||||||
--set-rpath ${stdenv.lib.makeLibraryPath [ libX11 libXext libSM ]}:$(cat $NIX_CC/nix-support/orig-cc)/lib \
|
--set-rpath ${stdenv.lib.makeLibraryPath [ libX11 libXext libSM ]}:$(cat $NIX_CC/nix-support/orig-cc)/lib \
|
||||||
$i
|
$i
|
||||||
done
|
done
|
||||||
|
@ -17,7 +17,7 @@ stdenv.mkDerivation {
|
|||||||
''
|
''
|
||||||
for i in bin/*; do
|
for i in bin/*; do
|
||||||
patchelf \
|
patchelf \
|
||||||
--set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
--set-interpreter "$(cat $NIX_BINUTILS/nix-support/dynamic-linker)" \
|
||||||
--set-rpath ${stdenv.lib.makeLibraryPath [ libX11 libXext libSM ]}:$(cat $NIX_CC/nix-support/orig-cc)/lib \
|
--set-rpath ${stdenv.lib.makeLibraryPath [ libX11 libXext libSM ]}:$(cat $NIX_CC/nix-support/orig-cc)/lib \
|
||||||
$i
|
$i
|
||||||
done
|
done
|
||||||
|
@ -17,7 +17,7 @@ stdenv.mkDerivation {
|
|||||||
''
|
''
|
||||||
for i in bin/*; do
|
for i in bin/*; do
|
||||||
patchelf \
|
patchelf \
|
||||||
--set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
--set-interpreter "$(cat $NIX_BINUTILS/nix-support/dynamic-linker)" \
|
||||||
--set-rpath ${stdenv.lib.makeLibraryPath [ libX11 libXext libSM ]}:$(cat $NIX_CC/nix-support/orig-cc)/lib \
|
--set-rpath ${stdenv.lib.makeLibraryPath [ libX11 libXext libSM ]}:$(cat $NIX_CC/nix-support/orig-cc)/lib \
|
||||||
$i
|
$i
|
||||||
done
|
done
|
||||||
|
@ -80,7 +80,7 @@ stdenv.mkDerivation rec {
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
postFixup = ''
|
postFixup = ''
|
||||||
patchelf --set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) \
|
patchelf --set-interpreter $(cat $NIX_BINUTILS/nix-support/dynamic-linker) \
|
||||||
--set-rpath "$libPath:$out/opt/gitkraken" "$out/opt/gitkraken/gitkraken"
|
--set-rpath "$libPath:$out/opt/gitkraken" "$out/opt/gitkraken/gitkraken"
|
||||||
wrapProgram $out/opt/gitkraken/gitkraken \
|
wrapProgram $out/opt/gitkraken/gitkraken \
|
||||||
--prefix LD_PRELOAD : "${makeLibraryPath [ curl ]}/libcurl.so.4" \
|
--prefix LD_PRELOAD : "${makeLibraryPath [ curl ]}/libcurl.so.4" \
|
||||||
|
@ -27,7 +27,7 @@ libPath="${libPath}:${out}/lib" # XXX: der. This should be in the nix file?
|
|||||||
|
|
||||||
for i in ${bin} ; do
|
for i in ${bin} ; do
|
||||||
patchelf \
|
patchelf \
|
||||||
--interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
--interpreter "$(cat $NIX_BINUTILS/nix-support/dynamic-linker)" \
|
||||||
--set-rpath $libPath \
|
--set-rpath $libPath \
|
||||||
${i}
|
${i}
|
||||||
done
|
done
|
||||||
|
@ -59,7 +59,7 @@ in stdenv.mkDerivation {
|
|||||||
|
|
||||||
while IFS= read -r -d ''$'\0' i; do
|
while IFS= read -r -d ''$'\0' i; do
|
||||||
if isELF "$i"; then
|
if isELF "$i"; then
|
||||||
bin=`patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" "$i"; echo $?`
|
bin=`patchelf --set-interpreter "$(cat $NIX_BINUTILS/nix-support/dynamic-linker)" "$i"; echo $?`
|
||||||
patchelf --set-rpath "${stdenv.lib.makeLibraryPath deps}" "$i"
|
patchelf --set-rpath "${stdenv.lib.makeLibraryPath deps}" "$i"
|
||||||
if [ "$bin" -eq 0 ]; then
|
if [ "$bin" -eq 0 ]; then
|
||||||
wrapProgram "$i" \
|
wrapProgram "$i" \
|
||||||
|
@ -135,7 +135,7 @@ stdenv.mkDerivation rec {
|
|||||||
cp ${teensyduino_src} ./TeensyduinoInstall.${teensy_architecture}
|
cp ${teensyduino_src} ./TeensyduinoInstall.${teensy_architecture}
|
||||||
chmod +w ./TeensyduinoInstall.${teensy_architecture}
|
chmod +w ./TeensyduinoInstall.${teensy_architecture}
|
||||||
upx -d ./TeensyduinoInstall.${teensy_architecture}
|
upx -d ./TeensyduinoInstall.${teensy_architecture}
|
||||||
patchelf --set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) \
|
patchelf --set-interpreter $(cat $NIX_BINUTILS/nix-support/dynamic-linker) \
|
||||||
--set-rpath "${teensy_libpath}" \
|
--set-rpath "${teensy_libpath}" \
|
||||||
./TeensyduinoInstall.${teensy_architecture}
|
./TeensyduinoInstall.${teensy_architecture}
|
||||||
chmod +x ./TeensyduinoInstall.${teensy_architecture}
|
chmod +x ./TeensyduinoInstall.${teensy_architecture}
|
||||||
@ -181,7 +181,7 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
preFixup = ''
|
preFixup = ''
|
||||||
for file in $(find $out -type f \( -perm /0111 -o -name \*.so\* \) ); do
|
for file in $(find $out -type f \( -perm /0111 -o -name \*.so\* \) ); do
|
||||||
patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" "$file" || true
|
patchelf --set-interpreter "$(cat $NIX_BINUTILS/nix-support/dynamic-linker)" "$file" || true
|
||||||
patchelf --set-rpath ${rpath}:$out/lib $file || true
|
patchelf --set-rpath ${rpath}:$out/lib $file || true
|
||||||
done
|
done
|
||||||
|
|
||||||
@ -203,7 +203,7 @@ stdenv.mkDerivation rec {
|
|||||||
${stdenv.lib.optionalString withTeensyduino ''
|
${stdenv.lib.optionalString withTeensyduino ''
|
||||||
# Patch the Teensy loader binary
|
# Patch the Teensy loader binary
|
||||||
patchelf --debug \
|
patchelf --debug \
|
||||||
--set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) \
|
--set-interpreter $(cat $NIX_BINUTILS/nix-support/dynamic-linker) \
|
||||||
--set-rpath "${teensy_libpath}" \
|
--set-rpath "${teensy_libpath}" \
|
||||||
$out/share/arduino/hardware/tools/teensy
|
$out/share/arduino/hardware/tools/teensy
|
||||||
''}
|
''}
|
||||||
|
@ -24,7 +24,7 @@ stdenv.mkDerivation {
|
|||||||
buildCommand = ''
|
buildCommand = ''
|
||||||
mkdir -p $out
|
mkdir -p $out
|
||||||
tar -C $out -xjf ${dist}
|
tar -C $out -xjf ${dist}
|
||||||
patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
patchelf --set-interpreter "$(cat $NIX_BINUTILS/nix-support/dynamic-linker)" \
|
||||||
$out/bin/lisp
|
$out/bin/lisp
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
@ -50,7 +50,7 @@ stdenv.mkDerivation rec {
|
|||||||
--suffix DYLD_LIBRARY_PATH : $libPath
|
--suffix DYLD_LIBRARY_PATH : $libPath
|
||||||
''
|
''
|
||||||
else ''
|
else ''
|
||||||
patchelf --set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) \
|
patchelf --set-interpreter $(cat $NIX_BINUTILS/nix-support/dynamic-linker) \
|
||||||
crystal-${version}-1/embedded/bin/crystal
|
crystal-${version}-1/embedded/bin/crystal
|
||||||
patchelf --set-rpath ${ stdenv.lib.makeLibraryPath [ stdenv.cc.cc ] } \
|
patchelf --set-rpath ${ stdenv.lib.makeLibraryPath [ stdenv.cc.cc ] } \
|
||||||
crystal-${version}-1/embedded/bin/crystal
|
crystal-${version}-1/embedded/bin/crystal
|
||||||
|
@ -49,7 +49,7 @@ let
|
|||||||
echo "patching $i..."
|
echo "patching $i..."
|
||||||
if [[ ! $i =~ \.so ]]; then
|
if [[ ! $i =~ \.so ]]; then
|
||||||
patchelf \
|
patchelf \
|
||||||
--set-interpreter "''$(cat $NIX_CC/nix-support/dynamic-linker)" $i
|
--set-interpreter "''$(cat $NIX_BINUTILS/nix-support/dynamic-linker)" $i
|
||||||
fi
|
fi
|
||||||
rpath2=$rpath:$lib/lib:$out/jre/lib/amd64/jli:$out/lib:$out/lib64:$out/nvvm/lib:$out/nvvm/lib64
|
rpath2=$rpath:$lib/lib:$out/jre/lib/amd64/jli:$out/lib:$out/lib64:$out/nvvm/lib:$out/nvvm/lib64
|
||||||
patchelf --set-rpath $rpath2 --force-rpath $i
|
patchelf --set-rpath $rpath2 --force-rpath $i
|
||||||
|
@ -25,7 +25,7 @@ if test "$noSysDirs" = "1"; then
|
|||||||
# Figure out what extra flags to pass to the gcc compilers
|
# Figure out what extra flags to pass to the gcc compilers
|
||||||
# being generated to make sure that they use our glibc.
|
# being generated to make sure that they use our glibc.
|
||||||
extraFlags="$(cat $NIX_CC/nix-support/libc-cflags)"
|
extraFlags="$(cat $NIX_CC/nix-support/libc-cflags)"
|
||||||
extraLDFlags="$(cat $NIX_CC/nix-support/libc-ldflags) $(cat $NIX_CC/nix-support/libc-ldflags-before || true)"
|
extraLDFlags="$(cat $NIX_BINUTILS/nix-support/libc-ldflags) $(cat $NIX_BINUTILS/nix-support/libc-ldflags-before || true)"
|
||||||
|
|
||||||
# Use *real* header files, otherwise a limits.h is generated
|
# Use *real* header files, otherwise a limits.h is generated
|
||||||
# that does not include Glibc's limits.h (notably missing
|
# that does not include Glibc's limits.h (notably missing
|
||||||
|
@ -39,7 +39,7 @@ stdenv.mkDerivation rec {
|
|||||||
# find editline/gmp.
|
# find editline/gmp.
|
||||||
(if stdenv.isLinux then ''
|
(if stdenv.isLinux then ''
|
||||||
find . -type f -perm -0100 \
|
find . -type f -perm -0100 \
|
||||||
-exec patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
-exec patchelf --interpreter "$(cat $NIX_BINUTILS/nix-support/dynamic-linker)" \
|
||||||
--set-rpath "${lib.makeLibraryPath [ libedit ncurses5 gmp ]}" {} \;
|
--set-rpath "${lib.makeLibraryPath [ libedit ncurses5 gmp ]}" {} \;
|
||||||
for prog in ld ar gcc strip ranlib; do
|
for prog in ld ar gcc strip ranlib; do
|
||||||
find . -name "setup-config" -exec sed -i "s@/usr/bin/$prog@$(type -p $prog)@g" {} \;
|
find . -name "setup-config" -exec sed -i "s@/usr/bin/$prog@$(type -p $prog)@g" {} \;
|
||||||
|
@ -61,7 +61,7 @@ stdenv.mkDerivation rec {
|
|||||||
# find editline/gmp.
|
# find editline/gmp.
|
||||||
stdenv.lib.optionalString stdenv.isLinux ''
|
stdenv.lib.optionalString stdenv.isLinux ''
|
||||||
find . -type f -perm -0100 \
|
find . -type f -perm -0100 \
|
||||||
-exec patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
-exec patchelf --interpreter "$(cat $NIX_BINUTILS/nix-support/dynamic-linker)" \
|
||||||
--set-rpath "${stdenv.lib.makeLibraryPath [ ncurses5 gmp ]}" {} \;
|
--set-rpath "${stdenv.lib.makeLibraryPath [ ncurses5 gmp ]}" {} \;
|
||||||
sed -i "s|/usr/bin/perl|perl\x00 |" ghc-${version}/ghc/stage2/build/tmp/ghc-stage2
|
sed -i "s|/usr/bin/perl|perl\x00 |" ghc-${version}/ghc/stage2/build/tmp/ghc-stage2
|
||||||
sed -i "s|/usr/bin/gcc|gcc\x00 |" ghc-${version}/ghc/stage2/build/tmp/ghc-stage2
|
sed -i "s|/usr/bin/gcc|gcc\x00 |" ghc-${version}/ghc/stage2/build/tmp/ghc-stage2
|
||||||
|
@ -63,7 +63,7 @@ stdenv.mkDerivation rec {
|
|||||||
mkdir -p "$out/lib"
|
mkdir -p "$out/lib"
|
||||||
ln -sv "${ncurses5.out}/lib/libncurses.so" "$out/lib/libncurses${stdenv.lib.optionalString stdenv.is64bit "w"}.so.5"
|
ln -sv "${ncurses5.out}/lib/libncurses.so" "$out/lib/libncurses${stdenv.lib.optionalString stdenv.is64bit "w"}.so.5"
|
||||||
find . -type f -perm -0100 \
|
find . -type f -perm -0100 \
|
||||||
-exec patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
-exec patchelf --interpreter "$(cat $NIX_BINUTILS/nix-support/dynamic-linker)" \
|
||||||
--set-rpath "${stdenv.lib.makeLibraryPath [ "$out" gmp ]}" {} \;
|
--set-rpath "${stdenv.lib.makeLibraryPath [ "$out" gmp ]}" {} \;
|
||||||
|
|
||||||
paxmark m ./ghc-${version}/ghc/stage2/build/tmp/ghc-stage2
|
paxmark m ./ghc-${version}/ghc/stage2/build/tmp/ghc-stage2
|
||||||
|
@ -21,7 +21,7 @@ stdenv.mkDerivation {
|
|||||||
cp -R * $out
|
cp -R * $out
|
||||||
set +e
|
set +e
|
||||||
for a in $out/bin/* ; do
|
for a in $out/bin/* ; do
|
||||||
patchelf --interpreter $(cat $NIX_CC/nix-support/dynamic-linker) \
|
patchelf --interpreter $(cat $NIX_BINUTILS/nix-support/dynamic-linker) \
|
||||||
--set-rpath $(cat $NIX_CC/nix-support/orig-libc)/lib:$(cat $NIX_CC/nix-support/orig-cc)/lib64:$(cat $NIX_CC/nix-support/orig-cc)/lib $a
|
--set-rpath $(cat $NIX_CC/nix-support/orig-libc)/lib:$(cat $NIX_CC/nix-support/orig-cc)/lib64:$(cat $NIX_CC/nix-support/orig-cc)/lib $a
|
||||||
done
|
done
|
||||||
set -e
|
set -e
|
||||||
|
@ -18,7 +18,7 @@ let
|
|||||||
tar --strip-components=1 -xjf "$src" -C "$out"
|
tar --strip-components=1 -xjf "$src" -C "$out"
|
||||||
|
|
||||||
# Patch binaries
|
# Patch binaries
|
||||||
interpreter="$(cat "$NIX_CC"/nix-support/dynamic-linker)"
|
interpreter="$(cat "$NIX_BINUTILS/nix-support/dynamic-linker")"
|
||||||
for file in "$out"/bin/* "$out"/libexec/gcc/*/*/* "$out"/*/bin/*; do
|
for file in "$out"/bin/* "$out"/libexec/gcc/*/*/* "$out"/*/bin/*; do
|
||||||
# Skip non-executable files
|
# Skip non-executable files
|
||||||
case "$file" in
|
case "$file" in
|
||||||
|
@ -39,7 +39,7 @@ stdenv.mkDerivation {
|
|||||||
tar xvf $src -C $out --strip-components=1
|
tar xvf $src -C $out --strip-components=1
|
||||||
|
|
||||||
for exe in $out/bin/{ozemulator,ozwish} ; do
|
for exe in $out/bin/{ozemulator,ozwish} ; do
|
||||||
patchelf --set-interpreter $(< $NIX_CC/nix-support/dynamic-linker) \
|
patchelf --set-interpreter $(< $NIX_BINUTILS/nix-support/dynamic-linker) \
|
||||||
--set-rpath $libPath \
|
--set-rpath $libPath \
|
||||||
$exe
|
$exe
|
||||||
done
|
done
|
||||||
|
@ -21,7 +21,7 @@ stdenv.mkDerivation {
|
|||||||
mkdir -p "$out"
|
mkdir -p "$out"
|
||||||
tar --strip-components=1 -xjf "$src" -C "$out"
|
tar --strip-components=1 -xjf "$src" -C "$out"
|
||||||
|
|
||||||
interpreter="$(cat "$NIX_CC"/nix-support/dynamic-linker)"
|
interpreter="$(cat "$NIX_BINUTILS/nix-support/dynamic-linker")"
|
||||||
for a in "$out"/bin/*; do
|
for a in "$out"/bin/*; do
|
||||||
patchelf --set-interpreter "$interpreter" "$a"
|
patchelf --set-interpreter "$interpreter" "$a"
|
||||||
patchelf --set-rpath "$out/lib:${boehmgc.out}/lib" "$a"
|
patchelf --set-rpath "$out/lib:${boehmgc.out}/lib" "$a"
|
||||||
|
@ -5,7 +5,7 @@ unzip ${src} || true
|
|||||||
|
|
||||||
# set the dynamic linker of unpack200, necessary for construct script
|
# set the dynamic linker of unpack200, necessary for construct script
|
||||||
echo "patching unpack200"
|
echo "patching unpack200"
|
||||||
patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" --set-rpath "" */bin/unpack200
|
patchelf --interpreter "$(cat $NIX_BINUTILS/nix-support/dynamic-linker)" --set-rpath "" */bin/unpack200
|
||||||
|
|
||||||
echo "constructing JDK and JRE installations"
|
echo "constructing JDK and JRE installations"
|
||||||
if test -z "$installjdk"; then
|
if test -z "$installjdk"; then
|
||||||
@ -46,7 +46,7 @@ rpath=$rpath${rpath:+:}$jrePath/lib/$architecture/jli
|
|||||||
|
|
||||||
# set all the dynamic linkers
|
# set all the dynamic linkers
|
||||||
find $out -type f -perm -0100 \
|
find $out -type f -perm -0100 \
|
||||||
-exec patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
-exec patchelf --interpreter "$(cat $NIX_BINUTILS/nix-support/dynamic-linker)" \
|
||||||
--set-rpath "$rpath" {} \;
|
--set-rpath "$rpath" {} \;
|
||||||
|
|
||||||
find $out -name "*.so" -exec patchelf --set-rpath "$rpath" {} \;
|
find $out -name "*.so" -exec patchelf --set-rpath "$rpath" {} \;
|
||||||
|
@ -179,7 +179,7 @@ let result = stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
# set all the dynamic linkers
|
# set all the dynamic linkers
|
||||||
find $out -type f -perm -0100 \
|
find $out -type f -perm -0100 \
|
||||||
-exec patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
-exec patchelf --interpreter "$(cat $NIX_BINUTILS/nix-support/dynamic-linker)" \
|
||||||
--set-rpath "$rpath" {} \;
|
--set-rpath "$rpath" {} \;
|
||||||
|
|
||||||
find $out -name "*.so" -exec patchelf --set-rpath "$rpath" {} \;
|
find $out -name "*.so" -exec patchelf --set-rpath "$rpath" {} \;
|
||||||
|
@ -42,17 +42,17 @@ rec {
|
|||||||
|
|
||||||
${optionalString (needsPatchelf && bootstrapping) ''
|
${optionalString (needsPatchelf && bootstrapping) ''
|
||||||
patchelf \
|
patchelf \
|
||||||
--set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) \
|
--set-interpreter $(cat $NIX_BINUTILS/nix-support/dynamic-linker) \
|
||||||
"$out/bin/rustdoc"
|
"$out/bin/rustdoc"
|
||||||
patchelf \
|
patchelf \
|
||||||
--set-rpath "${stdenv.lib.makeLibraryPath [ curl zlib ]}" \
|
--set-rpath "${stdenv.lib.makeLibraryPath [ curl zlib ]}" \
|
||||||
--set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) \
|
--set-interpreter $(cat $NIX_BINUTILS/nix-support/dynamic-linker) \
|
||||||
"$out/bin/cargo"
|
"$out/bin/cargo"
|
||||||
''}
|
''}
|
||||||
|
|
||||||
${optionalString needsPatchelf ''
|
${optionalString needsPatchelf ''
|
||||||
patchelf \
|
patchelf \
|
||||||
--set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) \
|
--set-interpreter $(cat $NIX_BINUTILS/nix-support/dynamic-linker) \
|
||||||
"$out/bin/rustc"
|
"$out/bin/rustc"
|
||||||
|
|
||||||
# Do NOT, I repeat, DO NOT use `wrapProgram` on $out/bin/rustc
|
# Do NOT, I repeat, DO NOT use `wrapProgram` on $out/bin/rustc
|
||||||
@ -88,7 +88,7 @@ rec {
|
|||||||
${optionalString needsPatchelf ''
|
${optionalString needsPatchelf ''
|
||||||
patchelf \
|
patchelf \
|
||||||
--set-rpath "${stdenv.lib.makeLibraryPath [ curl zlib ]}" \
|
--set-rpath "${stdenv.lib.makeLibraryPath [ curl zlib ]}" \
|
||||||
--set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) \
|
--set-interpreter $(cat $NIX_BINUTILS/nix-support/dynamic-linker) \
|
||||||
"$out/bin/cargo"
|
"$out/bin/cargo"
|
||||||
''}
|
''}
|
||||||
|
|
||||||
|
@ -66,7 +66,7 @@ stdenv.mkDerivation rec {
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
postFixup = stdenv.lib.optionalString (!stdenv.isArm && stdenv.isLinux) ''
|
postFixup = stdenv.lib.optionalString (!stdenv.isArm && stdenv.isLinux) ''
|
||||||
patchelf --set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) $out/share/sbcl/sbcl
|
patchelf --set-interpreter $(cat $NIX_BINUTILS/nix-support/dynamic-linker) $out/share/sbcl/sbcl
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
@ -30,7 +30,7 @@ stdenv.mkDerivation rec {
|
|||||||
echo ${version} > VERSION
|
echo ${version} > VERSION
|
||||||
|
|
||||||
configureFlagsArray+=("--cc=cc")
|
configureFlagsArray+=("--cc=cc")
|
||||||
configureFlagsArray+=("--elfinterp=$(< $NIX_CC/nix-support/dynamic-linker)")
|
configureFlagsArray+=("--elfinterp=$(< $NIX_BINUTILS/nix-support/dynamic-linker)")
|
||||||
configureFlagsArray+=("--crtprefix=${getLib stdenv.cc.libc}/lib")
|
configureFlagsArray+=("--crtprefix=${getLib stdenv.cc.libc}/lib")
|
||||||
configureFlagsArray+=("--sysincludepaths=${getDev stdenv.cc.libc}/include:{B}/include")
|
configureFlagsArray+=("--sysincludepaths=${getDev stdenv.cc.libc}/include:{B}/include")
|
||||||
configureFlagsArray+=("--libpaths=${getLib stdenv.cc.libc}/lib")
|
configureFlagsArray+=("--libpaths=${getLib stdenv.cc.libc}/lib")
|
||||||
|
@ -48,7 +48,7 @@ in stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
# set all the dynamic linkers
|
# set all the dynamic linkers
|
||||||
find $out -type f -perm -0100 \
|
find $out -type f -perm -0100 \
|
||||||
-exec patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
-exec patchelf --interpreter "$(cat $NIX_BINUTILS/nix-support/dynamic-linker)" \
|
||||||
--set-rpath "$rpath" {} \;
|
--set-rpath "$rpath" {} \;
|
||||||
|
|
||||||
find $out -name "*.so" -exec patchelf --set-rpath "$rpath" {} \;
|
find $out -name "*.so" -exec patchelf --set-rpath "$rpath" {} \;
|
||||||
|
@ -26,7 +26,7 @@ stdenv.mkDerivation {
|
|||||||
mkdir -p $out
|
mkdir -p $out
|
||||||
cp -R * $out/
|
cp -R * $out/
|
||||||
echo $libPath
|
echo $libPath
|
||||||
patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
patchelf --interpreter "$(cat $NIX_BINUTILS/nix-support/dynamic-linker)" \
|
||||||
--set-rpath $libPath \
|
--set-rpath $libPath \
|
||||||
$out/bin/dart
|
$out/bin/dart
|
||||||
'';
|
'';
|
||||||
|
@ -21,7 +21,7 @@ stdenv.mkDerivation rec {
|
|||||||
configurePhase = ''
|
configurePhase = ''
|
||||||
cp ${r3} make/r3-make
|
cp ${r3} make/r3-make
|
||||||
chmod 777 make/r3-make
|
chmod 777 make/r3-make
|
||||||
patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" ./make/r3-make
|
patchelf --set-interpreter "$(cat $NIX_BINUTILS/nix-support/dynamic-linker)" ./make/r3-make
|
||||||
cd make
|
cd make
|
||||||
perl -pi -e 's#-m32##g' makefile
|
perl -pi -e 's#-m32##g' makefile
|
||||||
perl -pi -e 's#sudo .*#echo#g' makefile
|
perl -pi -e 's#sudo .*#echo#g' makefile
|
||||||
|
@ -62,7 +62,10 @@ stdenv.mkDerivation rec {
|
|||||||
# being generated to make sure that they use our glibc.
|
# being generated to make sure that they use our glibc.
|
||||||
EXTRA_FLAGS="-I$NIX_FIXINC_DUMMY $(cat $NIX_CC/nix-support/libc-cflags) -O2"
|
EXTRA_FLAGS="-I$NIX_FIXINC_DUMMY $(cat $NIX_CC/nix-support/libc-cflags) -O2"
|
||||||
|
|
||||||
extraLDFlags="-L$glibc_libdir -rpath $glibc_libdir $(cat $NIX_CC/nix-support/libc-ldflags) $(cat $NIX_CC/nix-support/libc-ldflags-before)"
|
extraLDFlags="-L$glibc_libdir -rpath $glibc_libdir"
|
||||||
|
extraLDFlags+=" $(cat $NIX_BINUTILS/nix-support/libc-ldflags)"
|
||||||
|
extraLDFlags+=" $(cat $NIX_BINUTILS/nix-support/libc-ldflags-before)"
|
||||||
|
|
||||||
for i in $extraLDFlags; do
|
for i in $extraLDFlags; do
|
||||||
EXTRA_FLAGS="$EXTRA_FLAGS -Wl,$i"
|
EXTRA_FLAGS="$EXTRA_FLAGS -Wl,$i"
|
||||||
done
|
done
|
||||||
|
@ -67,7 +67,7 @@ in stdenv.mkDerivation rec {
|
|||||||
done
|
done
|
||||||
|
|
||||||
for exe in $out/bin/sqlplus; do
|
for exe in $out/bin/sqlplus; do
|
||||||
patchelf --set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) \
|
patchelf --set-interpreter $(cat $NIX_BINUTILS/nix-support/dynamic-linker) \
|
||||||
--force-rpath --set-rpath "$out/lib:${libaio}/lib" \
|
--force-rpath --set-rpath "$out/lib:${libaio}/lib" \
|
||||||
$exe
|
$exe
|
||||||
done
|
done
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user