lol

Change occurrences of gcc to the more general cc

This is done for the sake of Yosemite, which does not have gcc, and yet
this change is also compatible with Linux.

+553 -540
+3 -3
doc/old/cross.txt
··· 184 if test "$noSysDirs" = "1"; then 185 # Figure out what extra flags to pass to the gcc compilers 186 # being generated to make sure that they use our glibc. 187 - if test -e $NIX_GCC/nix-support/orig-glibc; then 188 - glibc=$(cat $NIX_GCC/nix-support/orig-glibc) 189 # Ugh. Copied from gcc-wrapper/builder.sh. We can't just 190 - # source in $NIX_GCC/nix-support/add-flags, since that 191 # would cause *this* GCC to be linked against the 192 # *previous* GCC. Need some more modularity there. 193 extraCFlags="-B$glibc/lib -isystem $glibc/include"
··· 184 if test "$noSysDirs" = "1"; then 185 # Figure out what extra flags to pass to the gcc compilers 186 # being generated to make sure that they use our glibc. 187 + if test -e $NIX_CC/nix-support/orig-glibc; then 188 + glibc=$(cat $NIX_CC/nix-support/orig-glibc) 189 # Ugh. Copied from gcc-wrapper/builder.sh. We can't just 190 + # source in $NIX_CC/nix-support/add-flags, since that 191 # would cause *this* GCC to be linked against the 192 # *previous* GCC. Need some more modularity there. 193 extraCFlags="-B$glibc/lib -isystem $glibc/include"
+1 -1
maintainers/scripts/patchelf-hints.sh
··· 62 ) 63 64 if test "$names" = "glibc"; then names="stdenv.glibc"; fi 65 - if echo $names | grep -c "gcc" &> /dev/null; then names="stdenv.gcc.gcc"; fi 66 67 if test $lib != $libPath; then 68 interpreter="--interpreter \${$names}/lib/$lib"
··· 62 ) 63 64 if test "$names" = "glibc"; then names="stdenv.glibc"; fi 65 + if echo $names | grep -c "gcc" &> /dev/null; then names="stdenv.cc.gcc"; fi 66 67 if test $lib != $libPath; then 68 interpreter="--interpreter \${$names}/lib/$lib"
+1 -1
pkgs/applications/audio/amarok/default.nix
··· 16 17 QT_PLUGIN_PATH="${qtscriptgenerator}/lib/qt4/plugins"; 18 19 - buildInputs = [ qtscriptgenerator stdenv.gcc.libc gettext curl 20 libxml2 mysql taglib taglib_extras loudmouth kdelibs automoc4 phonon strigi 21 soprano qca2 libmtp liblastfm libgpod pkgconfig qjson ffmpeg libofa nepomuk_core ]; 22
··· 16 17 QT_PLUGIN_PATH="${qtscriptgenerator}/lib/qt4/plugins"; 18 19 + buildInputs = [ qtscriptgenerator stdenv.cc.libc gettext curl 20 libxml2 mysql taglib taglib_extras loudmouth kdelibs automoc4 phonon strigi 21 soprano qca2 libmtp liblastfm libgpod pkgconfig qjson ffmpeg libofa nepomuk_core ]; 22
+2
pkgs/applications/audio/cdparanoia/default.nix
··· 7 url = "http://downloads.xiph.org/releases/cdparanoia/${name}.src.tgz"; 8 sha256 = "1pv4zrajm46za0f6lv162iqffih57a8ly4pc69f7y0gfyigb8p80"; 9 }; 10 11 meta = { 12 homepage = http://xiph.org/paranoia;
··· 7 url = "http://downloads.xiph.org/releases/cdparanoia/${name}.src.tgz"; 8 sha256 = "1pv4zrajm46za0f6lv162iqffih57a8ly4pc69f7y0gfyigb8p80"; 9 }; 10 + 11 + preConfigure = "unset CC"; 12 13 meta = { 14 homepage = http://xiph.org/paranoia;
+2 -2
pkgs/applications/audio/google-musicmanager/default.nix
··· 33 34 buildPhase = '' 35 patchelf \ 36 - --set-interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" \ 37 - --set-rpath "$out/opt/google/musicmanager:${readline}/lib:${ncurses}/lib:${stdenv.gcc.libc}/lib:${qt48}/lib:${stdenv.gcc.gcc}/lib:${libidn}/lib:${expat}/lib:${flac}/lib:${libvorbis}/lib" opt/google/musicmanager/MusicManager 38 ''; 39 40 dontPatchELF = true;
··· 33 34 buildPhase = '' 35 patchelf \ 36 + --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ 37 + --set-rpath "$out/opt/google/musicmanager:${readline}/lib:${ncurses}/lib:${stdenv.cc.libc}/lib:${qt48}/lib:${stdenv.cc.gcc}/lib:${libidn}/lib:${expat}/lib:${flac}/lib:${libvorbis}/lib" opt/google/musicmanager/MusicManager 38 ''; 39 40 dontPatchELF = true;
+4 -4
pkgs/applications/audio/spotify/default.nix
··· 45 pango 46 qt4 47 sqlite 48 - stdenv.gcc.gcc 49 xlibs.libX11 50 xlibs.libXcomposite 51 xlibs.libXdamage ··· 113 114 mkdir -p $out/bin 115 116 - rpath="$out/spotify-client/Data:$out/lib:$out/spotify-client:${stdenv.gcc.gcc}/lib64" 117 118 ln -s $out/spotify-client/spotify $out/bin/spotify 119 120 patchelf \ 121 - --interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" \ 122 --set-rpath $rpath $out/spotify-client/spotify 123 124 patchelf \ 125 - --interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" \ 126 --set-rpath $rpath $out/spotify-client/Data/SpotifyHelper 127 128 dpkg-deb -x ${qt4webkit} ./
··· 45 pango 46 qt4 47 sqlite 48 + stdenv.cc.gcc 49 xlibs.libX11 50 xlibs.libXcomposite 51 xlibs.libXdamage ··· 113 114 mkdir -p $out/bin 115 116 + rpath="$out/spotify-client/Data:$out/lib:$out/spotify-client:${stdenv.cc.gcc}/lib64" 117 118 ln -s $out/spotify-client/spotify $out/bin/spotify 119 120 patchelf \ 121 + --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ 122 --set-rpath $rpath $out/spotify-client/spotify 123 124 patchelf \ 125 + --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ 126 --set-rpath $rpath $out/spotify-client/Data/SpotifyHelper 127 128 dpkg-deb -x ${qt4webkit} ./
+3 -3
pkgs/applications/editors/atom/default.nix
··· 7 atomEnv = buildEnv { 8 name = "env-atom"; 9 paths = [ 10 - stdenv.gcc.gcc zlib glib dbus gtk atk pango freetype libgnome_keyring3 11 fontconfig gdk_pixbuf cairo cups expat libgpgerror alsaLib nspr gconf nss 12 xlibs.libXrender xlibs.libX11 xlibs.libXext xlibs.libXdamage xlibs.libXtst 13 xlibs.libXcomposite xlibs.libXi xlibs.libXfixes xlibs.libXrandr ··· 33 ar p $src data.tar.gz | tar -C $out -xz ./usr 34 mv $out/usr/* $out/ 35 rm -r $out/usr/ 36 - patchelf --set-interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" \ 37 $out/share/atom/atom 38 - patchelf --set-interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" \ 39 $out/share/atom/resources/app/apm/node_modules/atom-package-manager/bin/node 40 wrapProgram $out/bin/atom \ 41 --prefix "LD_LIBRARY_PATH" : "${atomEnv}/lib:${atomEnv}/lib64"
··· 7 atomEnv = buildEnv { 8 name = "env-atom"; 9 paths = [ 10 + stdenv.cc.gcc zlib glib dbus gtk atk pango freetype libgnome_keyring3 11 fontconfig gdk_pixbuf cairo cups expat libgpgerror alsaLib nspr gconf nss 12 xlibs.libXrender xlibs.libX11 xlibs.libXext xlibs.libXdamage xlibs.libXtst 13 xlibs.libXcomposite xlibs.libXi xlibs.libXfixes xlibs.libXrandr ··· 33 ar p $src data.tar.gz | tar -C $out -xz ./usr 34 mv $out/usr/* $out/ 35 rm -r $out/usr/ 36 + patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ 37 $out/share/atom/atom 38 + patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ 39 $out/share/atom/resources/app/apm/node_modules/atom-package-manager/bin/node 40 wrapProgram $out/bin/atom \ 41 --prefix "LD_LIBRARY_PATH" : "${atomEnv}/lib:${atomEnv}/lib64"
+1 -1
pkgs/applications/editors/codeblocks/default.nix
··· 19 enableParallelBuilding = true; 20 patches = [ ./writable-projects.patch ]; 21 preConfigure = "substituteInPlace ./configure --replace /usr/bin/file ${file}/bin/file"; 22 - postConfigure = optionalString stdenv.isLinux "substituteInPlace libtool --replace ldconfig ${stdenv.gcc.libc}/sbin/ldconfig"; 23 configureFlags = [ "--enable-pch=no" ] 24 ++ optional contribPlugins "--with-contrib-plugins"; 25
··· 19 enableParallelBuilding = true; 20 patches = [ ./writable-projects.patch ]; 21 preConfigure = "substituteInPlace ./configure --replace /usr/bin/file ${file}/bin/file"; 22 + postConfigure = optionalString stdenv.isLinux "substituteInPlace libtool --replace ldconfig ${stdenv.cc.libc}/sbin/ldconfig"; 23 configureFlags = [ "--enable-pch=no" ] 24 ++ optional contribPlugins "--with-contrib-plugins"; 25
+1 -1
pkgs/applications/editors/emacs-24/builder.sh
··· 11 *) return; 12 esac 13 14 - libc=$(cat ${NIX_GCC}/nix-support/orig-libc) 15 echo "libc: $libc" 16 17 for i in src/s/*.h src/m/*.h; do
··· 11 *) return; 12 esac 13 14 + libc=$(cat ${NIX_CC}/nix-support/orig-libc) 15 echo "libc: $libc" 16 17 for i in src/s/*.h src/m/*.h; do
+3 -3
pkgs/applications/editors/idea/default.nix
··· 56 snappyPath="lib/snappy-java-1.0.5" 57 7z x -o"$snappyPath" "$snappyPath.jar" 58 if [ "${stdenv.system}" == "x86_64-linux" ]; then 59 - patchelf --set-rpath ${stdenv.gcc.gcc}/lib64 "$snappyPath/org/xerial/snappy/native/Linux/amd64/libsnappyjava.so" 60 else 61 - patchelf --set-rpath ${stdenv.gcc.gcc}/lib "$snappyPath/org/xerial/snappy/native/Linux/i386/libsnappyjava.so" 62 fi 63 7z a -tzip "$snappyPath.jar" ./"$snappyPath"/* 64 rm -vr "$snappyPath" ··· 76 77 makeWrapper "$out/$name/bin/${loName}.sh" "$out/bin/${loName}" \ 78 --prefix PATH : "${jdk}/bin:${coreutils}/bin:${gnugrep}/bin:${which}/bin:${git}/bin" \ 79 - --prefix LD_RUN_PATH : "${stdenv.gcc.gcc}/lib/" \ 80 --prefix JDK_HOME : "$jdk" \ 81 --prefix ${hiName}_JDK : "$jdk" 82
··· 56 snappyPath="lib/snappy-java-1.0.5" 57 7z x -o"$snappyPath" "$snappyPath.jar" 58 if [ "${stdenv.system}" == "x86_64-linux" ]; then 59 + patchelf --set-rpath ${stdenv.cc.gcc}/lib64 "$snappyPath/org/xerial/snappy/native/Linux/amd64/libsnappyjava.so" 60 else 61 + patchelf --set-rpath ${stdenv.cc.gcc}/lib "$snappyPath/org/xerial/snappy/native/Linux/i386/libsnappyjava.so" 62 fi 63 7z a -tzip "$snappyPath.jar" ./"$snappyPath"/* 64 rm -vr "$snappyPath" ··· 76 77 makeWrapper "$out/$name/bin/${loName}.sh" "$out/bin/${loName}" \ 78 --prefix PATH : "${jdk}/bin:${coreutils}/bin:${gnugrep}/bin:${which}/bin:${git}/bin" \ 79 + --prefix LD_RUN_PATH : "${stdenv.cc.gcc}/lib/" \ 80 --prefix JDK_HOME : "$jdk" \ 81 --prefix ${hiName}_JDK : "$jdk" 82
+3 -3
pkgs/applications/editors/lighttable/default.nix
··· 5 6 let 7 libPath = stdenv.lib.makeLibraryPath [ 8 - stdenv.gcc.gcc zlib glib dbus gtk atk pango freetype libgnome_keyring3 nss 9 fontconfig gdk_pixbuf cairo cups expat libgpgerror alsaLib nspr gnome3.gconf 10 xlibs.libXrender xlibs.libX11 xlibs.libXext xlibs.libXdamage xlibs.libXtst 11 xlibs.libXcomposite xlibs.libXi xlibs.libXfixes ··· 40 mv LightTable $out/ 41 42 patchelf \ 43 - --interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" \ 44 - --set-rpath ${libPath}:${stdenv.gcc.gcc}/lib${stdenv.lib.optionalString stdenv.is64bit "64"} \ 45 $out/LightTable/ltbin 46 47 ln -s ${udev}/lib/libudev.so.1 $out/LightTable/libudev.so.0
··· 5 6 let 7 libPath = stdenv.lib.makeLibraryPath [ 8 + stdenv.cc.gcc zlib glib dbus gtk atk pango freetype libgnome_keyring3 nss 9 fontconfig gdk_pixbuf cairo cups expat libgpgerror alsaLib nspr gnome3.gconf 10 xlibs.libXrender xlibs.libX11 xlibs.libXext xlibs.libXdamage xlibs.libXtst 11 xlibs.libXcomposite xlibs.libXi xlibs.libXfixes ··· 40 mv LightTable $out/ 41 42 patchelf \ 43 + --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ 44 + --set-rpath ${libPath}:${stdenv.cc.gcc}/lib${stdenv.lib.optionalString stdenv.is64bit "64"} \ 45 $out/LightTable/ltbin 46 47 ln -s ${udev}/lib/libudev.so.1 $out/LightTable/libudev.so.0
+2 -2
pkgs/applications/editors/sublime/default.nix
··· 28 29 echo ${libPath} 30 patchelf \ 31 - --interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" \ 32 - --set-rpath ${libPath}:${stdenv.gcc.gcc}/lib${stdenv.lib.optionalString stdenv.is64bit "64"} \ 33 $out/sublime/sublime_text 34 ''; 35
··· 28 29 echo ${libPath} 30 patchelf \ 31 + --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ 32 + --set-rpath ${libPath}:${stdenv.cc.gcc}/lib${stdenv.lib.optionalString stdenv.is64bit "64"} \ 33 $out/sublime/sublime_text 34 ''; 35
+3 -3
pkgs/applications/editors/sublime3/default.nix
··· 31 buildPhase = '' 32 for i in sublime_text plugin_host crash_reporter; do 33 patchelf \ 34 - --interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" \ 35 - --set-rpath ${libPath}:${stdenv.gcc.gcc}/lib${stdenv.lib.optionalString stdenv.is64bit "64"} \ 36 $i 37 done 38 ''; ··· 41 mkdir -p $out 42 cp -prvd * $out/ 43 # Without this, plugin_host crashes, even though it has the rpath 44 - wrapProgram $out/plugin_host --prefix LD_PRELOAD : ${stdenv.gcc.gcc}/lib${stdenv.lib.optionalString stdenv.is64bit "64"}/libgcc_s.so.1:${openssl}/lib/libssl.so:${bzip2}/lib/libbz2.so 45 ''; 46 }; 47 in stdenv.mkDerivation {
··· 31 buildPhase = '' 32 for i in sublime_text plugin_host crash_reporter; do 33 patchelf \ 34 + --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ 35 + --set-rpath ${libPath}:${stdenv.cc.gcc}/lib${stdenv.lib.optionalString stdenv.is64bit "64"} \ 36 $i 37 done 38 ''; ··· 41 mkdir -p $out 42 cp -prvd * $out/ 43 # Without this, plugin_host crashes, even though it has the rpath 44 + wrapProgram $out/plugin_host --prefix LD_PRELOAD : ${stdenv.cc.gcc}/lib${stdenv.lib.optionalString stdenv.is64bit "64"}/libgcc_s.so.1:${openssl}/lib/libssl.so:${bzip2}/lib/libbz2.so 45 ''; 46 }; 47 in stdenv.mkDerivation {
+1 -1
pkgs/applications/misc/adobe-reader/builder.sh
··· 17 # More pointless files. 18 rm $p/bin/UNINSTALL 19 20 - patchelf --interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" \ 21 --set-rpath $libPath \ 22 $p/Reader/intellinux/bin/acroread 23
··· 17 # More pointless files. 18 rm $p/bin/UNINSTALL 19 20 + patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ 21 --set-rpath $libPath \ 22 $p/Reader/intellinux/bin/acroread 23
+1 -1
pkgs/applications/misc/adobe-reader/default.nix
··· 20 # versions. 21 22 libPath = stdenv.lib.makeLibraryPath 23 - [ stdenv.gcc.gcc libX11 zlib libxml2 cups pango atk gtk glib gdk_pixbuf ]; 24 25 meta = { 26 description = "Adobe Reader, a viewer for PDF documents";
··· 20 # versions. 21 22 libPath = stdenv.lib.makeLibraryPath 23 + [ stdenv.cc.gcc libX11 zlib libxml2 cups pango atk gtk glib gdk_pixbuf ]; 24 25 meta = { 26 description = "Adobe Reader, a viewer for PDF documents";
+2 -2
pkgs/applications/misc/googleearth/default.nix
··· 16 nativeBuildInputs = [ 17 glibc 18 glib 19 - stdenv.gcc.gcc 20 libSM 21 libICE 22 libXi ··· 59 fullPath=$fullPath:$i/lib 60 done 61 62 - patchelf --interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" \ 63 --set-rpath $fullPath \ 64 $out/opt/googleearth/googleearth-bin 65
··· 16 nativeBuildInputs = [ 17 glibc 18 glib 19 + stdenv.cc.gcc 20 libSM 21 libICE 22 libXi ··· 59 fullPath=$fullPath:$i/lib 60 done 61 62 + patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ 63 --set-rpath $fullPath \ 64 $out/opt/googleearth/googleearth-bin 65
+1 -1
pkgs/applications/misc/ikiwiki/default.nix
··· 53 sed -i /ENV{PATH}/d ikiwiki.in 54 # State the gcc dependency, and make the cgi use our wrapper 55 sed -i -e 's@$0@"'$out/bin/ikiwiki'"@' \ 56 - -e "s@'cc'@'${stdenv.gcc}/bin/gcc'@" IkiWiki/Wrapper.pm 57 ''; 58 59 configurePhase = "perl Makefile.PL PREFIX=$out";
··· 53 sed -i /ENV{PATH}/d ikiwiki.in 54 # State the gcc dependency, and make the cgi use our wrapper 55 sed -i -e 's@$0@"'$out/bin/ikiwiki'"@' \ 56 + -e "s@'cc'@'${stdenv.cc}/bin/gcc'@" IkiWiki/Wrapper.pm 57 ''; 58 59 configurePhase = "perl Makefile.PL PREFIX=$out";
+1 -1
pkgs/applications/misc/k3b/default.nix
··· 15 buildInputs = 16 [ cmake qt4 perl shared_mime_info libvorbis taglib 17 flac libsamplerate libdvdread lame libsndfile 18 - libmad gettext stdenv.gcc.libc 19 kdelibs kdemultimedia automoc4 phonon 20 libkcddb makeWrapper cdparanoia 21 ];
··· 15 buildInputs = 16 [ cmake qt4 perl shared_mime_info libvorbis taglib 17 flac libsamplerate libdvdread lame libsndfile 18 + libmad gettext stdenv.cc.libc 19 kdelibs kdemultimedia automoc4 phonon 20 libkcddb makeWrapper cdparanoia 21 ];
+1 -1
pkgs/applications/misc/mysql-workbench/default.nix
··· 31 postInstall = '' 32 wrapProgram "$out/bin/mysql-workbench" \ 33 --prefix LD_LIBRARY_PATH : "${python}/lib" \ 34 - --prefix LD_LIBRARY_PATH : "$(cat ${stdenv.gcc}/nix-support/orig-gcc)/lib64" \ 35 --prefix PATH : "${gnome_keyring}/bin" \ 36 --prefix PATH : "${python}/bin" \ 37 --set PYTHONPATH $PYTHONPATH \
··· 31 postInstall = '' 32 wrapProgram "$out/bin/mysql-workbench" \ 33 --prefix LD_LIBRARY_PATH : "${python}/lib" \ 34 + --prefix LD_LIBRARY_PATH : "$(cat ${stdenv.cc}/nix-support/orig-gcc)/lib64" \ 35 --prefix PATH : "${gnome_keyring}/bin" \ 36 --prefix PATH : "${python}/bin" \ 37 --set PYTHONPATH $PYTHONPATH \
+1 -1
pkgs/applications/misc/procmail/default.nix
··· 3 stdenv.mkDerivation { 4 name = "procmail-3.22"; 5 6 - buildInputs = [ stdenv.gcc.libc ]; 7 8 # getline is defined differently in glibc now. So rename it. 9 installPhase = "
··· 3 stdenv.mkDerivation { 4 name = "procmail-3.22"; 5 6 + buildInputs = [ stdenv.cc.libc ]; 7 8 # getline is defined differently in glibc now. So rename it. 9 installPhase = "
+1 -1
pkgs/applications/misc/rescuetime/default.nix
··· 28 cp usr/bin/rescuetime $out/bin 29 30 ${patchelf}/bin/patchelf \ 31 - --interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" \ 32 $out/bin/rescuetime 33 34 wrapProgram $out/bin/rescuetime \
··· 28 cp usr/bin/rescuetime $out/bin 29 30 ${patchelf}/bin/patchelf \ 31 + --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ 32 $out/bin/rescuetime 33 34 wrapProgram $out/bin/rescuetime \
+2 -2
pkgs/applications/networking/bittorrentsync/default.nix
··· 9 else if stdenv.system == "i686-linux" then "0jv3zg0jhdzsc56kkpylwihvhsz73gsl2i2pjmqk3r3x4gwjk8xx" 10 else throw "Bittorrent Sync for: ${stdenv.system} not supported!"; 11 12 - libPath = stdenv.lib.makeLibraryPath [ stdenv.gcc.libc ]; 13 in 14 stdenv.mkDerivation rec { 15 name = "btsync-${version}"; ··· 28 mkdir -p "$out/bin/" 29 cp -r "btsync" "$out/bin/" 30 31 - patchelf --interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" \ 32 --set-rpath ${libPath} "$out/bin/btsync" 33 ''; 34
··· 9 else if stdenv.system == "i686-linux" then "0jv3zg0jhdzsc56kkpylwihvhsz73gsl2i2pjmqk3r3x4gwjk8xx" 10 else throw "Bittorrent Sync for: ${stdenv.system} not supported!"; 11 12 + libPath = stdenv.lib.makeLibraryPath [ stdenv.cc.libc ]; 13 in 14 stdenv.mkDerivation rec { 15 name = "btsync-${version}"; ··· 28 mkdir -p "$out/bin/" 29 cp -r "btsync" "$out/bin/" 30 31 + patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ 32 --set-rpath ${libPath} "$out/bin/btsync" 33 ''; 34
+1 -1
pkgs/applications/networking/browsers/chromium/plugins.nix
··· 35 ''; 36 37 patchPhase = let 38 - rpaths = [ stdenv.gcc.gcc ]; 39 mkrpath = p: "${makeSearchPath "lib64" p}:${makeSearchPath "lib" p}"; 40 in '' 41 for sofile in PepperFlash/libpepflashplayer.so \
··· 35 ''; 36 37 patchPhase = let 38 + rpaths = [ stdenv.cc.gcc ]; 39 mkrpath = p: "${makeSearchPath "lib64" p}:${makeSearchPath "lib" p}"; 40 in '' 41 for sofile in PepperFlash/libpepflashplayer.so \
+3 -3
pkgs/applications/networking/browsers/firefox-bin/default.nix
··· 70 phases = "unpackPhase installPhase"; 71 72 libPath = stdenv.lib.makeLibraryPath 73 - [ stdenv.gcc.gcc 74 alsaLib 75 atk 76 cairo ··· 106 pulseaudio 107 systemd 108 ] + ":" + stdenv.lib.makeSearchPath "lib64" [ 109 - stdenv.gcc.gcc 110 ]; 111 112 # "strip" after "patchelf" may break binaries. ··· 125 firefox mozilla-xremote-client firefox-bin plugin-container \ 126 updater crashreporter webapprt-stub 127 do 128 - patchelf --interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" \ 129 "$out/usr/lib/firefox-bin-${version}/$executable" 130 done 131
··· 70 phases = "unpackPhase installPhase"; 71 72 libPath = stdenv.lib.makeLibraryPath 73 + [ stdenv.cc.gcc 74 alsaLib 75 atk 76 cairo ··· 106 pulseaudio 107 systemd 108 ] + ":" + stdenv.lib.makeSearchPath "lib64" [ 109 + stdenv.cc.gcc 110 ]; 111 112 # "strip" after "patchelf" may break binaries. ··· 125 firefox mozilla-xremote-client firefox-bin plugin-container \ 126 updater crashreporter webapprt-stub 127 do 128 + patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ 129 "$out/usr/lib/firefox-bin-${version}/$executable" 130 done 131
+1 -1
pkgs/applications/networking/browsers/firefox/default.nix
··· 13 enableOfficialBranding ? false 14 }: 15 16 - assert stdenv.gcc ? libc && stdenv.gcc.libc != null; 17 18 let version = "34.0.5"; in 19
··· 13 enableOfficialBranding ? false 14 }: 15 16 + assert stdenv.cc ? libc && stdenv.cc.libc != null; 17 18 let version = "34.0.5"; in 19
+5 -5
pkgs/applications/networking/browsers/mozilla-plugins/google-talk-plugin/default.nix
··· 32 xorg.libXfixes 33 xorg.libXrender 34 xorg.libXrandr 35 - stdenv.gcc.gcc 36 alsaLib 37 pulseaudio 38 dbus_glib ··· 76 cp opt/google/talkplugin/*.so $plugins 77 78 for i in libnpgoogletalk.so libppgoogletalk.so libppo1d.so; do 79 - patchelf --set-rpath "${makeLibraryPath [ stdenv.gcc.gcc xorg.libX11 ]}:${stdenv.gcc.gcc}/lib64" $plugins/$i 80 done 81 82 for i in libgoogletalkremoting.so libnpo1d.so; do 83 - patchelf --set-rpath "$out/libexec/google/talkplugin/lib:${rpathPlugin}:${stdenv.gcc.gcc}/lib64" $plugins/$i 84 done 85 86 mkdir -p $out/libexec/google/talkplugin 87 cp -prd opt/google/talkplugin/{data,GoogleTalkPlugin,locale,remoting24x24.png,windowpicker.glade} $out/libexec/google/talkplugin/ 88 89 patchelf \ 90 - --set-interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" \ 91 - --set-rpath "${rpathProgram}:${stdenv.gcc.gcc}/lib64" \ 92 $out/libexec/google/talkplugin/GoogleTalkPlugin 93 94 # Generate an LD_PRELOAD wrapper to redirect execvp() calls to
··· 32 xorg.libXfixes 33 xorg.libXrender 34 xorg.libXrandr 35 + stdenv.cc.gcc 36 alsaLib 37 pulseaudio 38 dbus_glib ··· 76 cp opt/google/talkplugin/*.so $plugins 77 78 for i in libnpgoogletalk.so libppgoogletalk.so libppo1d.so; do 79 + patchelf --set-rpath "${makeLibraryPath [ stdenv.cc.gcc xorg.libX11 ]}:${stdenv.cc.gcc}/lib64" $plugins/$i 80 done 81 82 for i in libgoogletalkremoting.so libnpo1d.so; do 83 + patchelf --set-rpath "$out/libexec/google/talkplugin/lib:${rpathPlugin}:${stdenv.cc.gcc}/lib64" $plugins/$i 84 done 85 86 mkdir -p $out/libexec/google/talkplugin 87 cp -prd opt/google/talkplugin/{data,GoogleTalkPlugin,locale,remoting24x24.png,windowpicker.glade} $out/libexec/google/talkplugin/ 88 89 patchelf \ 90 + --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ 91 + --set-rpath "${rpathProgram}:${stdenv.cc.gcc}/lib64" \ 92 $out/libexec/google/talkplugin/GoogleTalkPlugin 93 94 # Generate an LD_PRELOAD wrapper to redirect execvp() calls to
+3 -3
pkgs/applications/networking/browsers/opera/default.nix
··· 6 , kdeSupport ? false, qt4, kdelibs 7 }: 8 9 - assert stdenv.isLinux && stdenv.gcc.gcc != null && stdenv.gcc.libc != null; 10 11 let 12 mirror = http://get.geo.opera.com/pub/opera; ··· 37 ''; 38 39 buildInputs = 40 - [ stdenv.gcc.gcc stdenv.gcc.libc zlib libX11 libXt libXext libSM libICE 41 libXft freetype fontconfig libXrender libuuid expat 42 gstreamer libxml2 gst_plugins_base 43 ] ··· 57 elif [ $type == "EXEC" ]; then 58 echo "patching $f executable <<" 59 patchelf \ 60 - --set-interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" \ 61 --set-rpath "${libPath}" \ 62 "$f" 63 elif [ $type == "DYN" ]; then
··· 6 , kdeSupport ? false, qt4, kdelibs 7 }: 8 9 + assert stdenv.isLinux && stdenv.cc.gcc != null && stdenv.cc.libc != null; 10 11 let 12 mirror = http://get.geo.opera.com/pub/opera; ··· 37 ''; 38 39 buildInputs = 40 + [ stdenv.cc.gcc stdenv.cc.libc zlib libX11 libXt libXext libSM libICE 41 libXft freetype fontconfig libXrender libuuid expat 42 gstreamer libxml2 gst_plugins_base 43 ] ··· 57 elif [ $type == "EXEC" ]; then 58 echo "patching $f executable <<" 59 patchelf \ 60 + --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ 61 --set-rpath "${libPath}" \ 62 "$f" 63 elif [ $type == "DYN" ]; then
+1 -1
pkgs/applications/networking/cluster/hadoop/default.nix
··· 15 for n in "bin/"* "sbin/"*; do 16 sed -i $n -e "s|#!/usr/bin/env bash|#! ${bash}/bin/bash|" 17 done 18 - patchelf --set-interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" bin/container-executor 19 ''; 20 21 installPhase = ''
··· 15 for n in "bin/"* "sbin/"*; do 16 sed -i $n -e "s|#!/usr/bin/env bash|#! ${bash}/bin/bash|" 17 done 18 + patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" bin/container-executor 19 ''; 20 21 installPhase = ''
+2 -2
pkgs/applications/networking/instant-messengers/baresip/default.nix
··· 32 "USE_BV32=" "USE_COREAUDIO=" "USE_G711=" "USE_G722=" "USE_G722_1=" 33 "USE_ILBC=" "USE_OPUS=" "USE_SILK=" 34 ] 35 - ++ stdenv.lib.optional (stdenv.gcc.gcc != null) "SYSROOT_ALT=${stdenv.gcc.gcc}" 36 - ++ stdenv.lib.optional (stdenv.gcc.libc != null) "SYSROOT=${stdenv.gcc.libc}" 37 ; 38 NIX_CFLAGS_COMPILE='' -I${librem}/include/rem -I${gsm}/include/gsm ''; 39 meta = {
··· 32 "USE_BV32=" "USE_COREAUDIO=" "USE_G711=" "USE_G722=" "USE_G722_1=" 33 "USE_ILBC=" "USE_OPUS=" "USE_SILK=" 34 ] 35 + ++ stdenv.lib.optional (stdenv.cc.gcc != null) "SYSROOT_ALT=${stdenv.cc.gcc}" 36 + ++ stdenv.lib.optional (stdenv.cc.libc != null) "SYSROOT=${stdenv.cc.libc}" 37 ; 38 NIX_CFLAGS_COMPILE='' -I${librem}/include/rem -I${gsm}/include/gsm ''; 39 meta = {
+2 -2
pkgs/applications/networking/instant-messengers/fuze/default.nix
··· 19 libPath = 20 stdenv.lib.makeLibraryPath [ 21 openssl alsaLib libXext libXfixes libXrandr libjpeg curl_custom 22 - libX11 libXmu libXv qt4 libXtst mesa stdenv.gcc.gcc zlib 23 gnome.GConf libidn rtmpdump c-ares openldap 24 ]; 25 buildCommand = '' ··· 28 cp -R usr/lib/fuzebox $out/lib 29 30 patchelf \ 31 - --set-interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" \ 32 --set-rpath $out/lib/fuzebox:$libPath \ 33 $out/lib/fuzebox/FuzeLinuxApp 34
··· 19 libPath = 20 stdenv.lib.makeLibraryPath [ 21 openssl alsaLib libXext libXfixes libXrandr libjpeg curl_custom 22 + libX11 libXmu libXv qt4 libXtst mesa stdenv.cc.gcc zlib 23 gnome.GConf libidn rtmpdump c-ares openldap 24 ]; 25 buildCommand = '' ··· 28 cp -R usr/lib/fuzebox $out/lib 29 30 patchelf \ 31 + --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ 32 --set-rpath $out/lib/fuzebox:$libPath \ 33 $out/lib/fuzebox/FuzeLinuxApp 34
+2 -2
pkgs/applications/networking/instant-messengers/hipchat/default.nix
··· 41 xz 42 libcanberra 43 xcbutilkeysyms 44 - ] + ":${stdenv.gcc.gcc}/lib${stdenv.lib.optionalString stdenv.is64bit "64"}"; 45 46 src = 47 if stdenv.system == "x86_64-linux" then ··· 76 mv usr/share $out 77 78 for file in $(find $d -type f); do 79 - patchelf --set-interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" $file || true 80 patchelf --set-rpath ${rpath}:\$ORIGIN $file || true 81 done 82
··· 41 xz 42 libcanberra 43 xcbutilkeysyms 44 + ] + ":${stdenv.cc.gcc}/lib${stdenv.lib.optionalString stdenv.is64bit "64"}"; 45 46 src = 47 if stdenv.system == "x86_64-linux" then ··· 76 mv usr/share $out 77 78 for file in $(find $d -type f); do 79 + patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" $file || true 80 patchelf --set-rpath ${rpath}:\$ORIGIN $file || true 81 done 82
+2 -2
pkgs/applications/networking/instant-messengers/skype/default.nix
··· 14 15 buildInputs = [ 16 stdenv.glibc 17 - stdenv.gcc.gcc 18 libXv 19 libXext 20 libX11 ··· 43 fullPath=$fullPath''${fullPath:+:}$i/lib 44 done 45 46 - patchelf --interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" \ 47 --set-rpath "$fullPath" $out/libexec/skype/skype 48 49 cat > $out/bin/skype << EOF
··· 14 15 buildInputs = [ 16 stdenv.glibc 17 + stdenv.cc.gcc 18 libXv 19 libXext 20 libX11 ··· 43 fullPath=$fullPath''${fullPath:+:}$i/lib 44 done 45 46 + patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ 47 --set-rpath "$fullPath" $out/libexec/skype/skype 48 49 cat > $out/bin/skype << EOF
+2 -2
pkgs/applications/networking/instant-messengers/teamspeak/client.nix
··· 46 mv ts3client_linux_${arch} ts3client 47 echo "patching ts3client..." 48 patchelf \ 49 - --interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" \ 50 - --set-rpath ${stdenv.lib.makeLibraryPath deps}:$(cat $NIX_GCC/nix-support/orig-gcc)/${libDir} \ 51 --force-rpath \ 52 ts3client 53 '';
··· 46 mv ts3client_linux_${arch} ts3client 47 echo "patching ts3client..." 48 patchelf \ 49 + --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ 50 + --set-rpath ${stdenv.lib.makeLibraryPath deps}:$(cat $NIX_CC/nix-support/orig-gcc)/${libDir} \ 51 --force-rpath \ 52 ts3client 53 '';
+2 -2
pkgs/applications/networking/instant-messengers/teamspeak/server.nix
··· 29 mv ts3server_linux_${arch} ts3server 30 echo "patching ts3server" 31 patchelf \ 32 - --interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" \ 33 - --set-rpath $(cat $NIX_GCC/nix-support/orig-gcc)/${libDir} \ 34 --force-rpath \ 35 ts3server 36 '';
··· 29 mv ts3server_linux_${arch} ts3server 30 echo "patching ts3server" 31 patchelf \ 32 + --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ 33 + --set-rpath $(cat $NIX_CC/nix-support/orig-gcc)/${libDir} \ 34 --force-rpath \ 35 ts3server 36 '';
+1 -1
pkgs/applications/networking/mailreaders/thunderbird-bin/default.nix
··· 115 thunderbird mozilla-xremote-client thunderbird-bin plugin-container \ 116 updater 117 do 118 - patchelf --interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" \ 119 "$out/usr/lib/thunderbird-bin-${version}/$executable" 120 done 121
··· 115 thunderbird mozilla-xremote-client thunderbird-bin plugin-container \ 116 updater 117 do 118 + patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ 119 "$out/usr/lib/thunderbird-bin-${version}/$executable" 120 done 121
+3 -3
pkgs/applications/networking/remote/teamviewer/8.nix
··· 5 topath = "${wineUnstable}/bin"; 6 7 toldpath = stdenv.lib.concatStringsSep ":" (map (x: "${x}/lib") 8 - [ stdenv.gcc.gcc libX11 libXtst libXext libXdamage libXfixes wineUnstable ]); 9 in 10 stdenv.mkDerivation { 11 name = "teamviewer-8.0.17147"; ··· 34 EOF 35 chmod +x $out/bin/teamviewer 36 37 - patchelf --set-rpath "${stdenv.gcc.gcc}/lib64:${stdenv.gcc.gcc}/lib:${libX11}/lib:${libXext}/lib:${libXau}/lib:${libXdamage}/lib:${libXfixes}/lib" $out/share/teamviewer8/tv_bin/teamviewerd 38 - patchelf --set-interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" $out/share/teamviewer8/tv_bin/teamviewerd 39 ln -s $out/share/teamviewer8/tv_bin/teamviewerd $out/bin/ 40 ''; 41
··· 5 topath = "${wineUnstable}/bin"; 6 7 toldpath = stdenv.lib.concatStringsSep ":" (map (x: "${x}/lib") 8 + [ stdenv.cc.gcc libX11 libXtst libXext libXdamage libXfixes wineUnstable ]); 9 in 10 stdenv.mkDerivation { 11 name = "teamviewer-8.0.17147"; ··· 34 EOF 35 chmod +x $out/bin/teamviewer 36 37 + patchelf --set-rpath "${stdenv.cc.gcc}/lib64:${stdenv.cc.gcc}/lib:${libX11}/lib:${libXext}/lib:${libXau}/lib:${libXdamage}/lib:${libXfixes}/lib" $out/share/teamviewer8/tv_bin/teamviewerd 38 + patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" $out/share/teamviewer8/tv_bin/teamviewerd 39 ln -s $out/share/teamviewer8/tv_bin/teamviewerd $out/bin/ 40 ''; 41
+1 -1
pkgs/applications/networking/remote/teamviewer/9.nix
··· 35 chmod +x $out/bin/teamviewer 36 37 patchelf --set-rpath "${stdenv.gcc.gcc}/lib64:${stdenv.gcc.gcc}/lib:${libX11}/lib:${libXext}/lib:${libXau}/lib:${libXdamage}/lib:${libXfixes}/lib" $out/share/teamviewer9/tv_bin/teamviewerd 38 - patchelf --set-interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" $out/share/teamviewer9/tv_bin/teamviewerd 39 ln -s $out/share/teamviewer9/tv_bin/teamviewerd $out/bin/ 40 ''; 41
··· 35 chmod +x $out/bin/teamviewer 36 37 patchelf --set-rpath "${stdenv.gcc.gcc}/lib64:${stdenv.gcc.gcc}/lib:${libX11}/lib:${libXext}/lib:${libXau}/lib:${libXdamage}/lib:${libXfixes}/lib" $out/share/teamviewer9/tv_bin/teamviewerd 38 + patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" $out/share/teamviewer9/tv_bin/teamviewerd 39 ln -s $out/share/teamviewer9/tv_bin/teamviewerd $out/bin/ 40 ''; 41
+1 -1
pkgs/applications/networking/remote/teamviewer/default.nix
··· 6 topath = "${wine}/bin"; 7 8 toldpath = stdenv.lib.concatStringsSep ":" (map (x: "${x}/lib") 9 - [ stdenv.gcc.gcc libX11 libXtst libXext libXdamage libXfixes wine ]); 10 in 11 stdenv.mkDerivation { 12 name = "teamviewer-7.0.9377";
··· 6 topath = "${wine}/bin"; 7 8 toldpath = stdenv.lib.concatStringsSep ":" (map (x: "${x}/lib") 9 + [ stdenv.cc.gcc libX11 libXtst libXext libXdamage libXfixes wine ]); 10 in 11 stdenv.mkDerivation { 12 name = "teamviewer-7.0.9377";
+1 -1
pkgs/applications/office/zotero/firefox-bin/default.nix
··· 125 firefox mozilla-xremote-client firefox-bin plugin-container \ 126 updater crashreporter webapprt-stub 127 do 128 - patchelf --interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" \ 129 "$out/usr/lib/firefox-bin-${version}/$executable" 130 done 131
··· 125 firefox mozilla-xremote-client firefox-bin plugin-container \ 126 updater crashreporter webapprt-stub 127 do 128 + patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ 129 "$out/usr/lib/firefox-bin-${version}/$executable" 130 done 131
+2 -2
pkgs/applications/science/electronics/eagle/default.nix
··· 59 gcc -shared -fPIC -DEAGLE_PATH=\"$out/eagle-${version}\" ${./eagle_fixer.c} -o "$out"/lib/eagle_fixer.so -ldl 60 61 # Make wrapper script 62 - dynlinker="$(cat $NIX_GCC/nix-support/dynamic-linker)" 63 mkdir -p "$out"/bin 64 cat > "$out"/bin/eagle << EOF 65 #!${stdenv.shell} 66 - export LD_LIBRARY_PATH="${stdenv.gcc.gcc}/lib:${libPath}" 67 export LD_PRELOAD="$out/lib/eagle_fixer.so" 68 exec "$dynlinker" "$out/eagle-${version}/bin/eagle" "\$@" 69 EOF
··· 59 gcc -shared -fPIC -DEAGLE_PATH=\"$out/eagle-${version}\" ${./eagle_fixer.c} -o "$out"/lib/eagle_fixer.so -ldl 60 61 # Make wrapper script 62 + dynlinker="$(cat $NIX_CC/nix-support/dynamic-linker)" 63 mkdir -p "$out"/bin 64 cat > "$out"/bin/eagle << EOF 65 #!${stdenv.shell} 66 + export LD_LIBRARY_PATH="${stdenv.cc.gcc}/lib:${libPath}" 67 export LD_PRELOAD="$out/lib/eagle_fixer.so" 68 exec "$dynlinker" "$out/eagle-${version}/bin/eagle" "\$@" 69 EOF
+3 -3
pkgs/applications/science/logic/verifast/default.nix
··· 5 6 let 7 libPath = stdenv.lib.makeLibraryPath 8 - [ stdenv.gcc.libc stdenv.gcc.gcc gtk gdk_pixbuf atk pango glib cairo 9 freetype fontconfig libxml2 gnome2.gtksourceview 10 - ] + ":${stdenv.gcc.gcc}/lib64"; 11 12 patchExe = x: '' 13 - patchelf --interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" \ 14 --set-rpath ${libPath} ${x} 15 ''; 16 in
··· 5 6 let 7 libPath = stdenv.lib.makeLibraryPath 8 + [ stdenv.cc.libc stdenv.cc.gcc gtk gdk_pixbuf atk pango glib cairo 9 freetype fontconfig libxml2 gnome2.gtksourceview 10 + ] + ":${stdenv.cc.gcc}/lib64"; 11 12 patchExe = x: '' 13 + patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ 14 --set-rpath ${libPath} ${x} 15 ''; 16 in
+1 -1
pkgs/applications/science/logic/yices/default.nix
··· 3 assert stdenv.isLinux; 4 5 let 6 - libPath = stdenv.lib.makeLibraryPath [ stdenv.gcc.libc ]; 7 in 8 stdenv.mkDerivation rec { 9 name = "yices-${version}";
··· 3 assert stdenv.isLinux; 4 5 let 6 + libPath = stdenv.lib.makeLibraryPath [ stdenv.cc.libc ]; 7 in 8 stdenv.mkDerivation rec { 9 name = "yices-${version}";
+1 -1
pkgs/applications/science/math/mathematica/9.nix
··· 93 elif [ "$type" == "EXEC" ]; then 94 echo "patching $f executable <<" 95 patchelf \ 96 - --set-interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" \ 97 --set-rpath "${ldpath}" \ 98 "$f" 99 patchelf --shrink-rpath "$f"
··· 93 elif [ "$type" == "EXEC" ]; then 94 echo "patching $f executable <<" 95 patchelf \ 96 + --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ 97 --set-rpath "${ldpath}" \ 98 "$f" 99 patchelf --shrink-rpath "$f"
+1 -1
pkgs/applications/science/math/mathematica/default.nix
··· 104 echo "patching $f executable <<" 105 patchelf --shrink-rpath "$f" 106 patchelf \ 107 - --set-interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" \ 108 --set-rpath "$(patchelf --print-rpath "$f"):${ldpath}" \ 109 "$f" \ 110 && patchelf --shrink-rpath "$f" \
··· 104 echo "patching $f executable <<" 105 patchelf --shrink-rpath "$f" 106 patchelf \ 107 + --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ 108 --set-rpath "$(patchelf --print-rpath "$f"):${ldpath}" \ 109 "$f" \ 110 && patchelf --shrink-rpath "$f" \
+1 -1
pkgs/applications/taxes/aangifte-2006/builder.sh
··· 3 buildPhase() { 4 for i in bin/*; do 5 patchelf \ 6 - --set-interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" \ 7 --set-rpath $libX11/lib:$libXext/lib \ 8 $i 9 done
··· 3 buildPhase() { 4 for i in bin/*; do 5 patchelf \ 6 + --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ 7 --set-rpath $libX11/lib:$libXext/lib \ 8 $i 9 done
+3 -3
pkgs/applications/taxes/aangifte-2007/builder.sh
··· 1 source $stdenv/setup 2 3 - echo $NIX_GCC 4 5 buildPhase() { 6 for i in bin/*; do 7 patchelf \ 8 - --set-interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" \ 9 - --set-rpath $libX11/lib:$libXext/lib:$libSM/lib:$(cat $NIX_GCC/nix-support/orig-gcc)/lib \ 10 $i 11 done 12 }
··· 1 source $stdenv/setup 2 3 + echo $NIX_CC 4 5 buildPhase() { 6 for i in bin/*; do 7 patchelf \ 8 + --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ 9 + --set-rpath $libX11/lib:$libXext/lib:$libSM/lib:$(cat $NIX_CC/nix-support/orig-gcc)/lib \ 10 $i 11 done 12 }
+3 -3
pkgs/applications/taxes/aangifte-2008/builder.sh
··· 1 source $stdenv/setup 2 3 - echo $NIX_GCC 4 5 buildPhase() { 6 for i in bin/*; do 7 patchelf \ 8 - --set-interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" \ 9 - --set-rpath $libX11/lib:$libXext/lib:$libSM/lib:$(cat $NIX_GCC/nix-support/orig-gcc)/lib \ 10 $i 11 done 12 }
··· 1 source $stdenv/setup 2 3 + echo $NIX_CC 4 5 buildPhase() { 6 for i in bin/*; do 7 patchelf \ 8 + --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ 9 + --set-rpath $libX11/lib:$libXext/lib:$libSM/lib:$(cat $NIX_CC/nix-support/orig-gcc)/lib \ 10 $i 11 done 12 }
+2 -2
pkgs/applications/taxes/aangifte-2009/default.nix
··· 17 '' 18 for i in bin/*; do 19 patchelf \ 20 - --set-interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" \ 21 - --set-rpath ${stdenv.lib.makeLibraryPath [ libX11 libXext libSM ]}:$(cat $NIX_GCC/nix-support/orig-gcc)/lib \ 22 $i 23 done 24 '';
··· 17 '' 18 for i in bin/*; do 19 patchelf \ 20 + --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ 21 + --set-rpath ${stdenv.lib.makeLibraryPath [ libX11 libXext libSM ]}:$(cat $NIX_CC/nix-support/orig-gcc)/lib \ 22 $i 23 done 24 '';
+2 -2
pkgs/applications/taxes/aangifte-2010/default.nix
··· 17 '' 18 for i in bin/*; do 19 patchelf \ 20 - --set-interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" \ 21 - --set-rpath ${stdenv.lib.makeLibraryPath [ libX11 libXext libSM ]}:$(cat $NIX_GCC/nix-support/orig-gcc)/lib \ 22 $i 23 done 24 '';
··· 17 '' 18 for i in bin/*; do 19 patchelf \ 20 + --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ 21 + --set-rpath ${stdenv.lib.makeLibraryPath [ libX11 libXext libSM ]}:$(cat $NIX_CC/nix-support/orig-gcc)/lib \ 22 $i 23 done 24 '';
+2 -2
pkgs/applications/taxes/aangifte-2011/default.nix
··· 17 '' 18 for i in bin/*; do 19 patchelf \ 20 - --set-interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" \ 21 - --set-rpath ${stdenv.lib.makeLibraryPath [ libX11 libXext libSM ]}:$(cat $NIX_GCC/nix-support/orig-gcc)/lib \ 22 $i 23 done 24 '';
··· 17 '' 18 for i in bin/*; do 19 patchelf \ 20 + --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ 21 + --set-rpath ${stdenv.lib.makeLibraryPath [ libX11 libXext libSM ]}:$(cat $NIX_CC/nix-support/orig-gcc)/lib \ 22 $i 23 done 24 '';
+3 -3
pkgs/applications/taxes/aangifte-2012/default.nix
··· 17 '' 18 for i in bin/*; do 19 patchelf \ 20 - --set-interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" \ 21 - --set-rpath ${stdenv.lib.makeLibraryPath [ libX11 libXext libSM ]}:$(cat $NIX_GCC/nix-support/orig-gcc)/lib \ 22 $i 23 done 24 ''; ··· 28 mkdir -p $out 29 cp -prvd * $out/ 30 wrapProgram $out/bin/ib2012ux --prefix PATH : ${xdg_utils}/bin \ 31 - --prefix LD_PRELOAD : $(cat $NIX_GCC/nix-support/orig-gcc)/lib/libgcc_s.so.1 32 ''; 33 34 meta = {
··· 17 '' 18 for i in bin/*; do 19 patchelf \ 20 + --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ 21 + --set-rpath ${stdenv.lib.makeLibraryPath [ libX11 libXext libSM ]}:$(cat $NIX_CC/nix-support/orig-gcc)/lib \ 22 $i 23 done 24 ''; ··· 28 mkdir -p $out 29 cp -prvd * $out/ 30 wrapProgram $out/bin/ib2012ux --prefix PATH : ${xdg_utils}/bin \ 31 + --prefix LD_PRELOAD : $(cat $NIX_CC/nix-support/orig-gcc)/lib/libgcc_s.so.1 32 ''; 33 34 meta = {
+3 -3
pkgs/applications/taxes/aangifte-2013/default.nix
··· 17 '' 18 for i in bin/*; do 19 patchelf \ 20 - --set-interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" \ 21 - --set-rpath ${stdenv.lib.makeLibraryPath [ libX11 libXext libSM ]}:$(cat $NIX_GCC/nix-support/orig-gcc)/lib \ 22 $i 23 done 24 ''; ··· 28 mkdir -p $out 29 cp -prvd * $out/ 30 wrapProgram $out/bin/ib2013ux --prefix PATH : ${xdg_utils}/bin \ 31 - --prefix LD_PRELOAD : $(cat $NIX_GCC/nix-support/orig-gcc)/lib/libgcc_s.so.1 32 ''; 33 34 meta = {
··· 17 '' 18 for i in bin/*; do 19 patchelf \ 20 + --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ 21 + --set-rpath ${stdenv.lib.makeLibraryPath [ libX11 libXext libSM ]}:$(cat $NIX_CC/nix-support/orig-gcc)/lib \ 22 $i 23 done 24 ''; ··· 28 mkdir -p $out 29 cp -prvd * $out/ 30 wrapProgram $out/bin/ib2013ux --prefix PATH : ${xdg_utils}/bin \ 31 + --prefix LD_PRELOAD : $(cat $NIX_CC/nix-support/orig-gcc)/lib/libgcc_s.so.1 32 ''; 33 34 meta = {
+1 -1
pkgs/applications/video/makemkv/builder.sh
··· 27 28 for i in ${bin} ; do 29 patchelf \ 30 - --interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" \ 31 --set-rpath $libPath \ 32 ${i} 33 done
··· 27 28 for i in ${bin} ; do 29 patchelf \ 30 + --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ 31 --set-rpath $libPath \ 32 ${i} 33 done
+2 -2
pkgs/applications/video/makemkv/default.nix
··· 19 20 buildInputs = [openssl qt4 mesa zlib pkgconfig libav]; 21 22 - libPath = stdenv.lib.makeLibraryPath [stdenv.gcc.gcc openssl mesa qt4 zlib ] 23 - + ":" + stdenv.gcc.gcc + "/lib64"; 24 25 meta = with stdenv.lib; { 26 description = "convert blu-ray and dvd to mkv";
··· 19 20 buildInputs = [openssl qt4 mesa zlib pkgconfig libav]; 21 22 + libPath = stdenv.lib.makeLibraryPath [stdenv.cc.gcc openssl mesa qt4 zlib ] 23 + + ":" + stdenv.cc.gcc + "/lib64"; 24 25 meta = with stdenv.lib; { 26 description = "convert blu-ray and dvd to mkv";
+1 -1
pkgs/applications/virtualization/virtualbox/guest-additions/default.nix
··· 70 '' 71 else throw ("Architecture: "+stdenv.system+" not supported for VirtualBox guest additions") 72 } 73 - patchelf --set-rpath ${stdenv.gcc.gcc}/lib:${dbus}/lib:${libX11}/lib:${libXt}/lib:${libXext}/lib:${libXmu}/lib:${libXfixes}/lib:${libXrandr}/lib:${libXcursor}/lib $i 74 done 75 76 for i in lib/VBoxOGL*.so
··· 70 '' 71 else throw ("Architecture: "+stdenv.system+" not supported for VirtualBox guest additions") 72 } 73 + patchelf --set-rpath ${stdenv.cc.gcc}/lib:${dbus}/lib:${libX11}/lib:${libXt}/lib:${libXext}/lib:${libXmu}/lib:${libXfixes}/lib:${libXrandr}/lib:${libXcursor}/lib $i 74 done 75 76 for i in lib/VBoxOGL*.so
+3 -3
pkgs/build-support/builder-defs/builder-defs.nix
··· 100 ${stdenv.preHook} 101 102 set -e 103 - NIX_GCC=${stdenv.gcc} 104 export SHELL=${stdenv.shell} 105 PATH_DELIMITER=':' 106 107 # Set up the initial path. 108 PATH= 109 - for i in \$NIX_GCC ${toString stdenv.initialPath}; do 110 PATH=\$PATH\${PATH:+\"\${PATH_DELIMITER}\"}\$i/bin 111 done 112 ··· 138 } 139 140 pkgs=\"\" 141 - for i in \$NIX_GCC ${toString realBuildInputs}; do 142 findInputs \$i 143 done 144
··· 100 ${stdenv.preHook} 101 102 set -e 103 + NIX_CC=${stdenv.cc} 104 export SHELL=${stdenv.shell} 105 PATH_DELIMITER=':' 106 107 # Set up the initial path. 108 PATH= 109 + for i in \$NIX_CC ${toString stdenv.initialPath}; do 110 PATH=\$PATH\${PATH:+\"\${PATH_DELIMITER}\"}\$i/bin 111 done 112 ··· 138 } 139 140 pkgs=\"\" 141 + for i in \$NIX_CC ${toString realBuildInputs}; do 142 findInputs \$i 143 done 144
+2
pkgs/build-support/cabal/default.nix
··· 220 done 221 done 222 223 ${optionalString (self.enableSharedExecutables && self.stdenv.isLinux) '' 224 configureFlags+=" --ghc-option=-optl=-Wl,-rpath=$out/lib/${ghc.ghc.name}/${self.pname}-${self.version}" 225 ''}
··· 220 done 221 done 222 223 + configureFlags+=" --with-gcc=$CC" 224 + 225 ${optionalString (self.enableSharedExecutables && self.stdenv.isLinux) '' 226 configureFlags+=" --ghc-option=-optl=-Wl,-rpath=$out/lib/${ghc.ghc.name}/${self.pname}-${self.version}" 227 ''}
+4 -4
pkgs/build-support/gcc-cross-wrapper/gcc-wrapper.sh
··· 1 #! @shell@ -e 2 3 - if test -n "$NIX_GCC_WRAPPER_START_HOOK"; then 4 - source "$NIX_GCC_WRAPPER_START_HOOK" 5 fi 6 7 if test -z "$NIX_CROSS_GLIBC_FLAGS_SET"; then ··· 107 done 108 fi 109 110 - if test -n "$NIX_GCC_WRAPPER_EXEC_HOOK"; then 111 - source "$NIX_GCC_WRAPPER_EXEC_HOOK" 112 fi 113 114 # We want gcc to call the wrapper linker, not that of binutils.
··· 1 #! @shell@ -e 2 3 + if test -n "$NIX_CC_WRAPPER_START_HOOK"; then 4 + source "$NIX_CC_WRAPPER_START_HOOK" 5 fi 6 7 if test -z "$NIX_CROSS_GLIBC_FLAGS_SET"; then ··· 107 done 108 fi 109 110 + if test -n "$NIX_CC_WRAPPER_EXEC_HOOK"; then 111 + source "$NIX_CC_WRAPPER_EXEC_HOOK" 112 fi 113 114 # We want gcc to call the wrapper linker, not that of binutils.
+1 -1
pkgs/build-support/gcc-wrapper-old/add-flags
··· 25 export NIX_LDFLAGS_BEFORE="$(cat @out@/nix-support/libc-ldflags-before) $NIX_LDFLAGS_BEFORE" 26 fi 27 28 - export NIX_GCC_WRAPPER_FLAGS_SET=1
··· 25 export NIX_LDFLAGS_BEFORE="$(cat @out@/nix-support/libc-ldflags-before) $NIX_LDFLAGS_BEFORE" 26 fi 27 28 + export NIX_CC_WRAPPER_FLAGS_SET=1
+5 -5
pkgs/build-support/gcc-wrapper-old/gcc-wrapper-old.sh
··· 1 #! @shell@ -e 2 3 - if [ -n "$NIX_GCC_WRAPPER_START_HOOK" ]; then 4 - source "$NIX_GCC_WRAPPER_START_HOOK" 5 fi 6 7 - if [ -z "$NIX_GCC_WRAPPER_FLAGS_SET" ]; then 8 source @out@/nix-support/add-flags.sh 9 fi 10 ··· 139 done 140 fi 141 142 - if [ -n "$NIX_GCC_WRAPPER_EXEC_HOOK" ]; then 143 - source "$NIX_GCC_WRAPPER_EXEC_HOOK" 144 fi 145 146 exec @prog@ ${extraBefore[@]} "${params[@]}" "${extraAfter[@]}"
··· 1 #! @shell@ -e 2 3 + if [ -n "$NIX_CC_WRAPPER_START_HOOK" ]; then 4 + source "$NIX_CC_WRAPPER_START_HOOK" 5 fi 6 7 + if [ -z "$NIX_CC_WRAPPER_FLAGS_SET" ]; then 8 source @out@/nix-support/add-flags.sh 9 fi 10 ··· 139 done 140 fi 141 142 + if [ -n "$NIX_CC_WRAPPER_EXEC_HOOK" ]; then 143 + source "$NIX_CC_WRAPPER_EXEC_HOOK" 144 fi 145 146 exec @prog@ ${extraBefore[@]} "${params[@]}" "${extraAfter[@]}"
+6 -6
pkgs/build-support/gcc-wrapper-old/gcc-wrapper.sh
··· 1 #! @shell@ -e 2 3 - if test -n "$NIX_GCC_WRAPPER_START_HOOK"; then 4 - source "$NIX_GCC_WRAPPER_START_HOOK" 5 fi 6 7 - if test -z "$NIX_GCC_WRAPPER_FLAGS_SET"; then 8 source @out@/nix-support/add-flags.sh 9 fi 10 ··· 130 done 131 fi 132 133 - if test -n "$NIX_GCC_WRAPPER_EXEC_HOOK"; then 134 - source "$NIX_GCC_WRAPPER_EXEC_HOOK" 135 fi 136 137 138 # Call the real `gcc'. Filter out warnings from stderr about unused 139 # `-B' flags, since they confuse some programs. Deep bash magic to 140 # apply grep to stderr (by swapping stdin/stderr twice). 141 - if test -z "$NIX_GCC_NEEDS_GREP"; then 142 @gccProg@ ${extraBefore[@]} "${params[@]}" ${extraAfter[@]} 143 else 144 (@gccProg@ ${extraBefore[@]} "${params[@]}" ${extraAfter[@]} 3>&2 2>&1 1>&3- \
··· 1 #! @shell@ -e 2 3 + if test -n "$NIX_CC_WRAPPER_START_HOOK"; then 4 + source "$NIX_CC_WRAPPER_START_HOOK" 5 fi 6 7 + if test -z "$NIX_CC_WRAPPER_FLAGS_SET"; then 8 source @out@/nix-support/add-flags.sh 9 fi 10 ··· 130 done 131 fi 132 133 + if test -n "$NIX_CC_WRAPPER_EXEC_HOOK"; then 134 + source "$NIX_CC_WRAPPER_EXEC_HOOK" 135 fi 136 137 138 # Call the real `gcc'. Filter out warnings from stderr about unused 139 # `-B' flags, since they confuse some programs. Deep bash magic to 140 # apply grep to stderr (by swapping stdin/stderr twice). 141 + if test -z "$NIX_CC_NEEDS_GREP"; then 142 @gccProg@ ${extraBefore[@]} "${params[@]}" ${extraAfter[@]} 143 else 144 (@gccProg@ ${extraBefore[@]} "${params[@]}" ${extraAfter[@]} 3>&2 2>&1 1>&3- \
+1 -1
pkgs/build-support/gcc-wrapper-old/ld-wrapper.sh
··· 4 source "$NIX_LD_WRAPPER_START_HOOK" 5 fi 6 7 - if test -z "$NIX_GCC_WRAPPER_FLAGS_SET"; then 8 source @out@/nix-support/add-flags.sh 9 fi 10
··· 4 source "$NIX_LD_WRAPPER_START_HOOK" 5 fi 6 7 + if test -z "$NIX_CC_WRAPPER_FLAGS_SET"; then 8 source @out@/nix-support/add-flags.sh 9 fi 10
+1 -1
pkgs/build-support/gcc-wrapper/add-flags
··· 25 export NIX_LDFLAGS_BEFORE="$(cat @out@/nix-support/libc-ldflags-before) $NIX_LDFLAGS_BEFORE" 26 fi 27 28 - export NIX_GCC_WRAPPER_FLAGS_SET=1
··· 25 export NIX_LDFLAGS_BEFORE="$(cat @out@/nix-support/libc-ldflags-before) $NIX_LDFLAGS_BEFORE" 26 fi 27 28 + export NIX_CC_WRAPPER_FLAGS_SET=1
+1 -1
pkgs/build-support/gcc-wrapper/default.nix
··· 226 227 crossAttrs = { 228 shell = shell.crossDrv + shell.crossDrv.shellPath; 229 - libc = stdenv.gccCross.libc; 230 coreutils = coreutils.crossDrv; 231 binutils = binutils.crossDrv; 232 gcc = gcc.crossDrv;
··· 226 227 crossAttrs = { 228 shell = shell.crossDrv + shell.crossDrv.shellPath; 229 + libc = stdenv.ccCross.libc; 230 coreutils = coreutils.crossDrv; 231 binutils = binutils.crossDrv; 232 gcc = gcc.crossDrv;
+5 -5
pkgs/build-support/gcc-wrapper/gcc-wrapper.sh
··· 1 #! @shell@ -e 2 3 - if [ -n "$NIX_GCC_WRAPPER_START_HOOK" ]; then 4 - source "$NIX_GCC_WRAPPER_START_HOOK" 5 fi 6 7 - if [ -z "$NIX_GCC_WRAPPER_FLAGS_SET" ]; then 8 source @out@/nix-support/add-flags.sh 9 fi 10 ··· 139 done 140 fi 141 142 - if [ -n "$NIX_GCC_WRAPPER_EXEC_HOOK" ]; then 143 - source "$NIX_GCC_WRAPPER_EXEC_HOOK" 144 fi 145 146 exec @prog@ ${extraBefore[@]} "${params[@]}" "${extraAfter[@]}"
··· 1 #! @shell@ -e 2 3 + if [ -n "$NIX_CC_WRAPPER_START_HOOK" ]; then 4 + source "$NIX_CC_WRAPPER_START_HOOK" 5 fi 6 7 + if [ -z "$NIX_CC_WRAPPER_FLAGS_SET" ]; then 8 source @out@/nix-support/add-flags.sh 9 fi 10 ··· 139 done 140 fi 141 142 + if [ -n "$NIX_CC_WRAPPER_EXEC_HOOK" ]; then 143 + source "$NIX_CC_WRAPPER_EXEC_HOOK" 144 fi 145 146 exec @prog@ ${extraBefore[@]} "${params[@]}" "${extraAfter[@]}"
+1 -1
pkgs/build-support/gcc-wrapper/ld-wrapper.sh
··· 4 source "$NIX_LD_WRAPPER_START_HOOK" 5 fi 6 7 - if [ -z "$NIX_GCC_WRAPPER_FLAGS_SET" ]; then 8 source @out@/nix-support/add-flags.sh 9 fi 10
··· 4 source "$NIX_LD_WRAPPER_START_HOOK" 5 fi 6 7 + if [ -z "$NIX_CC_WRAPPER_FLAGS_SET" ]; then 8 source @out@/nix-support/add-flags.sh 9 fi 10
+4 -1
pkgs/build-support/gcc-wrapper/setup-hook.sh
··· 1 - export NIX_GCC=@out@ 2 3 addCVars () { 4 if [ -d $1/include ]; then ··· 33 if [ -n "@coreutils@" ]; then 34 addToSearchPath PATH @coreutils@/bin 35 fi
··· 1 + export NIX_CC=@out@ 2 3 addCVars () { 4 if [ -d $1/include ]; then ··· 33 if [ -n "@coreutils@" ]; then 34 addToSearchPath PATH @coreutils@/bin 35 fi 36 + 37 + export CC=gcc 38 + export CXX=g++
+2 -2
pkgs/development/arduino/arduino-core/default.nix
··· 36 if echo "$filepath" | grep -q "\.elf$"; then 37 continue 38 fi 39 - echo "setting interpreter $(cat "$NIX_GCC"/nix-support/dynamic-linker) in $filepath" 40 - patchelf --set-interpreter "$(cat "$NIX_GCC"/nix-support/dynamic-linker)" "$filepath" 41 test $? -eq 0 || { echo "patchelf failed to process $filepath"; exit 1; } 42 fi 43 done
··· 36 if echo "$filepath" | grep -q "\.elf$"; then 37 continue 38 fi 39 + echo "setting interpreter $(cat "$NIX_CC"/nix-support/dynamic-linker) in $filepath" 40 + patchelf --set-interpreter "$(cat "$NIX_CC"/nix-support/dynamic-linker)" "$filepath" 41 test $? -eq 0 || { echo "patchelf failed to process $filepath"; exit 1; } 42 fi 43 done
+1 -1
pkgs/development/compilers/aldor/default.nix
··· 23 do 24 wrapProgram $out/bin/$prog --set ALDORROOT $out \ 25 --prefix PATH : ${openjdk}/bin \ 26 - --prefix PATH : ${stdenv.gcc}/bin ; 27 done 28 ''; 29
··· 23 do 24 wrapProgram $out/bin/$prog --set ALDORROOT $out \ 25 --prefix PATH : ${openjdk}/bin \ 26 + --prefix PATH : ${stdenv.cc}/bin ; 27 done 28 ''; 29
+1 -1
pkgs/development/compilers/bigloo/default.nix
··· 13 14 preConfigure = 15 # Help libgc's configure. 16 - '' export CXXCPP="g++ -E" 17 ''; 18 19 patchPhase = ''
··· 13 14 preConfigure = 15 # Help libgc's configure. 16 + '' export CXXCPP="$CXX -E" 17 ''; 18 19 patchPhase = ''
+1 -1
pkgs/development/compilers/cmucl/binary.nix
··· 24 buildCommand = '' 25 mkdir -p $out 26 tar -C $out -xjf ${dist} 27 - patchelf --set-interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" \ 28 $out/bin/lisp 29 ''; 30
··· 24 buildCommand = '' 25 mkdir -p $out 26 tar -C $out -xjf ${dist} 27 + patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ 28 $out/bin/lisp 29 ''; 30
+5 -2
pkgs/development/compilers/compcert/default.nix
··· 1 - { stdenv, fetchurl, coq, ocaml, ocamlPackages, gcc }: 2 3 stdenv.mkDerivation rec { 4 name = "compcert-${version}"; ··· 12 buildInputs = [ coq ocaml ocamlPackages.menhir ]; 13 14 enableParallelBuilding = true; 15 - configurePhase = "./configure -prefix $out -toolprefix ${gcc}/bin/ " + 16 (if stdenv.isDarwin then "ia32-macosx" else "ia32-linux"); 17 18 meta = with stdenv.lib; {
··· 1 + { stdenv, fetchurl, coq, ocaml, ocamlPackages }: 2 3 stdenv.mkDerivation rec { 4 name = "compcert-${version}"; ··· 12 buildInputs = [ coq ocaml ocamlPackages.menhir ]; 13 14 enableParallelBuilding = true; 15 + 16 + configurePhase = '' 17 + substituteInPlace ./configure --replace '{toolprefix}gcc' '{toolprefix}cc' 18 + ./configure -prefix $out -toolprefix ${stdenv.cc}/bin/ '' + 19 (if stdenv.isDarwin then "ia32-macosx" else "ia32-linux"); 20 21 meta = with stdenv.lib; {
+5 -5
pkgs/development/compilers/cryptol/1.8.x.nix
··· 10 jss-ver = "jss-0.4"; 11 12 libPath = stdenv.lib.makeLibraryPath 13 - [ stdenv.gcc.libc 14 - stdenv.gcc.gcc 15 gmp4 16 ncurses 17 zlib 18 - ] + ":${stdenv.gcc.gcc}/lib64"; 19 20 cryptol-bin = 21 if stdenv.system == "i686-linux" ··· 94 95 # Hack around lack of libtinfo in NixOS 96 ln -s ${ncurses}/lib/libncursesw.so.5.9 $out/lib/libtinfo.so.5 97 - ln -s ${stdenv.gcc.libc}/lib/libpthread-2.19.so $out/lib/libpthread.so.0 98 ''; 99 100 fixupPhase = '' 101 for x in bin/cryptol bin/edif2verilog bin/copy-iverilog bin/symbolic_netlist bin/jaig bin/vvp-galois bin/lss libexec/jss; do 102 - patchelf --interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" \ 103 --set-rpath "$out/lib:${libPath}" $out/$x 104 patchelf --shrink-rpath $out/$x 105 done
··· 10 jss-ver = "jss-0.4"; 11 12 libPath = stdenv.lib.makeLibraryPath 13 + [ stdenv.cc.libc 14 + stdenv.cc.gcc 15 gmp4 16 ncurses 17 zlib 18 + ] + ":${stdenv.cc.gcc}/lib64"; 19 20 cryptol-bin = 21 if stdenv.system == "i686-linux" ··· 94 95 # Hack around lack of libtinfo in NixOS 96 ln -s ${ncurses}/lib/libncursesw.so.5.9 $out/lib/libtinfo.so.5 97 + ln -s ${stdenv.cc.libc}/lib/libpthread-2.19.so $out/lib/libpthread.so.0 98 ''; 99 100 fixupPhase = '' 101 for x in bin/cryptol bin/edif2verilog bin/copy-iverilog bin/symbolic_netlist bin/jaig bin/vvp-galois bin/lss libexec/jss; do 102 + patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ 103 --set-rpath "$out/lib:${libPath}" $out/$x 104 patchelf --shrink-rpath $out/$x 105 done
+3 -3
pkgs/development/compilers/cudatoolkit/5.5.nix
··· 26 gtk2 glib fontconfig freetype unixODBC alsaLib 27 ]; 28 29 - rpath = "${stdenv.lib.makeLibraryPath runtimeDependencies}:${stdenv.gcc.gcc}/lib64"; 30 31 unpackPhase = '' 32 sh $src --keep --noexec ··· 38 39 buildPhase = '' 40 find . -type f -executable -exec patchelf \ 41 - --set-interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" \ 42 '{}' \; || true 43 find . -type f -exec patchelf \ 44 - --set-rpath $rpath:$out/jre/lib/amd64/jli:$out/lib:$out/lib64:$out/nvvm/lib:$out/nvvm/lib64:$(cat $NIX_GCC/nix-support/orig-gcc)/lib \ 45 --force-rpath \ 46 '{}' \; || true 47 '';
··· 26 gtk2 glib fontconfig freetype unixODBC alsaLib 27 ]; 28 29 + rpath = "${stdenv.lib.makeLibraryPath runtimeDependencies}:${stdenv.cc.gcc}/lib64"; 30 31 unpackPhase = '' 32 sh $src --keep --noexec ··· 38 39 buildPhase = '' 40 find . -type f -executable -exec patchelf \ 41 + --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ 42 '{}' \; || true 43 find . -type f -exec patchelf \ 44 + --set-rpath $rpath:$out/jre/lib/amd64/jli:$out/lib:$out/lib64:$out/nvvm/lib:$out/nvvm/lib64:$(cat $NIX_CC/nix-support/orig-gcc)/lib \ 45 --force-rpath \ 46 '{}' \; || true 47 '';
+3 -3
pkgs/development/compilers/cudatoolkit/6.0.nix
··· 26 gtk2 glib fontconfig freetype unixODBC alsaLib 27 ]; 28 29 - rpath = "${stdenv.lib.makeLibraryPath runtimeDependencies}:${stdenv.gcc.gcc}/lib64"; 30 31 unpackPhase = '' 32 sh $src --keep --noexec ··· 38 39 buildPhase = '' 40 find . -type f -executable -exec patchelf \ 41 - --set-interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" \ 42 '{}' \; || true 43 find . -type f -exec patchelf \ 44 - --set-rpath $rpath:$out/jre/lib/amd64/jli:$out/lib:$out/lib64:$out/nvvm/lib:$out/nvvm/lib64:$(cat $NIX_GCC/nix-support/orig-gcc)/lib \ 45 --force-rpath \ 46 '{}' \; || true 47 '';
··· 26 gtk2 glib fontconfig freetype unixODBC alsaLib 27 ]; 28 29 + rpath = "${stdenv.lib.makeLibraryPath runtimeDependencies}:${stdenv.cc.gcc}/lib64"; 30 31 unpackPhase = '' 32 sh $src --keep --noexec ··· 38 39 buildPhase = '' 40 find . -type f -executable -exec patchelf \ 41 + --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ 42 '{}' \; || true 43 find . -type f -exec patchelf \ 44 + --set-rpath $rpath:$out/jre/lib/amd64/jli:$out/lib:$out/lib64:$out/nvvm/lib:$out/nvvm/lib64:$(cat $NIX_CC/nix-support/orig-gcc)/lib \ 45 --force-rpath \ 46 '{}' \; || true 47 '';
+1 -1
pkgs/development/compilers/fpc/lazarus.nix
··· 17 buildInputs = [ 18 fpc gtk glib libXi inputproto 19 libX11 xproto libXext xextproto pango atk 20 - stdenv.gcc makeWrapper gdk_pixbuf 21 ]; 22 in 23 stdenv.mkDerivation {
··· 17 buildInputs = [ 18 fpc gtk glib libXi inputproto 19 libX11 xproto libXext xextproto pango atk 20 + stdenv.cc makeWrapper gdk_pixbuf 21 ]; 22 in 23 stdenv.mkDerivation {
+4 -4
pkgs/development/compilers/gcc/3.4/builder.sh
··· 7 8 if test "$noSysDirs" = "1"; then 9 10 - if test -e $NIX_GCC/nix-support/orig-libc; then 11 12 # Figure out what extra flags to pass to the gcc compilers 13 # being generated to make sure that they use our glibc. 14 - extraCFlags="$(cat $NIX_GCC/nix-support/libc-cflags)" 15 - extraLDFlags="$(cat $NIX_GCC/nix-support/libc-ldflags) $(cat $NIX_GCC/nix-support/libc-ldflags-before)" 16 17 # Use *real* header files, otherwise a limits.h is generated 18 # that does not include Glibc's limits.h (notably missing 19 # SSIZE_MAX, which breaks the build). 20 - export NIX_FIXINC_DUMMY=$(cat $NIX_GCC/nix-support/orig-libc)/include 21 22 else 23 # Hack: support impure environments.
··· 7 8 if test "$noSysDirs" = "1"; then 9 10 + if test -e $NIX_CC/nix-support/orig-libc; then 11 12 # Figure out what extra flags to pass to the gcc compilers 13 # being generated to make sure that they use our glibc. 14 + extraCFlags="$(cat $NIX_CC/nix-support/libc-cflags)" 15 + extraLDFlags="$(cat $NIX_CC/nix-support/libc-ldflags) $(cat $NIX_CC/nix-support/libc-ldflags-before)" 16 17 # Use *real* header files, otherwise a limits.h is generated 18 # that does not include Glibc's limits.h (notably missing 19 # SSIZE_MAX, which breaks the build). 20 + export NIX_FIXINC_DUMMY=$(cat $NIX_CC/nix-support/orig-libc)/include 21 22 else 23 # Hack: support impure environments.
+3 -3
pkgs/development/compilers/gcc/4.2-apple64/builder.sh
··· 14 15 # Figure out what extra flags to pass to the gcc compilers being 16 # generated to make sure that they use our glibc. 17 - if test -e $NIX_GCC/nix-support/orig-glibc; then 18 - glibc=$(cat $NIX_GCC/nix-support/orig-glibc) 19 20 # Ugh. Copied from gcc-wrapper/builder.sh. We can't just 21 - # source in $NIX_GCC/nix-support/add-flags, since that would 22 # cause *this* GCC to be linked against the *previous* GCC. 23 # Need some more modularity there. 24 extraCFlags="-B$glibc/lib -isystem $glibc/include"
··· 14 15 # Figure out what extra flags to pass to the gcc compilers being 16 # generated to make sure that they use our glibc. 17 + if test -e $NIX_CC/nix-support/orig-glibc; then 18 + glibc=$(cat $NIX_CC/nix-support/orig-glibc) 19 20 # Ugh. Copied from gcc-wrapper/builder.sh. We can't just 21 + # source in $NIX_CC/nix-support/add-flags, since that would 22 # cause *this* GCC to be linked against the *previous* GCC. 23 # Need some more modularity there. 24 extraCFlags="-B$glibc/lib -isystem $glibc/include"
+4 -4
pkgs/development/compilers/gcc/4.3/builder.sh
··· 12 13 if test "$noSysDirs" = "1"; then 14 15 - if test -e $NIX_GCC/nix-support/orig-libc; then 16 17 # Figure out what extra flags to pass to the gcc compilers 18 # being generated to make sure that they use our glibc. 19 - extraCFlags="$(cat $NIX_GCC/nix-support/libc-cflags)" 20 - extraLDFlags="$(cat $NIX_GCC/nix-support/libc-ldflags) $(cat $NIX_GCC/nix-support/libc-ldflags-before)" 21 22 # Use *real* header files, otherwise a limits.h is generated 23 # that does not include Glibc's limits.h (notably missing 24 # SSIZE_MAX, which breaks the build). 25 - export NIX_FIXINC_DUMMY=$(cat $NIX_GCC/nix-support/orig-libc)/include 26 27 else 28 # Hack: support impure environments.
··· 12 13 if test "$noSysDirs" = "1"; then 14 15 + if test -e $NIX_CC/nix-support/orig-libc; then 16 17 # Figure out what extra flags to pass to the gcc compilers 18 # being generated to make sure that they use our glibc. 19 + extraCFlags="$(cat $NIX_CC/nix-support/libc-cflags)" 20 + extraLDFlags="$(cat $NIX_CC/nix-support/libc-ldflags) $(cat $NIX_CC/nix-support/libc-ldflags-before)" 21 22 # Use *real* header files, otherwise a limits.h is generated 23 # that does not include Glibc's limits.h (notably missing 24 # SSIZE_MAX, which breaks the build). 25 + export NIX_FIXINC_DUMMY=$(cat $NIX_CC/nix-support/orig-libc)/include 26 27 else 28 # Hack: support impure environments.
+11 -11
pkgs/development/compilers/gcc/4.4/builder.sh
··· 17 18 if test "$noSysDirs" = "1"; then 19 20 - if test -e $NIX_GCC/nix-support/orig-libc; then 21 22 # Figure out what extra flags to pass to the gcc compilers 23 # being generated to make sure that they use our glibc. 24 - extraFlags="$(cat $NIX_GCC/nix-support/libc-cflags)" 25 - extraLDFlags="$(cat $NIX_GCC/nix-support/libc-ldflags) $(cat $NIX_GCC/nix-support/libc-ldflags-before)" 26 27 # Use *real* header files, otherwise a limits.h is generated 28 # that does not include Glibc's limits.h (notably missing 29 # SSIZE_MAX, which breaks the build). 30 - export NIX_FIXINC_DUMMY=$(cat $NIX_GCC/nix-support/orig-libc)/include 31 32 # The path to the Glibc binaries such as `crti.o'. 33 - glibc_libdir="$(cat $NIX_GCC/nix-support/orig-libc)/lib" 34 35 else 36 # Hack: support impure environments. ··· 61 EXTRA_LDFLAGS_TARGET="-Wl,-L${libcCross}/lib" 62 fi 63 else 64 - if test -z "$NIX_GCC_CROSS"; then 65 EXTRA_FLAGS_TARGET="$EXTRA_FLAGS" 66 EXTRA_LDFLAGS_TARGET="$EXTRA_LDFLAGS" 67 else 68 # This the case of cross-building the gcc. 69 # We need special flags for the target, different than those of the build 70 # Assertion: 71 - test -e $NIX_GCC_CROSS/nix-support/orig-libc 72 73 # Figure out what extra flags to pass to the gcc compilers 74 # being generated to make sure that they use our glibc. 75 - extraFlags="$(cat $NIX_GCC_CROSS/nix-support/libc-cflags)" 76 - extraLDFlags="$(cat $NIX_GCC_CROSS/nix-support/libc-ldflags) $(cat $NIX_GCC_CROSS/nix-support/libc-ldflags-before)" 77 78 # Use *real* header files, otherwise a limits.h is generated 79 # that does not include Glibc's limits.h (notably missing 80 # SSIZE_MAX, which breaks the build). 81 - NIX_FIXINC_DUMMY_CROSS=$(cat $NIX_GCC_CROSS/nix-support/orig-libc)/include 82 83 # The path to the Glibc binaries such as `crti.o'. 84 - glibc_libdir="$(cat $NIX_GCC_CROSS/nix-support/orig-libc)/lib" 85 86 extraFlags="-g0 -O2 -I$NIX_FIXINC_DUMMY_CROSS $extraFlags" 87 extraLDFlags="--strip-debug -L$glibc_libdir -rpath $glibc_libdir $extraLDFlags"
··· 17 18 if test "$noSysDirs" = "1"; then 19 20 + if test -e $NIX_CC/nix-support/orig-libc; then 21 22 # Figure out what extra flags to pass to the gcc compilers 23 # being generated to make sure that they use our glibc. 24 + extraFlags="$(cat $NIX_CC/nix-support/libc-cflags)" 25 + extraLDFlags="$(cat $NIX_CC/nix-support/libc-ldflags) $(cat $NIX_CC/nix-support/libc-ldflags-before)" 26 27 # Use *real* header files, otherwise a limits.h is generated 28 # that does not include Glibc's limits.h (notably missing 29 # SSIZE_MAX, which breaks the build). 30 + export NIX_FIXINC_DUMMY=$(cat $NIX_CC/nix-support/orig-libc)/include 31 32 # The path to the Glibc binaries such as `crti.o'. 33 + glibc_libdir="$(cat $NIX_CC/nix-support/orig-libc)/lib" 34 35 else 36 # Hack: support impure environments. ··· 61 EXTRA_LDFLAGS_TARGET="-Wl,-L${libcCross}/lib" 62 fi 63 else 64 + if test -z "$NIX_CC_CROSS"; then 65 EXTRA_FLAGS_TARGET="$EXTRA_FLAGS" 66 EXTRA_LDFLAGS_TARGET="$EXTRA_LDFLAGS" 67 else 68 # This the case of cross-building the gcc. 69 # We need special flags for the target, different than those of the build 70 # Assertion: 71 + test -e $NIX_CC_CROSS/nix-support/orig-libc 72 73 # Figure out what extra flags to pass to the gcc compilers 74 # being generated to make sure that they use our glibc. 75 + extraFlags="$(cat $NIX_CC_CROSS/nix-support/libc-cflags)" 76 + extraLDFlags="$(cat $NIX_CC_CROSS/nix-support/libc-ldflags) $(cat $NIX_CC_CROSS/nix-support/libc-ldflags-before)" 77 78 # Use *real* header files, otherwise a limits.h is generated 79 # that does not include Glibc's limits.h (notably missing 80 # SSIZE_MAX, which breaks the build). 81 + NIX_FIXINC_DUMMY_CROSS=$(cat $NIX_CC_CROSS/nix-support/orig-libc)/include 82 83 # The path to the Glibc binaries such as `crti.o'. 84 + glibc_libdir="$(cat $NIX_CC_CROSS/nix-support/orig-libc)/lib" 85 86 extraFlags="-g0 -O2 -I$NIX_FIXINC_DUMMY_CROSS $extraFlags" 87 extraLDFlags="--strip-debug -L$glibc_libdir -rpath $glibc_libdir $extraLDFlags"
+1 -1
pkgs/development/compilers/gcc/4.4/default.nix
··· 188 NM_FOR_TARGET = "${stdenv.cross.config}-nm"; 189 CXX_FOR_TARGET = "${stdenv.cross.config}-g++"; 190 # If we are making a cross compiler, cross != null 191 - NIX_GCC_CROSS = if cross == null then "${stdenv.gccCross}" else ""; 192 configureFlags = " 193 ${if enableMultilib then "" else "--disable-multilib"} 194 ${if enableShared then "" else "--disable-shared"}
··· 188 NM_FOR_TARGET = "${stdenv.cross.config}-nm"; 189 CXX_FOR_TARGET = "${stdenv.cross.config}-g++"; 190 # If we are making a cross compiler, cross != null 191 + NIX_CC_CROSS = if cross == null then "${stdenv.ccCross}" else ""; 192 configureFlags = " 193 ${if enableMultilib then "" else "--disable-multilib"} 194 ${if enableShared then "" else "--disable-shared"}
+12 -12
pkgs/development/compilers/gcc/4.5/builder.sh
··· 23 24 if test "$noSysDirs" = "1"; then 25 26 - if test -e $NIX_GCC/nix-support/orig-libc; then 27 28 # Figure out what extra flags to pass to the gcc compilers 29 # being generated to make sure that they use our glibc. 30 - extraFlags="$(cat $NIX_GCC/nix-support/libc-cflags)" 31 - extraLDFlags="$(cat $NIX_GCC/nix-support/libc-ldflags) $(cat $NIX_GCC/nix-support/libc-ldflags-before)" 32 33 # Use *real* header files, otherwise a limits.h is generated 34 # that does not include Glibc's limits.h (notably missing 35 # SSIZE_MAX, which breaks the build). 36 - export NIX_FIXINC_DUMMY=$(cat $NIX_GCC/nix-support/orig-libc)/include 37 38 # The path to the Glibc binaries such as `crti.o'. 39 - glibc_libdir="$(cat $NIX_GCC/nix-support/orig-libc)/lib" 40 41 else 42 # Hack: support impure environments. ··· 67 EXTRA_TARGET_LDFLAGS="-Wl,-L${libcCross}/lib" 68 fi 69 else 70 - if test -z "$NIX_GCC_CROSS"; then 71 EXTRA_TARGET_CFLAGS="$EXTRA_FLAGS" 72 EXTRA_TARGET_LDFLAGS="$EXTRA_LDFLAGS" 73 else 74 # This the case of cross-building the gcc. 75 # We need special flags for the target, different than those of the build 76 # Assertion: 77 - test -e $NIX_GCC_CROSS/nix-support/orig-libc 78 79 # Figure out what extra flags to pass to the gcc compilers 80 # being generated to make sure that they use our glibc. 81 - extraFlags="$(cat $NIX_GCC_CROSS/nix-support/libc-cflags)" 82 - extraLDFlags="$(cat $NIX_GCC_CROSS/nix-support/libc-ldflags) $(cat $NIX_GCC_CROSS/nix-support/libc-ldflags-before)" 83 84 # Use *real* header files, otherwise a limits.h is generated 85 # that does not include Glibc's limits.h (notably missing 86 # SSIZE_MAX, which breaks the build). 87 - NIX_FIXINC_DUMMY_CROSS=$(cat $NIX_GCC_CROSS/nix-support/orig-libc)/include 88 89 # The path to the Glibc binaries such as `crti.o'. 90 - glibc_libdir="$(cat $NIX_GCC_CROSS/nix-support/orig-libc)/lib" 91 92 extraFlags="-I$NIX_FIXINC_DUMMY_CROSS $extraFlags" 93 extraLDFlags="-L$glibc_libdir -rpath $glibc_libdir $extraLDFlags" ··· 162 # Patch the configure script so it finds glibc headers 163 # It's important for example in order not to get libssp built, because it's 164 # functionality is in glibc already. 165 - glibc_headers="$(cat $NIX_GCC/nix-support/orig-libc)/include" 166 sed -i \ 167 -e s,glibc_header_dir=/usr/include,glibc_header_dir=$glibc_headers, \ 168 gcc/configure
··· 23 24 if test "$noSysDirs" = "1"; then 25 26 + if test -e $NIX_CC/nix-support/orig-libc; then 27 28 # Figure out what extra flags to pass to the gcc compilers 29 # being generated to make sure that they use our glibc. 30 + extraFlags="$(cat $NIX_CC/nix-support/libc-cflags)" 31 + extraLDFlags="$(cat $NIX_CC/nix-support/libc-ldflags) $(cat $NIX_CC/nix-support/libc-ldflags-before)" 32 33 # Use *real* header files, otherwise a limits.h is generated 34 # that does not include Glibc's limits.h (notably missing 35 # SSIZE_MAX, which breaks the build). 36 + export NIX_FIXINC_DUMMY=$(cat $NIX_CC/nix-support/orig-libc)/include 37 38 # The path to the Glibc binaries such as `crti.o'. 39 + glibc_libdir="$(cat $NIX_CC/nix-support/orig-libc)/lib" 40 41 else 42 # Hack: support impure environments. ··· 67 EXTRA_TARGET_LDFLAGS="-Wl,-L${libcCross}/lib" 68 fi 69 else 70 + if test -z "$NIX_CC_CROSS"; then 71 EXTRA_TARGET_CFLAGS="$EXTRA_FLAGS" 72 EXTRA_TARGET_LDFLAGS="$EXTRA_LDFLAGS" 73 else 74 # This the case of cross-building the gcc. 75 # We need special flags for the target, different than those of the build 76 # Assertion: 77 + test -e $NIX_CC_CROSS/nix-support/orig-libc 78 79 # Figure out what extra flags to pass to the gcc compilers 80 # being generated to make sure that they use our glibc. 81 + extraFlags="$(cat $NIX_CC_CROSS/nix-support/libc-cflags)" 82 + extraLDFlags="$(cat $NIX_CC_CROSS/nix-support/libc-ldflags) $(cat $NIX_CC_CROSS/nix-support/libc-ldflags-before)" 83 84 # Use *real* header files, otherwise a limits.h is generated 85 # that does not include Glibc's limits.h (notably missing 86 # SSIZE_MAX, which breaks the build). 87 + NIX_FIXINC_DUMMY_CROSS=$(cat $NIX_CC_CROSS/nix-support/orig-libc)/include 88 89 # The path to the Glibc binaries such as `crti.o'. 90 + glibc_libdir="$(cat $NIX_CC_CROSS/nix-support/orig-libc)/lib" 91 92 extraFlags="-I$NIX_FIXINC_DUMMY_CROSS $extraFlags" 93 extraLDFlags="-L$glibc_libdir -rpath $glibc_libdir $extraLDFlags" ··· 162 # Patch the configure script so it finds glibc headers 163 # It's important for example in order not to get libssp built, because it's 164 # functionality is in glibc already. 165 + glibc_headers="$(cat $NIX_CC/nix-support/orig-libc)/include" 166 sed -i \ 167 -e s,glibc_header_dir=/usr/include,glibc_header_dir=$glibc_headers, \ 168 gcc/configure
+3 -3
pkgs/development/compilers/gcc/4.5/default.nix
··· 185 sed -i gcc/config/t-gnu \ 186 -es'|NATIVE_SYSTEM_HEADER_DIR.*$|NATIVE_SYSTEM_HEADER_DIR = ${libc}/include|g' 187 '' 188 - else if cross != null || stdenv.gcc.libc != null then 189 # On NixOS, use the right path to the dynamic linker instead of 190 # `/lib/ld*.so'. 191 let 192 - libc = if libcCross != null then libcCross else stdenv.gcc.libc; 193 in 194 '' echo "fixing the \`GLIBC_DYNAMIC_LINKER' and \`UCLIBC_DYNAMIC_LINKER' macros..." 195 for header in "gcc/config/"*-gnu.h "gcc/config/"*"/"*.h ··· 272 NM_FOR_TARGET = "${stdenv.cross.config}-nm"; 273 CXX_FOR_TARGET = "${stdenv.cross.config}-g++"; 274 # If we are making a cross compiler, cross != null 275 - NIX_GCC_CROSS = if cross == null then "${stdenv.gccCross}" else ""; 276 dontStrip = true; 277 configureFlags = '' 278 ${if enableMultilib then "" else "--disable-multilib"}
··· 185 sed -i gcc/config/t-gnu \ 186 -es'|NATIVE_SYSTEM_HEADER_DIR.*$|NATIVE_SYSTEM_HEADER_DIR = ${libc}/include|g' 187 '' 188 + else if cross != null || stdenv.cc.libc != null then 189 # On NixOS, use the right path to the dynamic linker instead of 190 # `/lib/ld*.so'. 191 let 192 + libc = if libcCross != null then libcCross else stdenv.cc.libc; 193 in 194 '' echo "fixing the \`GLIBC_DYNAMIC_LINKER' and \`UCLIBC_DYNAMIC_LINKER' macros..." 195 for header in "gcc/config/"*-gnu.h "gcc/config/"*"/"*.h ··· 272 NM_FOR_TARGET = "${stdenv.cross.config}-nm"; 273 CXX_FOR_TARGET = "${stdenv.cross.config}-g++"; 274 # If we are making a cross compiler, cross != null 275 + NIX_CC_CROSS = if cross == null then "${stdenv.ccCross}" else ""; 276 dontStrip = true; 277 configureFlags = '' 278 ${if enableMultilib then "" else "--disable-multilib"}
+13 -13
pkgs/development/compilers/gcc/4.6/builder.sh
··· 19 20 if test "$noSysDirs" = "1"; then 21 22 - if test -e $NIX_GCC/nix-support/orig-libc; then 23 24 # Figure out what extra flags to pass to the gcc compilers 25 # being generated to make sure that they use our glibc. 26 - extraFlags="$(cat $NIX_GCC/nix-support/libc-cflags)" 27 - extraLDFlags="$(cat $NIX_GCC/nix-support/libc-ldflags) $(cat $NIX_GCC/nix-support/libc-ldflags-before)" 28 29 # Use *real* header files, otherwise a limits.h is generated 30 # that does not include Glibc's limits.h (notably missing 31 # SSIZE_MAX, which breaks the build). 32 - export NIX_FIXINC_DUMMY=$(cat $NIX_GCC/nix-support/orig-libc)/include 33 34 # The path to the Glibc binaries such as `crti.o'. 35 - glibc_libdir="$(cat $NIX_GCC/nix-support/orig-libc)/lib" 36 37 else 38 # Hack: support impure environments. ··· 74 EXTRA_TARGET_LDFLAGS="-Wl,-L${libcCross}/lib" 75 fi 76 else 77 - if test -z "$NIX_GCC_CROSS"; then 78 EXTRA_TARGET_CFLAGS="$EXTRA_FLAGS" 79 EXTRA_TARGET_LDFLAGS="$EXTRA_LDFLAGS" 80 else 81 # This the case of cross-building the gcc. 82 # We need special flags for the target, different than those of the build 83 # Assertion: 84 - test -e $NIX_GCC_CROSS/nix-support/orig-libc 85 86 # Figure out what extra flags to pass to the gcc compilers 87 # being generated to make sure that they use our glibc. 88 - extraFlags="$(cat $NIX_GCC_CROSS/nix-support/libc-cflags)" 89 - extraLDFlags="$(cat $NIX_GCC_CROSS/nix-support/libc-ldflags) $(cat $NIX_GCC_CROSS/nix-support/libc-ldflags-before)" 90 91 # Use *real* header files, otherwise a limits.h is generated 92 # that does not include Glibc's limits.h (notably missing 93 # SSIZE_MAX, which breaks the build). 94 - NIX_FIXINC_DUMMY_CROSS=$(cat $NIX_GCC_CROSS/nix-support/orig-libc)/include 95 96 # The path to the Glibc binaries such as `crti.o'. 97 - glibc_libdir="$(cat $NIX_GCC_CROSS/nix-support/orig-libc)/lib" 98 99 extraFlags="-I$NIX_FIXINC_DUMMY_CROSS $extraFlags" 100 extraLDFlags="-L$glibc_libdir -rpath $glibc_libdir $extraLDFlags" ··· 166 rm -Rf zlib 167 fi 168 169 - if test -f "$NIX_GCC/nix-support/orig-libc"; then 170 # Patch the configure script so it finds glibc headers. It's 171 # important for example in order not to get libssp built, 172 # because its functionality is in glibc already. 173 - glibc_headers="$(cat $NIX_GCC/nix-support/orig-libc)/include" 174 sed -i \ 175 -e "s,glibc_header_dir=/usr/include,glibc_header_dir=$glibc_headers", \ 176 gcc/configure
··· 19 20 if test "$noSysDirs" = "1"; then 21 22 + if test -e $NIX_CC/nix-support/orig-libc; then 23 24 # Figure out what extra flags to pass to the gcc compilers 25 # being generated to make sure that they use our glibc. 26 + extraFlags="$(cat $NIX_CC/nix-support/libc-cflags)" 27 + extraLDFlags="$(cat $NIX_CC/nix-support/libc-ldflags) $(cat $NIX_CC/nix-support/libc-ldflags-before)" 28 29 # Use *real* header files, otherwise a limits.h is generated 30 # that does not include Glibc's limits.h (notably missing 31 # SSIZE_MAX, which breaks the build). 32 + export NIX_FIXINC_DUMMY=$(cat $NIX_CC/nix-support/orig-libc)/include 33 34 # The path to the Glibc binaries such as `crti.o'. 35 + glibc_libdir="$(cat $NIX_CC/nix-support/orig-libc)/lib" 36 37 else 38 # Hack: support impure environments. ··· 74 EXTRA_TARGET_LDFLAGS="-Wl,-L${libcCross}/lib" 75 fi 76 else 77 + if test -z "$NIX_CC_CROSS"; then 78 EXTRA_TARGET_CFLAGS="$EXTRA_FLAGS" 79 EXTRA_TARGET_LDFLAGS="$EXTRA_LDFLAGS" 80 else 81 # This the case of cross-building the gcc. 82 # We need special flags for the target, different than those of the build 83 # Assertion: 84 + test -e $NIX_CC_CROSS/nix-support/orig-libc 85 86 # Figure out what extra flags to pass to the gcc compilers 87 # being generated to make sure that they use our glibc. 88 + extraFlags="$(cat $NIX_CC_CROSS/nix-support/libc-cflags)" 89 + extraLDFlags="$(cat $NIX_CC_CROSS/nix-support/libc-ldflags) $(cat $NIX_CC_CROSS/nix-support/libc-ldflags-before)" 90 91 # Use *real* header files, otherwise a limits.h is generated 92 # that does not include Glibc's limits.h (notably missing 93 # SSIZE_MAX, which breaks the build). 94 + NIX_FIXINC_DUMMY_CROSS=$(cat $NIX_CC_CROSS/nix-support/orig-libc)/include 95 96 # The path to the Glibc binaries such as `crti.o'. 97 + glibc_libdir="$(cat $NIX_CC_CROSS/nix-support/orig-libc)/lib" 98 99 extraFlags="-I$NIX_FIXINC_DUMMY_CROSS $extraFlags" 100 extraLDFlags="-L$glibc_libdir -rpath $glibc_libdir $extraLDFlags" ··· 166 rm -Rf zlib 167 fi 168 169 + if test -f "$NIX_CC/nix-support/orig-libc"; then 170 # Patch the configure script so it finds glibc headers. It's 171 # important for example in order not to get libssp built, 172 # because its functionality is in glibc already. 173 + glibc_headers="$(cat $NIX_CC/nix-support/orig-libc)/include" 174 sed -i \ 175 -e "s,glibc_header_dir=/usr/include,glibc_header_dir=$glibc_headers", \ 176 gcc/configure
+3 -3
pkgs/development/compilers/gcc/4.6/default.nix
··· 229 sed -i gcc/config/t-gnu \ 230 -es'|NATIVE_SYSTEM_HEADER_DIR.*$|NATIVE_SYSTEM_HEADER_DIR = ${libc}/include|g' 231 '' 232 - else if cross != null || stdenv.gcc.libc != null then 233 # On NixOS, use the right path to the dynamic linker instead of 234 # `/lib/ld*.so'. 235 let 236 - libc = if libcCross != null then libcCross else stdenv.gcc.libc; 237 in 238 '' echo "fixing the \`GLIBC_DYNAMIC_LINKER' and \`UCLIBC_DYNAMIC_LINKER' macros..." 239 for header in "gcc/config/"*-gnu.h "gcc/config/"*"/"*.h ··· 339 NM_FOR_TARGET = "${stdenv.cross.config}-nm"; 340 CXX_FOR_TARGET = "${stdenv.cross.config}-g++"; 341 # If we are making a cross compiler, cross != null 342 - NIX_GCC_CROSS = if cross == null then "${stdenv.gccCross}" else ""; 343 dontStrip = true; 344 configureFlags = '' 345 ${if enableMultilib then "" else "--disable-multilib"}
··· 229 sed -i gcc/config/t-gnu \ 230 -es'|NATIVE_SYSTEM_HEADER_DIR.*$|NATIVE_SYSTEM_HEADER_DIR = ${libc}/include|g' 231 '' 232 + else if cross != null || stdenv.cc.libc != null then 233 # On NixOS, use the right path to the dynamic linker instead of 234 # `/lib/ld*.so'. 235 let 236 + libc = if libcCross != null then libcCross else stdenv.cc.libc; 237 in 238 '' echo "fixing the \`GLIBC_DYNAMIC_LINKER' and \`UCLIBC_DYNAMIC_LINKER' macros..." 239 for header in "gcc/config/"*-gnu.h "gcc/config/"*"/"*.h ··· 339 NM_FOR_TARGET = "${stdenv.cross.config}-nm"; 340 CXX_FOR_TARGET = "${stdenv.cross.config}-g++"; 341 # If we are making a cross compiler, cross != null 342 + NIX_CC_CROSS = if cross == null then "${stdenv.ccCross}" else ""; 343 dontStrip = true; 344 configureFlags = '' 345 ${if enableMultilib then "" else "--disable-multilib"}
+13 -13
pkgs/development/compilers/gcc/4.8/builder.sh
··· 19 20 if test "$noSysDirs" = "1"; then 21 22 - if test -e $NIX_GCC/nix-support/orig-libc; then 23 24 # Figure out what extra flags to pass to the gcc compilers 25 # being generated to make sure that they use our glibc. 26 - extraFlags="$(cat $NIX_GCC/nix-support/libc-cflags)" 27 - extraLDFlags="$(cat $NIX_GCC/nix-support/libc-ldflags) $(cat $NIX_GCC/nix-support/libc-ldflags-before)" 28 29 # Use *real* header files, otherwise a limits.h is generated 30 # that does not include Glibc's limits.h (notably missing 31 # SSIZE_MAX, which breaks the build). 32 - export NIX_FIXINC_DUMMY=$(cat $NIX_GCC/nix-support/orig-libc)/include 33 34 # The path to the Glibc binaries such as `crti.o'. 35 - glibc_libdir="$(cat $NIX_GCC/nix-support/orig-libc)/lib" 36 37 else 38 # Hack: support impure environments. ··· 74 EXTRA_TARGET_LDFLAGS="-Wl,-L${libcCross}/lib -Wl,-rpath,${libcCross}/lib -Wl,-rpath-link,${libcCross}/lib" 75 fi 76 else 77 - if test -z "$NIX_GCC_CROSS"; then 78 EXTRA_TARGET_CFLAGS="$EXTRA_FLAGS" 79 EXTRA_TARGET_CXXFLAGS="$EXTRA_FLAGS" 80 EXTRA_TARGET_LDFLAGS="$EXTRA_LDFLAGS" ··· 82 # This the case of cross-building the gcc. 83 # We need special flags for the target, different than those of the build 84 # Assertion: 85 - test -e $NIX_GCC_CROSS/nix-support/orig-libc 86 87 # Figure out what extra flags to pass to the gcc compilers 88 # being generated to make sure that they use our glibc. 89 - extraFlags="$(cat $NIX_GCC_CROSS/nix-support/libc-cflags)" 90 - extraLDFlags="$(cat $NIX_GCC_CROSS/nix-support/libc-ldflags) $(cat $NIX_GCC_CROSS/nix-support/libc-ldflags-before)" 91 92 # Use *real* header files, otherwise a limits.h is generated 93 # that does not include Glibc's limits.h (notably missing 94 # SSIZE_MAX, which breaks the build). 95 - NIX_FIXINC_DUMMY_CROSS=$(cat $NIX_GCC_CROSS/nix-support/orig-libc)/include 96 97 # The path to the Glibc binaries such as `crti.o'. 98 - glibc_dir="$(cat $NIX_GCC_CROSS/nix-support/orig-libc)" 99 glibc_libdir="$glibc_dir/lib" 100 configureFlags="$configureFlags --with-native-system-header-dir=$glibc_dir/include" 101 ··· 167 rm -Rf zlib 168 fi 169 170 - if test -f "$NIX_GCC/nix-support/orig-libc"; then 171 # Patch the configure script so it finds glibc headers. It's 172 # important for example in order not to get libssp built, 173 # because its functionality is in glibc already. 174 - glibc_headers="$(cat $NIX_GCC/nix-support/orig-libc)/include" 175 sed -i \ 176 -e "s,glibc_header_dir=/usr/include,glibc_header_dir=$glibc_headers", \ 177 gcc/configure
··· 19 20 if test "$noSysDirs" = "1"; then 21 22 + if test -e $NIX_CC/nix-support/orig-libc; then 23 24 # Figure out what extra flags to pass to the gcc compilers 25 # being generated to make sure that they use our glibc. 26 + extraFlags="$(cat $NIX_CC/nix-support/libc-cflags)" 27 + extraLDFlags="$(cat $NIX_CC/nix-support/libc-ldflags) $(cat $NIX_CC/nix-support/libc-ldflags-before)" 28 29 # Use *real* header files, otherwise a limits.h is generated 30 # that does not include Glibc's limits.h (notably missing 31 # SSIZE_MAX, which breaks the build). 32 + export NIX_FIXINC_DUMMY=$(cat $NIX_CC/nix-support/orig-libc)/include 33 34 # The path to the Glibc binaries such as `crti.o'. 35 + glibc_libdir="$(cat $NIX_CC/nix-support/orig-libc)/lib" 36 37 else 38 # Hack: support impure environments. ··· 74 EXTRA_TARGET_LDFLAGS="-Wl,-L${libcCross}/lib -Wl,-rpath,${libcCross}/lib -Wl,-rpath-link,${libcCross}/lib" 75 fi 76 else 77 + if test -z "$NIX_CC_CROSS"; then 78 EXTRA_TARGET_CFLAGS="$EXTRA_FLAGS" 79 EXTRA_TARGET_CXXFLAGS="$EXTRA_FLAGS" 80 EXTRA_TARGET_LDFLAGS="$EXTRA_LDFLAGS" ··· 82 # This the case of cross-building the gcc. 83 # We need special flags for the target, different than those of the build 84 # Assertion: 85 + test -e $NIX_CC_CROSS/nix-support/orig-libc 86 87 # Figure out what extra flags to pass to the gcc compilers 88 # being generated to make sure that they use our glibc. 89 + extraFlags="$(cat $NIX_CC_CROSS/nix-support/libc-cflags)" 90 + extraLDFlags="$(cat $NIX_CC_CROSS/nix-support/libc-ldflags) $(cat $NIX_CC_CROSS/nix-support/libc-ldflags-before)" 91 92 # Use *real* header files, otherwise a limits.h is generated 93 # that does not include Glibc's limits.h (notably missing 94 # SSIZE_MAX, which breaks the build). 95 + NIX_FIXINC_DUMMY_CROSS=$(cat $NIX_CC_CROSS/nix-support/orig-libc)/include 96 97 # The path to the Glibc binaries such as `crti.o'. 98 + glibc_dir="$(cat $NIX_CC_CROSS/nix-support/orig-libc)" 99 glibc_libdir="$glibc_dir/lib" 100 configureFlags="$configureFlags --with-native-system-header-dir=$glibc_dir/include" 101 ··· 167 rm -Rf zlib 168 fi 169 170 + if test -f "$NIX_CC/nix-support/orig-libc"; then 171 # Patch the configure script so it finds glibc headers. It's 172 # important for example in order not to get libssp built, 173 # because its functionality is in glibc already. 174 + glibc_headers="$(cat $NIX_CC/nix-support/orig-libc)/include" 175 sed -i \ 176 -e "s,glibc_header_dir=/usr/include,glibc_header_dir=$glibc_headers", \ 177 gcc/configure
+3 -3
pkgs/development/compilers/gcc/4.8/default.nix
··· 251 sed -i "${gnu_h}" \ 252 -es'|#define STANDARD_INCLUDE_DIR.*$|#define STANDARD_INCLUDE_DIR "${libc}/include"|g' 253 '' 254 - else if cross != null || stdenv.gcc.libc != null then 255 # On NixOS, use the right path to the dynamic linker instead of 256 # `/lib/ld*.so'. 257 let 258 - libc = if libcCross != null then libcCross else stdenv.gcc.libc; 259 in 260 '' echo "fixing the \`GLIBC_DYNAMIC_LINKER' and \`UCLIBC_DYNAMIC_LINKER' macros..." 261 for header in "gcc/config/"*-gnu.h "gcc/config/"*"/"*.h ··· 397 NM_FOR_TARGET = "${stdenv.cross.config}-nm"; 398 CXX_FOR_TARGET = "${stdenv.cross.config}-g++"; 399 # If we are making a cross compiler, cross != null 400 - NIX_GCC_CROSS = if cross == null then "${stdenv.gccCross}" else ""; 401 dontStrip = true; 402 configureFlags = '' 403 ${if enableMultilib then "" else "--disable-multilib"}
··· 251 sed -i "${gnu_h}" \ 252 -es'|#define STANDARD_INCLUDE_DIR.*$|#define STANDARD_INCLUDE_DIR "${libc}/include"|g' 253 '' 254 + else if cross != null || stdenv.cc.libc != null then 255 # On NixOS, use the right path to the dynamic linker instead of 256 # `/lib/ld*.so'. 257 let 258 + libc = if libcCross != null then libcCross else stdenv.cc.libc; 259 in 260 '' echo "fixing the \`GLIBC_DYNAMIC_LINKER' and \`UCLIBC_DYNAMIC_LINKER' macros..." 261 for header in "gcc/config/"*-gnu.h "gcc/config/"*"/"*.h ··· 397 NM_FOR_TARGET = "${stdenv.cross.config}-nm"; 398 CXX_FOR_TARGET = "${stdenv.cross.config}-g++"; 399 # If we are making a cross compiler, cross != null 400 + NIX_CC_CROSS = if cross == null then "${stdenv.ccCross}" else ""; 401 dontStrip = true; 402 configureFlags = '' 403 ${if enableMultilib then "" else "--disable-multilib"}
+13 -13
pkgs/development/compilers/gcc/4.9/builder.sh
··· 19 20 if test "$noSysDirs" = "1"; then 21 22 - if test -e $NIX_GCC/nix-support/orig-libc; then 23 24 # Figure out what extra flags to pass to the gcc compilers 25 # being generated to make sure that they use our glibc. 26 - extraFlags="$(cat $NIX_GCC/nix-support/libc-cflags)" 27 - extraLDFlags="$(cat $NIX_GCC/nix-support/libc-ldflags) $(cat $NIX_GCC/nix-support/libc-ldflags-before)" 28 29 # Use *real* header files, otherwise a limits.h is generated 30 # that does not include Glibc's limits.h (notably missing 31 # SSIZE_MAX, which breaks the build). 32 - export NIX_FIXINC_DUMMY=$(cat $NIX_GCC/nix-support/orig-libc)/include 33 34 # The path to the Glibc binaries such as `crti.o'. 35 - glibc_libdir="$(cat $NIX_GCC/nix-support/orig-libc)/lib" 36 37 else 38 # Hack: support impure environments. ··· 74 EXTRA_TARGET_LDFLAGS="-Wl,-L${libcCross}/lib -Wl,-rpath,${libcCross}/lib -Wl,-rpath-link,${libcCross}/lib" 75 fi 76 else 77 - if test -z "$NIX_GCC_CROSS"; then 78 EXTRA_TARGET_CFLAGS="$EXTRA_FLAGS" 79 EXTRA_TARGET_CXXFLAGS="$EXTRA_FLAGS" 80 EXTRA_TARGET_LDFLAGS="$EXTRA_LDFLAGS" ··· 82 # This the case of cross-building the gcc. 83 # We need special flags for the target, different than those of the build 84 # Assertion: 85 - test -e $NIX_GCC_CROSS/nix-support/orig-libc 86 87 # Figure out what extra flags to pass to the gcc compilers 88 # being generated to make sure that they use our glibc. 89 - extraFlags="$(cat $NIX_GCC_CROSS/nix-support/libc-cflags)" 90 - extraLDFlags="$(cat $NIX_GCC_CROSS/nix-support/libc-ldflags) $(cat $NIX_GCC_CROSS/nix-support/libc-ldflags-before)" 91 92 # Use *real* header files, otherwise a limits.h is generated 93 # that does not include Glibc's limits.h (notably missing 94 # SSIZE_MAX, which breaks the build). 95 - NIX_FIXINC_DUMMY_CROSS=$(cat $NIX_GCC_CROSS/nix-support/orig-libc)/include 96 97 # The path to the Glibc binaries such as `crti.o'. 98 - glibc_dir="$(cat $NIX_GCC_CROSS/nix-support/orig-libc)" 99 glibc_libdir="$glibc_dir/lib" 100 configureFlags="$configureFlags --with-native-system-header-dir=$glibc_dir/include" 101 ··· 171 rm -Rf zlib 172 fi 173 174 - if test -f "$NIX_GCC/nix-support/orig-libc"; then 175 # Patch the configure script so it finds glibc headers. It's 176 # important for example in order not to get libssp built, 177 # because its functionality is in glibc already. 178 - glibc_headers="$(cat $NIX_GCC/nix-support/orig-libc)/include" 179 sed -i \ 180 -e "s,glibc_header_dir=/usr/include,glibc_header_dir=$glibc_headers", \ 181 gcc/configure
··· 19 20 if test "$noSysDirs" = "1"; then 21 22 + if test -e $NIX_CC/nix-support/orig-libc; then 23 24 # Figure out what extra flags to pass to the gcc compilers 25 # being generated to make sure that they use our glibc. 26 + extraFlags="$(cat $NIX_CC/nix-support/libc-cflags)" 27 + extraLDFlags="$(cat $NIX_CC/nix-support/libc-ldflags) $(cat $NIX_CC/nix-support/libc-ldflags-before)" 28 29 # Use *real* header files, otherwise a limits.h is generated 30 # that does not include Glibc's limits.h (notably missing 31 # SSIZE_MAX, which breaks the build). 32 + export NIX_FIXINC_DUMMY=$(cat $NIX_CC/nix-support/orig-libc)/include 33 34 # The path to the Glibc binaries such as `crti.o'. 35 + glibc_libdir="$(cat $NIX_CC/nix-support/orig-libc)/lib" 36 37 else 38 # Hack: support impure environments. ··· 74 EXTRA_TARGET_LDFLAGS="-Wl,-L${libcCross}/lib -Wl,-rpath,${libcCross}/lib -Wl,-rpath-link,${libcCross}/lib" 75 fi 76 else 77 + if test -z "$NIX_CC_CROSS"; then 78 EXTRA_TARGET_CFLAGS="$EXTRA_FLAGS" 79 EXTRA_TARGET_CXXFLAGS="$EXTRA_FLAGS" 80 EXTRA_TARGET_LDFLAGS="$EXTRA_LDFLAGS" ··· 82 # This the case of cross-building the gcc. 83 # We need special flags for the target, different than those of the build 84 # Assertion: 85 + test -e $NIX_CC_CROSS/nix-support/orig-libc 86 87 # Figure out what extra flags to pass to the gcc compilers 88 # being generated to make sure that they use our glibc. 89 + extraFlags="$(cat $NIX_CC_CROSS/nix-support/libc-cflags)" 90 + extraLDFlags="$(cat $NIX_CC_CROSS/nix-support/libc-ldflags) $(cat $NIX_CC_CROSS/nix-support/libc-ldflags-before)" 91 92 # Use *real* header files, otherwise a limits.h is generated 93 # that does not include Glibc's limits.h (notably missing 94 # SSIZE_MAX, which breaks the build). 95 + NIX_FIXINC_DUMMY_CROSS=$(cat $NIX_CC_CROSS/nix-support/orig-libc)/include 96 97 # The path to the Glibc binaries such as `crti.o'. 98 + glibc_dir="$(cat $NIX_CC_CROSS/nix-support/orig-libc)" 99 glibc_libdir="$glibc_dir/lib" 100 configureFlags="$configureFlags --with-native-system-header-dir=$glibc_dir/include" 101 ··· 171 rm -Rf zlib 172 fi 173 174 + if test -f "$NIX_CC/nix-support/orig-libc"; then 175 # Patch the configure script so it finds glibc headers. It's 176 # important for example in order not to get libssp built, 177 # because its functionality is in glibc already. 178 + glibc_headers="$(cat $NIX_CC/nix-support/orig-libc)/include" 179 sed -i \ 180 -e "s,glibc_header_dir=/usr/include,glibc_header_dir=$glibc_headers", \ 181 gcc/configure
+3 -3
pkgs/development/compilers/gcc/4.9/default.nix
··· 247 sed -i "${gnu_h}" \ 248 -es'|#define STANDARD_INCLUDE_DIR.*$|#define STANDARD_INCLUDE_DIR "${libc}/include"|g' 249 '' 250 - else if cross != null || stdenv.gcc.libc != null then 251 # On NixOS, use the right path to the dynamic linker instead of 252 # `/lib/ld*.so'. 253 let 254 - libc = if libcCross != null then libcCross else stdenv.gcc.libc; 255 in 256 '' echo "fixing the \`GLIBC_DYNAMIC_LINKER' and \`UCLIBC_DYNAMIC_LINKER' macros..." 257 for header in "gcc/config/"*-gnu.h "gcc/config/"*"/"*.h ··· 385 NM_FOR_TARGET = "${stdenv.cross.config}-nm"; 386 CXX_FOR_TARGET = "${stdenv.cross.config}-g++"; 387 # If we are making a cross compiler, cross != null 388 - NIX_GCC_CROSS = if cross == null then "${stdenv.gccCross}" else ""; 389 dontStrip = true; 390 configureFlags = '' 391 ${if enableMultilib then "" else "--disable-multilib"}
··· 247 sed -i "${gnu_h}" \ 248 -es'|#define STANDARD_INCLUDE_DIR.*$|#define STANDARD_INCLUDE_DIR "${libc}/include"|g' 249 '' 250 + else if cross != null || stdenv.cc.libc != null then 251 # On NixOS, use the right path to the dynamic linker instead of 252 # `/lib/ld*.so'. 253 let 254 + libc = if libcCross != null then libcCross else stdenv.cc.libc; 255 in 256 '' echo "fixing the \`GLIBC_DYNAMIC_LINKER' and \`UCLIBC_DYNAMIC_LINKER' macros..." 257 for header in "gcc/config/"*-gnu.h "gcc/config/"*"/"*.h ··· 385 NM_FOR_TARGET = "${stdenv.cross.config}-nm"; 386 CXX_FOR_TARGET = "${stdenv.cross.config}-g++"; 387 # If we are making a cross compiler, cross != null 388 + NIX_CC_CROSS = if cross == null then "${stdenv.ccCross}" else ""; 389 dontStrip = true; 390 configureFlags = '' 391 ${if enableMultilib then "" else "--disable-multilib"}
+6 -6
pkgs/development/compilers/gcl/default.nix
··· 9 in 10 11 ( 12 - assert a.stdenv ? gcc ; 13 - assert a.stdenv.gcc ? gcc ; 14 - assert a.stdenv.gcc ? libc ; 15 - assert a.stdenv.gcc.gcc != null ; 16 - assert a.stdenv.gcc.libc != null ; 17 18 rec { 19 src = a.fetchurl { ··· 37 preBuild = a.fullDepEntry ('' 38 sed -re "s@/bin/cat@$(which cat)@g" -i configure */configure 39 sed -re "s@if test -d /proc/self @if false @" -i configure 40 - sed -re 's^([ \t])cpp ^\1cpp -I${a.stdenv.gcc.gcc}/include -I${a.stdenv.gcc.libc}/include ^g' -i makefile 41 '') ["minInit" "doUnpack" "addInputs"]; 42 43 /* doConfigure should be removed if not needed */
··· 9 in 10 11 ( 12 + assert a.stdenv ? cc ; 13 + assert a.stdenv.cc ? gcc ; 14 + assert a.stdenv.cc ? libc ; 15 + assert a.stdenv.cc.gcc != null ; 16 + assert a.stdenv.cc.libc != null ; 17 18 rec { 19 src = a.fetchurl { ··· 37 preBuild = a.fullDepEntry ('' 38 sed -re "s@/bin/cat@$(which cat)@g" -i configure */configure 39 sed -re "s@if test -d /proc/self @if false @" -i configure 40 + sed -re 's^([ \t])cpp ^\1cpp -I${a.stdenv.cc.gcc}/include -I${a.stdenv.cc.libc}/include ^g' -i makefile 41 '') ["minInit" "doUnpack" "addInputs"]; 42 43 /* doConfigure should be removed if not needed */
+1 -1
pkgs/development/compilers/ghc/6.10.1-binary.nix
··· 45 # find editline/gmp. 46 (if stdenv.isLinux then '' 47 find . -type f -perm +100 \ 48 - -exec patchelf --interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" \ 49 --set-rpath "${libedit}/lib:${ncurses}/lib:${gmp}/lib" {} \; 50 for prog in ld ar gcc strip ranlib; do 51 find . -name "setup-config" -exec sed -i "s@/usr/bin/$prog@$(type -p $prog)@g" {} \;
··· 45 # find editline/gmp. 46 (if stdenv.isLinux then '' 47 find . -type f -perm +100 \ 48 + -exec patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ 49 --set-rpath "${libedit}/lib:${ncurses}/lib:${gmp}/lib" {} \; 50 for prog in ld ar gcc strip ranlib; do 51 find . -name "setup-config" -exec sed -i "s@/usr/bin/$prog@$(type -p $prog)@g" {} \;
+1 -1
pkgs/development/compilers/ghc/6.10.1.nix
··· 17 configureFlags=[ 18 "--with-gmp-libraries=${gmp}/lib" 19 "--with-gmp-includes=${gmp}/include" 20 - "--with-gcc=${stdenv.gcc}/bin/gcc" 21 ]; 22 23 meta = {
··· 17 configureFlags=[ 18 "--with-gmp-libraries=${gmp}/lib" 19 "--with-gmp-includes=${gmp}/include" 20 + "--with-gcc=${stdenv.cc}/bin/gcc" 21 ]; 22 23 meta = {
+1 -1
pkgs/development/compilers/ghc/6.10.2-binary.nix
··· 39 # find editline/gmp. 40 (if stdenv.isLinux then '' 41 find . -type f -perm +100 \ 42 - -exec patchelf --interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" \ 43 --set-rpath "${libedit}/lib:${ncurses}/lib:${gmp}/lib" {} \; 44 for prog in ld ar gcc strip ranlib; do 45 find . -name "setup-config" -exec sed -i "s@/usr/bin/$prog@$(type -p $prog)@g" {} \;
··· 39 # find editline/gmp. 40 (if stdenv.isLinux then '' 41 find . -type f -perm +100 \ 42 + -exec patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ 43 --set-rpath "${libedit}/lib:${ncurses}/lib:${gmp}/lib" {} \; 44 for prog in ld ar gcc strip ranlib; do 45 find . -name "setup-config" -exec sed -i "s@/usr/bin/$prog@$(type -p $prog)@g" {} \;
+1 -1
pkgs/development/compilers/ghc/6.10.2.nix
··· 17 configureFlags=[ 18 "--with-gmp-libraries=${gmp}/lib" 19 "--with-gmp-includes=${gmp}/include" 20 - "--with-gcc=${stdenv.gcc}/bin/gcc" 21 ]; 22 23 meta = {
··· 17 configureFlags=[ 18 "--with-gmp-libraries=${gmp}/lib" 19 "--with-gmp-includes=${gmp}/include" 20 + "--with-gcc=${stdenv.cc}/bin/gcc" 21 ]; 22 23 meta = {
+1 -1
pkgs/development/compilers/ghc/6.10.3.nix
··· 17 configureFlags=[ 18 "--with-gmp-libraries=${gmp}/lib" 19 "--with-gmp-includes=${gmp}/include" 20 - "--with-gcc=${stdenv.gcc}/bin/gcc" 21 ]; 22 23 meta = {
··· 17 configureFlags=[ 18 "--with-gmp-libraries=${gmp}/lib" 19 "--with-gmp-includes=${gmp}/include" 20 + "--with-gcc=${stdenv.cc}/bin/gcc" 21 ]; 22 23 meta = {
+1 -1
pkgs/development/compilers/ghc/6.10.4.nix
··· 17 configureFlags=[ 18 "--with-gmp-libraries=${gmp}/lib" 19 "--with-gmp-includes=${gmp}/include" 20 - "--with-gcc=${stdenv.gcc}/bin/gcc" 21 ]; 22 23 NIX_CFLAGS_COMPILE = "-fomit-frame-pointer";
··· 17 configureFlags=[ 18 "--with-gmp-libraries=${gmp}/lib" 19 "--with-gmp-includes=${gmp}/include" 20 + "--with-gcc=${stdenv.cc}/bin/gcc" 21 ]; 22 23 NIX_CFLAGS_COMPILE = "-fomit-frame-pointer";
+1 -1
pkgs/development/compilers/ghc/6.11.nix
··· 17 configureFlags=[ 18 "--with-gmp-libraries=${gmp}/lib" 19 "--with-gmp-includes=${gmp}/include" 20 - "--with-gcc=${stdenv.gcc}/bin/gcc" 21 ]; 22 23 preConfigure=[
··· 17 configureFlags=[ 18 "--with-gmp-libraries=${gmp}/lib" 19 "--with-gmp-includes=${gmp}/include" 20 + "--with-gcc=${stdenv.cc}/bin/gcc" 21 ]; 22 23 preConfigure=[
+1 -1
pkgs/development/compilers/ghc/6.12.1-binary.nix
··· 42 # find editline/gmp. 43 (if stdenv.isLinux then '' 44 find . -type f -perm +100 \ 45 - -exec patchelf --interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" \ 46 --set-rpath "${ncurses}/lib:${gmp}/lib" {} \; 47 sed -i "s|/usr/bin/perl|perl\x00 |" ghc-${version}/ghc/stage2/build/tmp/ghc-stage2 48 sed -i "s|/usr/bin/gcc|gcc\x00 |" ghc-${version}/ghc/stage2/build/tmp/ghc-stage2
··· 42 # find editline/gmp. 43 (if stdenv.isLinux then '' 44 find . -type f -perm +100 \ 45 + -exec patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ 46 --set-rpath "${ncurses}/lib:${gmp}/lib" {} \; 47 sed -i "s|/usr/bin/perl|perl\x00 |" ghc-${version}/ghc/stage2/build/tmp/ghc-stage2 48 sed -i "s|/usr/bin/gcc|gcc\x00 |" ghc-${version}/ghc/stage2/build/tmp/ghc-stage2
+1 -1
pkgs/development/compilers/ghc/6.12.1.nix
··· 22 ''; 23 24 configureFlags=[ 25 - "--with-gcc=${stdenv.gcc}/bin/gcc" 26 ]; 27 28 # required, because otherwise all symbols from HSffi.o are stripped, and
··· 22 ''; 23 24 configureFlags=[ 25 + "--with-gcc=${stdenv.cc}/bin/gcc" 26 ]; 27 28 # required, because otherwise all symbols from HSffi.o are stripped, and
+1 -1
pkgs/development/compilers/ghc/6.12.2.nix
··· 22 ''; 23 24 configureFlags=[ 25 - "--with-gcc=${stdenv.gcc}/bin/gcc" 26 ]; 27 28 # required, because otherwise all symbols from HSffi.o are stripped, and
··· 22 ''; 23 24 configureFlags=[ 25 + "--with-gcc=${stdenv.cc}/bin/gcc" 26 ]; 27 28 # required, because otherwise all symbols from HSffi.o are stripped, and
+1 -1
pkgs/development/compilers/ghc/6.12.3.nix
··· 22 ''; 23 24 configureFlags=[ 25 - "--with-gcc=${stdenv.gcc}/bin/gcc" 26 ]; 27 28 NIX_CFLAGS_COMPILE = "-fomit-frame-pointer";
··· 22 ''; 23 24 configureFlags=[ 25 + "--with-gcc=${stdenv.cc}/bin/gcc" 26 ]; 27 28 NIX_CFLAGS_COMPILE = "-fomit-frame-pointer";
+1 -1
pkgs/development/compilers/ghc/6.4.2-binary.nix
··· 30 # find readline/gmp. 31 postBuild = if stdenv.isLinux then " 32 find . -type f -perm +100 \\ 33 - -exec patchelf --interpreter \"$(cat $NIX_GCC/nix-support/dynamic-linker)\" \\ 34 --set-rpath \"${readline}/lib:${ncurses}/lib:${gmp}/lib\" {} \\; 35 " else ""; 36
··· 30 # find readline/gmp. 31 postBuild = if stdenv.isLinux then " 32 find . -type f -perm +100 \\ 33 + -exec patchelf --interpreter \"$(cat $NIX_CC/nix-support/dynamic-linker)\" \\ 34 --set-rpath \"${readline}/lib:${ncurses}/lib:${gmp}/lib\" {} \\; 35 " else ""; 36
+1 -1
pkgs/development/compilers/ghc/6.4.2.nix
··· 12 13 propagatedBuildInputs = [readline ncurses gmp]; 14 15 - configureFlags = "--with-gcc=${stdenv.gcc}/bin/gcc"; 16 17 preConfigure = 18 ''
··· 12 13 propagatedBuildInputs = [readline ncurses gmp]; 14 15 + configureFlags = "--with-gcc=${stdenv.cc}/bin/gcc"; 16 17 preConfigure = 18 ''
+1 -1
pkgs/development/compilers/ghc/6.8.2.nix
··· 25 "--with-gmp-libraries=${gmp}/lib" 26 "--with-gmp-includes=${gmp}/include" 27 "--with-readline-libraries=${readline}/lib" 28 - "--with-gcc=${stdenv.gcc}/bin/gcc" 29 ]; 30 31 preConfigure = "
··· 25 "--with-gmp-libraries=${gmp}/lib" 26 "--with-gmp-includes=${gmp}/include" 27 "--with-readline-libraries=${readline}/lib" 28 + "--with-gcc=${stdenv.cc}/bin/gcc" 29 ]; 30 31 preConfigure = "
+1 -1
pkgs/development/compilers/ghc/6.8.3.nix
··· 25 "--with-gmp-libraries=${gmp}/lib" 26 "--with-gmp-includes=${gmp}/include" 27 "--with-readline-libraries=${readline}/lib" 28 - "--with-gcc=${stdenv.gcc}/bin/gcc" 29 ]; 30 31 preConfigure = ''
··· 25 "--with-gmp-libraries=${gmp}/lib" 26 "--with-gmp-includes=${gmp}/include" 27 "--with-readline-libraries=${readline}/lib" 28 + "--with-gcc=${stdenv.cc}/bin/gcc" 29 ]; 30 31 preConfigure = ''
+1 -1
pkgs/development/compilers/ghc/7.0.1.nix
··· 22 ''; 23 24 configureFlags=[ 25 - "--with-gcc=${stdenv.gcc}/bin/gcc" 26 ]; 27 28 # required, because otherwise all symbols from HSffi.o are stripped, and
··· 22 ''; 23 24 configureFlags=[ 25 + "--with-gcc=${stdenv.cc}/bin/gcc" 26 ]; 27 28 # required, because otherwise all symbols from HSffi.o are stripped, and
+1 -1
pkgs/development/compilers/ghc/7.0.2.nix
··· 22 ''; 23 24 configureFlags=[ 25 - "--with-gcc=${stdenv.gcc}/bin/gcc" 26 ]; 27 28 # required, because otherwise all symbols from HSffi.o are stripped, and
··· 22 ''; 23 24 configureFlags=[ 25 + "--with-gcc=${stdenv.cc}/bin/gcc" 26 ]; 27 28 # required, because otherwise all symbols from HSffi.o are stripped, and
+1 -1
pkgs/development/compilers/ghc/7.0.3.nix
··· 22 ''; 23 24 configureFlags=[ 25 - "--with-gcc=${stdenv.gcc}/bin/gcc" 26 ]; 27 28 # required, because otherwise all symbols from HSffi.o are stripped, and
··· 22 ''; 23 24 configureFlags=[ 25 + "--with-gcc=${stdenv.cc}/bin/gcc" 26 ]; 27 28 # required, because otherwise all symbols from HSffi.o are stripped, and
+1 -1
pkgs/development/compilers/ghc/7.0.4-binary.nix
··· 52 # find editline/gmp. 53 (if stdenv.isLinux then '' 54 find . -type f -perm +100 \ 55 - -exec patchelf --interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" \ 56 --set-rpath "${ncurses}/lib:${gmp}/lib" {} \; 57 sed -i "s|/usr/bin/perl|perl\x00 |" ghc-${version}/ghc/stage2/build/tmp/ghc-stage2 58 sed -i "s|/usr/bin/gcc|gcc\x00 |" ghc-${version}/ghc/stage2/build/tmp/ghc-stage2
··· 52 # find editline/gmp. 53 (if stdenv.isLinux then '' 54 find . -type f -perm +100 \ 55 + -exec patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ 56 --set-rpath "${ncurses}/lib:${gmp}/lib" {} \; 57 sed -i "s|/usr/bin/perl|perl\x00 |" ghc-${version}/ghc/stage2/build/tmp/ghc-stage2 58 sed -i "s|/usr/bin/gcc|gcc\x00 |" ghc-${version}/ghc/stage2/build/tmp/ghc-stage2
+1 -1
pkgs/development/compilers/ghc/7.0.4.nix
··· 22 ''; 23 24 configureFlags=[ 25 - "--with-gcc=${stdenv.gcc}/bin/gcc" 26 ]; 27 28 NIX_CFLAGS_COMPILE = "-fomit-frame-pointer";
··· 22 ''; 23 24 configureFlags=[ 25 + "--with-gcc=${stdenv.cc}/bin/gcc" 26 ]; 27 28 NIX_CFLAGS_COMPILE = "-fomit-frame-pointer";
+1 -1
pkgs/development/compilers/ghc/7.2.1.nix
··· 22 ''; 23 24 configureFlags=[ 25 - "--with-gcc=${stdenv.gcc}/bin/gcc" 26 ]; 27 28 # required, because otherwise all symbols from HSffi.o are stripped, and
··· 22 ''; 23 24 configureFlags=[ 25 + "--with-gcc=${stdenv.cc}/bin/gcc" 26 ]; 27 28 # required, because otherwise all symbols from HSffi.o are stripped, and
+1 -1
pkgs/development/compilers/ghc/7.2.2.nix
··· 22 ''; 23 24 configureFlags=[ 25 - "--with-gcc=${stdenv.gcc}/bin/gcc" 26 ]; 27 28 NIX_CFLAGS_COMPILE = "-fomit-frame-pointer";
··· 22 ''; 23 24 configureFlags=[ 25 + "--with-gcc=${stdenv.cc}/bin/gcc" 26 ]; 27 28 NIX_CFLAGS_COMPILE = "-fomit-frame-pointer";
+1 -1
pkgs/development/compilers/ghc/7.4.1.nix
··· 22 ''; 23 24 configureFlags=[ 25 - "--with-gcc=${stdenv.gcc}/bin/gcc" 26 ]; 27 28 # required, because otherwise all symbols from HSffi.o are stripped, and
··· 22 ''; 23 24 configureFlags=[ 25 + "--with-gcc=${stdenv.cc}/bin/gcc" 26 ]; 27 28 # required, because otherwise all symbols from HSffi.o are stripped, and
+1 -1
pkgs/development/compilers/ghc/7.4.2-binary.nix
··· 52 # find editline/gmp. 53 (if stdenv.isLinux then '' 54 find . -type f -perm +100 \ 55 - -exec patchelf --interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" \ 56 --set-rpath "${ncurses}/lib:${gmp}/lib" {} \; 57 sed -i "s|/usr/bin/perl|perl\x00 |" ghc-${version}/ghc/stage2/build/tmp/ghc-stage2 58 sed -i "s|/usr/bin/gcc|gcc\x00 |" ghc-${version}/ghc/stage2/build/tmp/ghc-stage2
··· 52 # find editline/gmp. 53 (if stdenv.isLinux then '' 54 find . -type f -perm +100 \ 55 + -exec patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ 56 --set-rpath "${ncurses}/lib:${gmp}/lib" {} \; 57 sed -i "s|/usr/bin/perl|perl\x00 |" ghc-${version}/ghc/stage2/build/tmp/ghc-stage2 58 sed -i "s|/usr/bin/gcc|gcc\x00 |" ghc-${version}/ghc/stage2/build/tmp/ghc-stage2
+1 -1
pkgs/development/compilers/ghc/7.4.2.nix
··· 26 ''; 27 28 configureFlags=[ 29 - "--with-gcc=${stdenv.gcc}/bin/gcc" 30 ]; 31 32 # required, because otherwise all symbols from HSffi.o are stripped, and
··· 26 ''; 27 28 configureFlags=[ 29 + "--with-gcc=${stdenv.cc}/bin/gcc" 30 ]; 31 32 # required, because otherwise all symbols from HSffi.o are stripped, and
+1 -1
pkgs/development/compilers/ghc/7.6.1.nix
··· 23 ''; 24 25 configureFlags=[ 26 - "--with-gcc=${stdenv.gcc}/bin/gcc" 27 ]; 28 29 # required, because otherwise all symbols from HSffi.o are stripped, and
··· 23 ''; 24 25 configureFlags=[ 26 + "--with-gcc=${stdenv.cc}/bin/gcc" 27 ]; 28 29 # required, because otherwise all symbols from HSffi.o are stripped, and
+1 -1
pkgs/development/compilers/ghc/7.6.2.nix
··· 24 ''; 25 26 configureFlags = [ 27 - "--with-gcc=${stdenv.gcc}/bin/gcc" 28 ]; 29 30 # required, because otherwise all symbols from HSffi.o are stripped, and
··· 24 ''; 25 26 configureFlags = [ 27 + "--with-gcc=${stdenv.cc}/bin/gcc" 28 ]; 29 30 # required, because otherwise all symbols from HSffi.o are stripped, and
+1 -1
pkgs/development/compilers/ghc/7.6.3.nix
··· 41 export NIX_LDFLAGS="$NIX_LDFLAGS -rpath $out/lib/ghc-${version}" 42 ''; 43 44 - configureFlags = "--with-gcc=${stdenv.gcc}/bin/gcc"; 45 46 postInstall = '' 47 # ghci uses mmap with rwx protection at it implements dynamic
··· 41 export NIX_LDFLAGS="$NIX_LDFLAGS -rpath $out/lib/ghc-${version}" 42 ''; 43 44 + configureFlags = "--with-gcc=${stdenv.cc}/bin/gcc"; 45 46 postInstall = '' 47 # ghci uses mmap with rwx protection at it implements dynamic
+1 -1
pkgs/development/compilers/ghc/7.8.3-binary.nix
··· 52 # find editline/gmp. 53 (if stdenv.isLinux then '' 54 find . -type f -perm +100 \ 55 - -exec patchelf --interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" \ 56 --set-rpath "${ncurses}/lib:${gmp}/lib" {} \; 57 sed -i "s|/usr/bin/perl|perl\x00 |" ghc-${version}/ghc/stage2/build/tmp/ghc-stage2 58 sed -i "s|/usr/bin/gcc|gcc\x00 |" ghc-${version}/ghc/stage2/build/tmp/ghc-stage2
··· 52 # find editline/gmp. 53 (if stdenv.isLinux then '' 54 find . -type f -perm +100 \ 55 + -exec patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ 56 --set-rpath "${ncurses}/lib:${gmp}/lib" {} \; 57 sed -i "s|/usr/bin/perl|perl\x00 |" ghc-${version}/ghc/stage2/build/tmp/ghc-stage2 58 sed -i "s|/usr/bin/gcc|gcc\x00 |" ghc-${version}/ghc/stage2/build/tmp/ghc-stage2
+1 -1
pkgs/development/compilers/ghc/head.nix
··· 19 ''; 20 21 configureFlags = [ 22 - "--with-gcc=${stdenv.gcc}/bin/gcc" 23 "--with-gmp-includes=${gmp}/include" "--with-gmp-libraries=${gmp}/lib" 24 ]; 25
··· 19 ''; 20 21 configureFlags = [ 22 + "--with-gcc=${stdenv.cc}/bin/cc" 23 "--with-gmp-includes=${gmp}/include" "--with-gmp-libraries=${gmp}/lib" 24 ]; 25
+2 -2
pkgs/development/compilers/gnatboot/default.nix
··· 21 cp -R * $out 22 set +e 23 for a in $out/bin/* ; do 24 - patchelf --interpreter $(cat $NIX_GCC/nix-support/dynamic-linker) \ 25 - --set-rpath $(cat $NIX_GCC/nix-support/orig-libc)/lib:$(cat $NIX_GCC/nix-support/orig-gcc)/lib64:$(cat $NIX_GCC/nix-support/orig-gcc)/lib $a 26 done 27 set -e 28 mv $out/bin/gnatgcc_2wrap $out/bin/gnatgcc
··· 21 cp -R * $out 22 set +e 23 for a in $out/bin/* ; do 24 + patchelf --interpreter $(cat $NIX_CC/nix-support/dynamic-linker) \ 25 + --set-rpath $(cat $NIX_CC/nix-support/orig-libc)/lib:$(cat $NIX_CC/nix-support/orig-gcc)/lib64:$(cat $NIX_CC/nix-support/orig-gcc)/lib $a 26 done 27 set -e 28 mv $out/bin/gnatgcc_2wrap $out/bin/gnatgcc
+4 -6
pkgs/development/compilers/go/1.3.nix
··· 1 { stdenv, lib, fetchurl, fetchhg, bison, glibc, bash, coreutils, makeWrapper, tzdata, iana_etc, perl }: 2 3 - assert stdenv.gcc.gcc != null; 4 - 5 let 6 loader386 = "${glibc}/lib/ld-linux.so.2"; 7 loaderAmd64 = "${glibc}/lib/ld-linux-x86-64.so.2"; ··· 78 else throw "Unsupported system"; 79 GOARM = stdenv.lib.optionalString (stdenv.system == "armv5tel-linux") "5"; 80 GO386 = 387; # from Arch: don't assume sse2 on i686 81 - CGO_ENABLED = 1; 82 83 installPhase = '' 84 export CC=cc 85 - 86 # http://lists.science.uu.nl/pipermail/nix-dev/2013-October/011891.html 87 # Fix for "libgcc_s.so.1 must be installed for pthread_cancel to work" 88 # during tests: 89 - export LD_LIBRARY_PATH="$(dirname $(echo ${stdenv.gcc.gcc}/lib/libgcc_s.so))" 90 - 91 mkdir -p "$out/bin" 92 export GOROOT="$(pwd)/" 93 export GOBIN="$out/bin"
··· 1 { stdenv, lib, fetchurl, fetchhg, bison, glibc, bash, coreutils, makeWrapper, tzdata, iana_etc, perl }: 2 3 let 4 loader386 = "${glibc}/lib/ld-linux.so.2"; 5 loaderAmd64 = "${glibc}/lib/ld-linux-x86-64.so.2"; ··· 76 else throw "Unsupported system"; 77 GOARM = stdenv.lib.optionalString (stdenv.system == "armv5tel-linux") "5"; 78 GO386 = 387; # from Arch: don't assume sse2 on i686 79 + CGO_ENABLED = if stdenv.isDarwin then 0 else 1; 80 81 installPhase = '' 82 export CC=cc 83 + '' + stdenv.lib.optionalString (stdenv ? gcc) '' 84 # http://lists.science.uu.nl/pipermail/nix-dev/2013-October/011891.html 85 # Fix for "libgcc_s.so.1 must be installed for pthread_cancel to work" 86 # during tests: 87 + export LD_LIBRARY_PATH="$(dirname $(echo ${stdenv.cc.gcc}/lib/libgcc_s.so))" 88 + '' + '' 89 mkdir -p "$out/bin" 90 export GOROOT="$(pwd)/" 91 export GOBIN="$out/bin"
+2 -2
pkgs/development/compilers/idris/wrapper.nix
··· 1 - { gmp, makeWrapper, gcc, runCommand, idris_plain, boehmgc}: 2 3 runCommand "idris-wrapper" {} '' 4 source ${makeWrapper}/nix-support/setup-hook ··· 6 ln -s ${idris_plain}/bin/idris $out/bin 7 wrapProgram $out/bin/idris \ 8 --suffix NIX_CFLAGS_COMPILE : '"-I${gmp}/include -L${gmp}/lib -L${boehmgc}/lib"' \ 9 - --suffix PATH : ${gcc}/bin \ 10 --suffix PATH : ${idris_plain}/bin 11 ''
··· 1 + { stdenv, gmp, makeWrapper, runCommand, idris_plain, boehmgc}: 2 3 runCommand "idris-wrapper" {} '' 4 source ${makeWrapper}/nix-support/setup-hook ··· 6 ln -s ${idris_plain}/bin/idris $out/bin 7 wrapProgram $out/bin/idris \ 8 --suffix NIX_CFLAGS_COMPILE : '"-I${gmp}/include -L${gmp}/lib -L${boehmgc}/lib"' \ 9 + --suffix PATH : ${stdenv.cc}/bin \ 10 --suffix PATH : ${idris_plain}/bin 11 ''
+1 -1
pkgs/development/compilers/julia/0.2.1.nix
··· 4 , tcl, tk, xproto, libX11, git, mpfr 5 } : 6 let 7 - realGcc = stdenv.gcc.gcc; 8 in 9 stdenv.mkDerivation rec { 10 pname = "julia";
··· 4 , tcl, tk, xproto, libX11, git, mpfr 5 } : 6 let 7 + realGcc = stdenv.cc.gcc; 8 in 9 stdenv.mkDerivation rec { 10 pname = "julia";
+5 -5
pkgs/development/compilers/llvm/3.3/clang.nix
··· 2 3 let 4 version = "3.3"; 5 - gccReal = if (stdenv.gcc.gcc or null) == null then stdenv.gcc else stdenv.gcc.gcc; 6 in 7 8 stdenv.mkDerivation { ··· 11 buildInputs = [ perl llvm groff cmake libxml2 python ]; 12 13 patches = [ ./clang-tablegen-dir.patch ] ++ 14 - stdenv.lib.optional (stdenv.gcc.libc != null) ./clang-purity.patch; 15 16 cmakeFlags = [ 17 "-DCLANG_PATH_TO_LLVM_BUILD=${llvm}" 18 "-DCMAKE_BUILD_TYPE=Release" 19 "-DLLVM_TARGETS_TO_BUILD=all" 20 "-DGCC_INSTALL_PREFIX=${gccReal}" 21 - ] ++ stdenv.lib.optionals (stdenv.gcc.libc != null) [ 22 - "-DC_INCLUDE_DIRS=${stdenv.gcc.libc}/include/" 23 ]; 24 25 enableParallelBuilding = true; ··· 29 sha256 = "15mrvw43s4frk1j49qr4v5viq68h8qlf10qs6ghd6mrsmgj5vddi"; 30 }; 31 32 - passthru = { gcc = stdenv.gcc.gcc; }; 33 34 meta = { 35 homepage = http://clang.llvm.org/;
··· 2 3 let 4 version = "3.3"; 5 + gccReal = if (stdenv.cc.gcc or null) == null then stdenv.cc else stdenv.cc.gcc; 6 in 7 8 stdenv.mkDerivation { ··· 11 buildInputs = [ perl llvm groff cmake libxml2 python ]; 12 13 patches = [ ./clang-tablegen-dir.patch ] ++ 14 + stdenv.lib.optional (stdenv.cc.libc != null) ./clang-purity.patch; 15 16 cmakeFlags = [ 17 "-DCLANG_PATH_TO_LLVM_BUILD=${llvm}" 18 "-DCMAKE_BUILD_TYPE=Release" 19 "-DLLVM_TARGETS_TO_BUILD=all" 20 "-DGCC_INSTALL_PREFIX=${gccReal}" 21 + ] ++ stdenv.lib.optionals (stdenv.cc.libc != null) [ 22 + "-DC_INCLUDE_DIRS=${stdenv.cc.libc}/include/" 23 ]; 24 25 enableParallelBuilding = true; ··· 29 sha256 = "15mrvw43s4frk1j49qr4v5viq68h8qlf10qs6ghd6mrsmgj5vddi"; 30 }; 31 32 + passthru = { gcc = stdenv.cc.gcc; }; 33 34 meta = { 35 homepage = http://clang.llvm.org/;
+3 -7
pkgs/development/compilers/llvm/3.4/clang.nix
··· 1 { stdenv, fetch, cmake, libxml2, libedit, llvm, version, clang-tools-extra_src }: 2 3 - # be sure not to rebuild clang on darwin; some packages request it specifically 4 - # we need to fix those 5 - assert stdenv.isDarwin -> stdenv.gcc.nativeTools; 6 - 7 stdenv.mkDerivation { 8 name = "clang-${version}"; 9 ··· 28 "-DCMAKE_CXX_FLAGS=-std=c++11" 29 "-DCLANG_PATH_TO_LLVM_BUILD=${llvm}" 30 ] ++ 31 - (stdenv.lib.optional (stdenv.gcc.libc != null) "-DC_INCLUDE_DIRS=${stdenv.gcc.libc}/include") ++ 32 - (stdenv.lib.optional (stdenv.gcc.gcc != null) "-DGCC_INSTALL_PREFIX=${stdenv.gcc.gcc}"); 33 34 # Clang expects to find LLVMgold in its own prefix 35 # Clang expects to find sanitizer libraries in its own prefix ··· 38 ln -sv ${llvm}/lib/clang/${version}/lib $out/lib/clang/${version}/ 39 ''; 40 41 - passthru.gcc = stdenv.gcc.gcc; 42 43 enableParallelBuilding = true; 44
··· 1 { stdenv, fetch, cmake, libxml2, libedit, llvm, version, clang-tools-extra_src }: 2 3 stdenv.mkDerivation { 4 name = "clang-${version}"; 5 ··· 24 "-DCMAKE_CXX_FLAGS=-std=c++11" 25 "-DCLANG_PATH_TO_LLVM_BUILD=${llvm}" 26 ] ++ 27 + (stdenv.lib.optional (stdenv.cc.libc != null) "-DC_INCLUDE_DIRS=${stdenv.cc.libc}/include") ++ 28 + (stdenv.lib.optional (stdenv.cc.gcc != null) "-DGCC_INSTALL_PREFIX=${stdenv.cc.gcc}"); 29 30 # Clang expects to find LLVMgold in its own prefix 31 # Clang expects to find sanitizer libraries in its own prefix ··· 34 ln -sv ${llvm}/lib/clang/${version}/lib $out/lib/clang/${version}/ 35 ''; 36 37 + passthru.gcc = stdenv.cc.gcc; 38 39 enableParallelBuilding = true; 40
+1 -1
pkgs/development/compilers/mentor/default.nix
··· 18 tar --strip-components=1 -xjf "$src" -C "$out" 19 20 # Patch binaries 21 - interpreter="$(cat "$NIX_GCC"/nix-support/dynamic-linker)" 22 for file in "$out"/bin/* "$out"/libexec/gcc/*/*/* "$out"/*/bin/*; do 23 # Skip non-executable files 24 case "$file" in
··· 18 tar --strip-components=1 -xjf "$src" -C "$out" 19 20 # Patch binaries 21 + interpreter="$(cat "$NIX_CC"/nix-support/dynamic-linker)" 22 for file in "$out"/bin/* "$out"/libexec/gcc/*/*/* "$out"/*/bin/*; do 23 # Skip non-executable files 24 case "$file" in
+1 -1
pkgs/development/compilers/mozart/builder.sh
··· 14 for f in $out/bin/*; do 15 b=$(basename $f) 16 if [ $b == "ozemulator" ] || [ $b == "ozwish" ]; then 17 - patchelf --interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" \ 18 --set-rpath $libPath \ 19 $f 20 continue;
··· 14 for f in $out/bin/*; do 15 b=$(basename $f) 16 if [ $b == "ozemulator" ] || [ $b == "ozwish" ]; then 17 + patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ 18 --set-rpath $libPath \ 19 $f 20 continue;
+1 -1
pkgs/development/compilers/opendylan/bin.nix
··· 21 mkdir -p "$out" 22 tar --strip-components=1 -xjf "$src" -C "$out" 23 24 - interpreter="$(cat "$NIX_GCC"/nix-support/dynamic-linker)" 25 for a in "$out"/bin/*; do 26 patchelf --set-interpreter "$interpreter" "$a" 27 patchelf --set-rpath "$out/lib:${boehmgc}/lib" "$a"
··· 21 mkdir -p "$out" 22 tar --strip-components=1 -xjf "$src" -C "$out" 23 24 + interpreter="$(cat "$NIX_CC"/nix-support/dynamic-linker)" 25 for a in "$out"/bin/*; do 26 patchelf --set-interpreter "$interpreter" "$a" 27 patchelf --set-rpath "$out/lib:${boehmgc}/lib" "$a"
+2 -2
pkgs/development/compilers/oraclejdk/dlj-bundle-builder.sh
··· 5 6 # set the dynamic linker of unpack200, necessary for construct script 7 echo "patching unpack200" 8 - patchelf --interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" --set-rpath "" */bin/unpack200 9 10 echo "constructing JDK and JRE installations" 11 if test -z "$installjdk"; then ··· 46 47 # set all the dynamic linkers 48 find $out -type f -perm +100 \ 49 - -exec patchelf --interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" \ 50 --set-rpath "$rpath" {} \; 51 52 find $out -name "*.so" -exec patchelf --set-rpath "$rpath" {} \;
··· 5 6 # set the dynamic linker of unpack200, necessary for construct script 7 echo "patching unpack200" 8 + patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" --set-rpath "" */bin/unpack200 9 10 echo "constructing JDK and JRE installations" 11 if test -z "$installjdk"; then ··· 46 47 # set all the dynamic linkers 48 find $out -type f -perm +100 \ 49 + -exec patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ 50 --set-rpath "$rpath" {} \; 51 52 find $out -name "*.so" -exec patchelf --set-rpath "$rpath" {} \;
+3 -3
pkgs/development/compilers/oraclejdk/jdk-linux-base.nix
··· 143 144 # set all the dynamic linkers 145 find $out -type f -perm +100 \ 146 - -exec patchelf --interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" \ 147 --set-rpath "$rpath" {} \; 148 149 find $out -name "*.so" -exec patchelf --set-rpath "$rpath" {} \; ··· 173 * libXt is only needed on amd64 174 */ 175 libraries = 176 - [stdenv.gcc.libc glib libxml2 libav_0_8 ffmpeg libxslt mesa_noglu xlibs.libXxf86vm alsaLib fontconfig freetype gnome.pango gnome.gtk cairo gdk_pixbuf atk] ++ 177 - (if swingSupport then [xlibs.libX11 xlibs.libXext xlibs.libXtst xlibs.libXi xlibs.libXp xlibs.libXt xlibs.libXrender stdenv.gcc.gcc] else []); 178 179 passthru.mozillaPlugin = if installjdk then "/jre/lib/${architecture}/plugins" else "/lib/${architecture}/plugins"; 180
··· 143 144 # set all the dynamic linkers 145 find $out -type f -perm +100 \ 146 + -exec patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ 147 --set-rpath "$rpath" {} \; 148 149 find $out -name "*.so" -exec patchelf --set-rpath "$rpath" {} \; ··· 173 * libXt is only needed on amd64 174 */ 175 libraries = 176 + [stdenv.cc.libc glib libxml2 libav_0_8 ffmpeg libxslt mesa_noglu xlibs.libXxf86vm alsaLib fontconfig freetype gnome.pango gnome.gtk cairo gdk_pixbuf atk] ++ 177 + (if swingSupport then [xlibs.libX11 xlibs.libXext xlibs.libXtst xlibs.libXi xlibs.libXp xlibs.libXt xlibs.libXrender stdenv.cc.gcc] else []); 178 179 passthru.mozillaPlugin = if installjdk then "/jre/lib/${architecture}/plugins" else "/lib/${architecture}/plugins"; 180
+1 -1
pkgs/development/compilers/oraclejdk/jdk6-linux.nix
··· 72 * libXt is only needed on amd64 73 */ 74 libraries = 75 - [stdenv.gcc.libc] ++ 76 (if swingSupport then [xlibs.libX11 xlibs.libXext xlibs.libXtst xlibs.libXi xlibs.libXp xlibs.libXt] else []); 77 78 inherit swingSupport pluginSupport architecture jce;
··· 72 * libXt is only needed on amd64 73 */ 74 libraries = 75 + [stdenv.cc.libc] ++ 76 (if swingSupport then [xlibs.libX11 xlibs.libXext xlibs.libXtst xlibs.libXi xlibs.libXp xlibs.libXt] else []); 77 78 inherit swingSupport pluginSupport architecture jce;
+2 -2
pkgs/development/compilers/path64/default.nix
··· 13 14 patchPhase = '' 15 sed -i s,/usr/bin/ld,$(type -P ld), src/driver/phases.c 16 - sed -i s,/lib64/ld-linux-x86-64.so.2,${stdenv.gcc.libc}/lib/ld-linux-x86-64.so.2, src/include/main_defs.h.in 17 ''; 18 19 cmakeFlags = '' ··· 22 -DPATH64_ENABLE_PSCRUNTIME=OFF 23 -DPATH64_ENABLE_PROFILING=OFF -DPATH64_ENABLE_TARGETS=x8664 24 -DCMAKE_BUILD_TYPE=Debug -DPATH64_ENABLE_FORTRAN=OFF 25 - -DPSC_CRT_PATH=${stdenv.gcc.libc}/lib 26 ''; 27 28 makeFlags = "-j4";
··· 13 14 patchPhase = '' 15 sed -i s,/usr/bin/ld,$(type -P ld), src/driver/phases.c 16 + sed -i s,/lib64/ld-linux-x86-64.so.2,${stdenv.cc.libc}/lib/ld-linux-x86-64.so.2, src/include/main_defs.h.in 17 ''; 18 19 cmakeFlags = '' ··· 22 -DPATH64_ENABLE_PSCRUNTIME=OFF 23 -DPATH64_ENABLE_PROFILING=OFF -DPATH64_ENABLE_TARGETS=x8664 24 -DCMAKE_BUILD_TYPE=Debug -DPATH64_ENABLE_FORTRAN=OFF 25 + -DPSC_CRT_PATH=${stdenv.cc.libc}/lib 26 ''; 27 28 makeFlags = "-j4";
+6 -7
pkgs/development/compilers/rustc/0.12.nix
··· 1 {stdenv, fetchurl, which, file, perl, curl, python27, makeWrapper}: 2 3 - assert stdenv.gcc.gcc != null; 4 - 5 /* Rust's build process has a few quirks : 6 7 - It requires some patched in llvm that haven't landed upstream, so it ··· 53 mkdir -p "$out" 54 cp -r bin "$out/bin" 55 '' + (if stdenv.isLinux then '' 56 - patchelf --interpreter "${stdenv.glibc}/lib/${stdenv.gcc.dynamicLinker}" \ 57 - --set-rpath "${stdenv.gcc.gcc}/lib/:${stdenv.gcc.gcc}/lib64/" \ 58 "$out/bin/rustc" 59 '' else ""); 60 }; 61 62 - configureFlags = [ "--enable-local-rust" "--local-rust-root=$snapshot" ]; 63 64 # The compiler requires cc, so we patch the source to tell it where to find it 65 patches = [ ./hardcode_paths.patch ./local_stage0.patch ]; 66 postPatch = '' 67 substituteInPlace src/librustc/back/link.rs \ 68 - --subst-var-by "ccPath" "${stdenv.gcc}/bin/cc" 69 substituteInPlace src/librustc_back/archive.rs \ 70 - --subst-var-by "arPath" "${stdenv.gcc.binutils}/bin/ar" 71 ''; 72 73 buildInputs = [ which file perl curl python27 makeWrapper ];
··· 1 {stdenv, fetchurl, which, file, perl, curl, python27, makeWrapper}: 2 3 /* Rust's build process has a few quirks : 4 5 - It requires some patched in llvm that haven't landed upstream, so it ··· 51 mkdir -p "$out" 52 cp -r bin "$out/bin" 53 '' + (if stdenv.isLinux then '' 54 + patchelf --interpreter "${stdenv.glibc}/lib/${stdenv.cc.dynamicLinker}" \ 55 + --set-rpath "${stdenv.cc.gcc}/lib/:${stdenv.cc.gcc}/lib64/" \ 56 "$out/bin/rustc" 57 '' else ""); 58 }; 59 60 + configureFlags = [ "--enable-local-rust" "--local-rust-root=$snapshot" ] 61 + ++ stdenv.lib.optional (stdenv.cc ? clang) "--enable-clang"; 62 63 # The compiler requires cc, so we patch the source to tell it where to find it 64 patches = [ ./hardcode_paths.patch ./local_stage0.patch ]; 65 postPatch = '' 66 substituteInPlace src/librustc/back/link.rs \ 67 + --subst-var-by "ccPath" "${stdenv.cc}/bin/cc" 68 substituteInPlace src/librustc_back/archive.rs \ 69 + --subst-var-by "arPath" "${stdenv.cc.binutils}/bin/ar" 70 ''; 71 72 buildInputs = [ which file perl curl python27 makeWrapper ];
+6 -7
pkgs/development/compilers/rustc/head.nix
··· 2 , tzdata, git, valgrind, procps, coreutils 3 }: 4 5 - assert stdenv.gcc.gcc != null; 6 - 7 /* Rust's build process has a few quirks : 8 9 - It requires some patched in llvm that haven't landed upstream, so it ··· 56 mkdir -p "$out" 57 cp -r bin "$out/bin" 58 '' + (if stdenv.isLinux then '' 59 - patchelf --interpreter "${stdenv.glibc}/lib/${stdenv.gcc.dynamicLinker}" \ 60 - --set-rpath "${stdenv.gcc.gcc}/lib/:${stdenv.gcc.gcc}/lib64/" \ 61 "$out/bin/rustc" 62 '' else ""); 63 }; 64 65 - configureFlags = [ "--enable-local-rust" "--local-rust-root=$snapshot" ]; 66 67 # The compiler requires cc, so we patch the source to tell it where to find it 68 patches = [ ./hardcode_paths.HEAD.patch ./local_stage0.HEAD.patch ] ··· 70 71 postPatch = '' 72 substituteInPlace src/librustc_trans/back/link.rs \ 73 - --subst-var-by "ccPath" "${stdenv.gcc}/bin/cc" 74 substituteInPlace src/librustc_back/archive.rs \ 75 - --subst-var-by "arPath" "${stdenv.gcc.binutils}/bin/ar" 76 77 substituteInPlace src/rust-installer/gen-install-script.sh \ 78 --replace /bin/echo "${coreutils}/bin/echo"
··· 2 , tzdata, git, valgrind, procps, coreutils 3 }: 4 5 /* Rust's build process has a few quirks : 6 7 - It requires some patched in llvm that haven't landed upstream, so it ··· 54 mkdir -p "$out" 55 cp -r bin "$out/bin" 56 '' + (if stdenv.isLinux then '' 57 + patchelf --interpreter "${stdenv.glibc}/lib/${stdenv.cc.dynamicLinker}" \ 58 + --set-rpath "${stdenv.cc.gcc}/lib/:${stdenv.cc.gcc}/lib64/" \ 59 "$out/bin/rustc" 60 '' else ""); 61 }; 62 63 + configureFlags = [ "--enable-local-rust" "--local-rust-root=$snapshot" ] 64 + ++ stdenv.lib.optional (stdenv.cc ? clang) "--enable-clang"; 65 66 # The compiler requires cc, so we patch the source to tell it where to find it 67 patches = [ ./hardcode_paths.HEAD.patch ./local_stage0.HEAD.patch ] ··· 69 70 postPatch = '' 71 substituteInPlace src/librustc_trans/back/link.rs \ 72 + --subst-var-by "ccPath" "${stdenv.cc}/bin/cc" 73 substituteInPlace src/librustc_back/archive.rs \ 74 + --subst-var-by "arPath" "${stdenv.cc.binutils}/bin/ar" 75 76 substituteInPlace src/rust-installer/gen-install-script.sh \ 77 --replace /bin/echo "${coreutils}/bin/echo"
+3
pkgs/development/compilers/sbcl/1.2.0.nix
··· 47 48 sed -e '5,$d' -i contrib/sb-bsd-sockets/tests.lisp 49 sed -e '5,$d' -i contrib/sb-simple-streams/*test*.lisp 50 ''; 51 52 preBuild = ''
··· 47 48 sed -e '5,$d' -i contrib/sb-bsd-sockets/tests.lisp 49 sed -e '5,$d' -i contrib/sb-simple-streams/*test*.lisp 50 + 51 + # Use whatever `cc` the stdenv provides 52 + substituteInPlace src/runtime/Config.x86-64-darwin --replace gcc cc 53 ''; 54 55 preBuild = ''
+3
pkgs/development/compilers/sbcl/default.nix
··· 50 51 sed -e '5,$d' -i contrib/sb-bsd-sockets/tests.lisp 52 sed -e '5,$d' -i contrib/sb-simple-streams/*test*.lisp 53 ''; 54 55 preBuild = ''
··· 50 51 sed -e '5,$d' -i contrib/sb-bsd-sockets/tests.lisp 52 sed -e '5,$d' -i contrib/sb-simple-streams/*test*.lisp 53 + 54 + # Use whatever `cc` the stdenv provides 55 + substituteInPlace src/runtime/Config.x86-64-darwin --replace gcc cc 56 ''; 57 58 preBuild = ''
+1 -1
pkgs/development/compilers/tinycc/default.nix
··· 18 ''; 19 20 preConfigure = '' 21 - configureFlagsArray+=("--elfinterp=$(cat $NIX_GCC/nix-support/dynamic-linker)") 22 configureFlagsArray+=("--crtprefix=${stdenv.glibc}/lib") 23 configureFlagsArray+=("--sysincludepaths=${stdenv.glibc}/include:{B}/include") 24 configureFlagsArray+=("--libpaths=${stdenv.glibc}/lib")
··· 18 ''; 19 20 preConfigure = '' 21 + configureFlagsArray+=("--elfinterp=$(cat $NIX_CC/nix-support/dynamic-linker)") 22 configureFlagsArray+=("--crtprefix=${stdenv.glibc}/lib") 23 configureFlagsArray+=("--sysincludepaths=${stdenv.glibc}/include:{B}/include") 24 configureFlagsArray+=("--libpaths=${stdenv.glibc}/lib")
+2 -2
pkgs/development/compilers/urweb/default.nix
··· 10 sha256 = "077yakksxvdjlmwgc9wlz9jnkr345sikqjchvmxyv0axga5bw4rj"; 11 }; 12 13 - buildInputs = [ stdenv.gcc file openssl mlton mysql postgresql sqlite ]; 14 15 prePatch = '' 16 sed -e 's@/usr/bin/file@${file}/bin/file@g' -i configure ··· 18 19 preConfigure = 20 '' 21 - export CC="${stdenv.gcc}/bin/gcc"; 22 export CCARGS="-I$out/include \ 23 -L${mysql}/lib/mysql -L${postgresql}/lib -L${sqlite}/lib"; 24
··· 10 sha256 = "077yakksxvdjlmwgc9wlz9jnkr345sikqjchvmxyv0axga5bw4rj"; 11 }; 12 13 + buildInputs = [ stdenv.cc file openssl mlton mysql postgresql sqlite ]; 14 15 prePatch = '' 16 sed -e 's@/usr/bin/file@${file}/bin/file@g' -i configure ··· 18 19 preConfigure = 20 '' 21 + export CC="${stdenv.cc}/bin/gcc"; 22 export CCARGS="-I$out/include \ 23 -L${mysql}/lib/mysql -L${postgresql}/lib -L${sqlite}/lib"; 24
+2 -2
pkgs/development/guile-modules/guile-lib/default.nix
··· 1 {stdenv, fetchurl, guile, texinfo}: 2 3 - assert stdenv ? gcc && stdenv.gcc ? gcc && stdenv.gcc.gcc != null; 4 5 stdenv.mkDerivation rec { 6 name = "guile-lib-0.2.2"; ··· 16 17 preCheck = 18 # Make `libgcc_s.so' visible for `pthread_cancel'. 19 - '' export LD_LIBRARY_PATH="$(dirname $(echo ${stdenv.gcc.gcc}/lib*/libgcc_s.so)):$LD_LIBRARY_PATH" 20 ''; 21 22 meta = {
··· 1 {stdenv, fetchurl, guile, texinfo}: 2 3 + assert stdenv ? cc && stdenv.cc ? gcc && stdenv.cc.gcc != null; 4 5 stdenv.mkDerivation rec { 6 name = "guile-lib-0.2.2"; ··· 16 17 preCheck = 18 # Make `libgcc_s.so' visible for `pthread_cancel'. 19 + '' export LD_LIBRARY_PATH="$(dirname $(echo ${stdenv.cc.gcc}/lib*/libgcc_s.so)):$LD_LIBRARY_PATH" 20 ''; 21 22 meta = {
+2 -2
pkgs/development/interpreters/dart/default.nix
··· 9 mkdir -p $out 10 cp -R * $out/ 11 echo $libPath 12 - patchelf --interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" \ 13 --set-rpath $libPath \ 14 $out/bin/dart 15 ··· 33 sha256 = "00935c4vxfj2h3x354g75qdazswwissbwc7kj5k05l1m3lizikf6"; 34 }; 35 36 - libPath = stdenv.lib.makeLibraryPath [ stdenv.gcc.gcc ]; 37 38 dontStrip = true; 39 }
··· 9 mkdir -p $out 10 cp -R * $out/ 11 echo $libPath 12 + patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ 13 --set-rpath $libPath \ 14 $out/bin/dart 15 ··· 33 sha256 = "00935c4vxfj2h3x354g75qdazswwissbwc7kj5k05l1m3lizikf6"; 34 }; 35 36 + libPath = stdenv.lib.makeLibraryPath [ stdenv.cc.gcc ]; 37 38 dontStrip = true; 39 }
+4 -2
pkgs/development/interpreters/luajit/default.nix
··· 14 patchPhase = '' 15 substituteInPlace Makefile \ 16 --replace /usr/local $out 17 - '' + stdenv.lib.optionalString (stdenv.gcc.libc != null) 18 '' 19 substituteInPlace Makefile \ 20 - --replace ldconfig ${stdenv.gcc.libc}/sbin/ldconfig 21 ''; 22 23 configurePhase = false;
··· 14 patchPhase = '' 15 substituteInPlace Makefile \ 16 --replace /usr/local $out 17 + 18 + substituteInPlace src/Makefile --replace gcc cc 19 + '' + stdenv.lib.optionalString (stdenv.cc.libc != null) 20 '' 21 substituteInPlace Makefile \ 22 + --replace ldconfig ${stdenv.cc.libc}/sbin/ldconfig 23 ''; 24 25 configurePhase = false;
+2 -2
pkgs/development/interpreters/perl/5.16/default.nix
··· 2 3 let 4 5 - libc = if stdenv.gcc.libc or null != null then stdenv.gcc.libc else "/usr"; 6 7 in 8 ··· 60 ''} 61 ''; 62 63 - preBuild = lib.optionalString (!(stdenv ? gcc && stdenv.gcc.nativeTools)) 64 '' 65 # Make Cwd work on NixOS (where we don't have a /bin/pwd). 66 substituteInPlace dist/Cwd/Cwd.pm --replace "'/bin/pwd'" "'$(type -tP pwd)'"
··· 2 3 let 4 5 + libc = if stdenv.cc.libc or null != null then stdenv.cc.libc else "/usr"; 6 7 in 8 ··· 60 ''} 61 ''; 62 63 + preBuild = lib.optionalString (!(stdenv ? cc && stdenv.cc.nativeTools)) 64 '' 65 # Make Cwd work on NixOS (where we don't have a /bin/pwd). 66 substituteInPlace dist/Cwd/Cwd.pm --replace "'/bin/pwd'" "'$(type -tP pwd)'"
+3 -3
pkgs/development/interpreters/perl/5.20/default.nix
··· 14 15 let 16 17 - libc = if stdenv.gcc.libc or null != null then stdenv.gcc.libc else "/usr"; 18 19 in 20 ··· 44 # Miniperl needs -lm. perl needs -lrt. 45 configureFlags = 46 [ "-de" 47 - "-Dcc=gcc" 48 "-Uinstallusrbinperl" 49 "-Dinstallstyle=lib/perl5" 50 "-Duseshrplib" ··· 68 ''} 69 ''; 70 71 - preBuild = optionalString (!(stdenv ? gcc && stdenv.gcc.nativeTools)) 72 '' 73 # Make Cwd work on NixOS (where we don't have a /bin/pwd). 74 substituteInPlace dist/PathTools/Cwd.pm --replace "'/bin/pwd'" "'$(type -tP pwd)'"
··· 14 15 let 16 17 + libc = if stdenv.cc.libc or null != null then stdenv.cc.libc else "/usr"; 18 19 in 20 ··· 44 # Miniperl needs -lm. perl needs -lrt. 45 configureFlags = 46 [ "-de" 47 + "-Dcc=cc" 48 "-Uinstallusrbinperl" 49 "-Dinstallstyle=lib/perl5" 50 "-Duseshrplib" ··· 68 ''} 69 ''; 70 71 + preBuild = optionalString (!(stdenv ? cc && stdenv.cc.nativeTools)) 72 '' 73 # Make Cwd work on NixOS (where we don't have a /bin/pwd). 74 substituteInPlace dist/PathTools/Cwd.pm --replace "'/bin/pwd'" "'$(type -tP pwd)'"
+2 -2
pkgs/development/interpreters/pypy/2.4/default.nix
··· 22 }; 23 24 buildInputs = [ bzip2 openssl pkgconfig pythonFull libffi ncurses expat sqlite tk tcl x11 libX11 makeWrapper ] 25 - ++ stdenv.lib.optional (stdenv ? gcc && stdenv.gcc.libc != null) stdenv.gcc.libc 26 ++ stdenv.lib.optional zlibSupport zlib; 27 28 C_INCLUDE_PATH = stdenv.lib.concatStringsSep ":" (map (p: "${p}/include") buildInputs); 29 LIBRARY_PATH = stdenv.lib.concatStringsSep ":" (map (p: "${p}/lib") buildInputs); 30 LD_LIBRARY_PATH = stdenv.lib.concatStringsSep ":" (map (p: "${p}/lib") 31 - (stdenv.lib.filter (x : x.outPath != stdenv.gcc.libc.outPath or "") buildInputs)); 32 33 preConfigure = '' 34 substituteInPlace Makefile \
··· 22 }; 23 24 buildInputs = [ bzip2 openssl pkgconfig pythonFull libffi ncurses expat sqlite tk tcl x11 libX11 makeWrapper ] 25 + ++ stdenv.lib.optional (stdenv ? cc && stdenv.cc.libc != null) stdenv.cc.libc 26 ++ stdenv.lib.optional zlibSupport zlib; 27 28 C_INCLUDE_PATH = stdenv.lib.concatStringsSep ":" (map (p: "${p}/include") buildInputs); 29 LIBRARY_PATH = stdenv.lib.concatStringsSep ":" (map (p: "${p}/lib") buildInputs); 30 LD_LIBRARY_PATH = stdenv.lib.concatStringsSep ":" (map (p: "${p}/lib") 31 + (stdenv.lib.filter (x : x.outPath != stdenv.cc.libc.outPath or "") buildInputs)); 32 33 preConfigure = '' 34 substituteInPlace Makefile \
+1 -1
pkgs/development/interpreters/python/2.6/default.nix
··· 44 ''; 45 46 buildInputs = 47 - optional (stdenv ? gcc && stdenv.gcc.libc != null) stdenv.gcc.libc ++ 48 [ bzip2 openssl ]++ optionals includeModules [ db openssl ncurses gdbm readline x11 tcl tk sqlite ] 49 ++ optional zlibSupport zlib; 50
··· 44 ''; 45 46 buildInputs = 47 + optional (stdenv ? cc && stdenv.cc.libc != null) stdenv.cc.libc ++ 48 [ bzip2 openssl ]++ optionals includeModules [ db openssl ncurses gdbm readline x11 tcl tk sqlite ] 49 ++ optional zlibSupport zlib; 50
+1 -1
pkgs/development/interpreters/python/2.7/default.nix
··· 47 ''; 48 49 buildInputs = 50 - optional (stdenv ? gcc && stdenv.gcc.libc != null) stdenv.gcc.libc ++ 51 [ bzip2 openssl ] ++ optionals includeModules [ db openssl ncurses gdbm libX11 readline x11 tcl tk sqlite ] 52 ++ optional zlibSupport zlib; 53
··· 47 ''; 48 49 buildInputs = 50 + optional (stdenv ? cc && stdenv.cc.libc != null) stdenv.cc.libc ++ 51 [ bzip2 openssl ] ++ optionals includeModules [ db openssl ncurses gdbm libX11 readline x11 tcl tk sqlite ] 52 ++ optional zlibSupport zlib; 53
+1 -1
pkgs/development/interpreters/xulrunner/default.nix
··· 7 , debugBuild ? false 8 }: 9 10 - assert stdenv.gcc ? libc && stdenv.gcc.libc != null; 11 12 let version = firefox.version; in 13
··· 7 , debugBuild ? false 8 }: 9 10 + assert stdenv.cc ? libc && stdenv.cc.libc != null; 11 12 let version = firefox.version; in 13
+3 -1
pkgs/development/libraries/botan/generic.nix
··· 17 buildInputs = [ python bzip2 zlib gmp openssl boost ]; 18 19 configurePhase = '' 20 - python configure.py --prefix=$out --with-gnump --with-bzip2 --with-zlib --with-openssl 21 ''; 22 23 postInstall = '' 24 cd "$out"/lib/pkgconfig
··· 17 buildInputs = [ python bzip2 zlib gmp openssl boost ]; 18 19 configurePhase = '' 20 + python configure.py --prefix=$out --with-gnump --with-bzip2 --with-zlib --with-openssl --cc=$CC 21 ''; 22 + 23 + enableParallelBuilding = true; 24 25 postInstall = '' 26 cd "$out"/lib/pkgconfig
+1 -1
pkgs/development/libraries/fmod/default.nix
··· 5 bits = stdenv.lib.optionalString (stdenv.system == "x86_64-linux") "64"; 6 7 libPath = stdenv.lib.makeLibraryPath 8 - [ stdenv.gcc.libc stdenv.gcc.gcc ] + ":${stdenv.gcc.gcc}/lib64"; 9 patchLib = x: "patchelf --set-rpath ${libPath} ${x}"; 10 in 11 stdenv.mkDerivation rec {
··· 5 bits = stdenv.lib.optionalString (stdenv.system == "x86_64-linux") "64"; 6 7 libPath = stdenv.lib.makeLibraryPath 8 + [ stdenv.cc.libc stdenv.cc.gcc ] + ":${stdenv.cc.gcc}/lib64"; 9 patchLib = x: "patchelf --set-rpath ${libPath} ${x}"; 10 in 11 stdenv.mkDerivation rec {
+2 -2
pkgs/development/libraries/gettext/default.nix
··· 35 enableParallelBuilding = true; 36 37 crossAttrs = { 38 - buildInputs = stdenv.lib.optional (stdenv.gccCross.libc ? libiconv) 39 - stdenv.gccCross.libc.libiconv.crossDrv; 40 # Gettext fails to guess the cross compiler 41 configureFlags = "CXX=${stdenv.cross.config}-g++"; 42 };
··· 35 enableParallelBuilding = true; 36 37 crossAttrs = { 38 + buildInputs = stdenv.lib.optional (stdenv.ccCross.libc ? libiconv) 39 + stdenv.ccCross.libc.libiconv.crossDrv; 40 # Gettext fails to guess the cross compiler 41 configureFlags = "CXX=${stdenv.cross.config}-g++"; 42 };
+2 -2
pkgs/development/libraries/glib/default.nix
··· 7 8 with stdenv.lib; 9 10 - assert stdenv.gcc.gcc != null; 11 12 # TODO: 13 # * Add gio-module-fam ··· 83 preCheck = optionalString doCheck 84 # libgcc_s.so.1 must be installed for pthread_cancel to work 85 # also point to the glib/.libs path 86 - '' export LD_LIBRARY_PATH="${stdenv.gcc.gcc}/lib:$NIX_BUILD_TOP/${name}/glib/.libs:$LD_LIBRARY_PATH" 87 export TZDIR="${tzdata}/share/zoneinfo" 88 export XDG_CACHE_HOME="$TMP" 89 export XDG_RUNTIME_HOME="$TMP"
··· 7 8 with stdenv.lib; 9 10 + assert !stdenv.isDarwin -> stdenv.cc ? gcc; 11 12 # TODO: 13 # * Add gio-module-fam ··· 83 preCheck = optionalString doCheck 84 # libgcc_s.so.1 must be installed for pthread_cancel to work 85 # also point to the glib/.libs path 86 + '' export LD_LIBRARY_PATH="${stdenv.cc.gcc}/lib:$NIX_BUILD_TOP/${name}/glib/.libs:$LD_LIBRARY_PATH" 87 export TZDIR="${tzdata}/share/zoneinfo" 88 export XDG_CACHE_HOME="$TMP" 89 export XDG_RUNTIME_HOME="$TMP"
+2 -2
pkgs/development/libraries/glibc/common.nix
··· 167 168 configureScript="`pwd`/../$sourceRoot/configure" 169 170 - ${stdenv.lib.optionalString (stdenv.gcc.libc != null) 171 - ''makeFlags="$makeFlags BUILD_LDFLAGS=-Wl,-rpath,${stdenv.gcc.libc}/lib"'' 172 } 173 174 ${preConfigure}
··· 167 168 configureScript="`pwd`/../$sourceRoot/configure" 169 170 + ${stdenv.lib.optionalString (stdenv.cc.libc != null) 171 + ''makeFlags="$makeFlags BUILD_LDFLAGS=-Wl,-rpath,${stdenv.cc.libc}/lib"'' 172 } 173 174 ${preConfigure}
+3 -3
pkgs/development/libraries/glibc/default.nix
··· 8 , withGd ? false, gd ? null, libpng ? null 9 }: 10 11 - assert stdenv.gcc.gcc != null; 12 13 let 14 build = import ./common.nix; ··· 33 # libgcc_s will not be at {gcc}/lib, and gcc's libgcc will be found without 34 # any special hack. 35 preInstall = '' 36 - if [ -f ${stdenv.gcc.gcc}/lib/libgcc_s.so.1 ]; then 37 mkdir -p $out/lib 38 - cp ${stdenv.gcc.gcc}/lib/libgcc_s.so.1 $out/lib/libgcc_s.so.1 39 fi 40 ''; 41
··· 8 , withGd ? false, gd ? null, libpng ? null 9 }: 10 11 + assert stdenv.cc ? gcc; 12 13 let 14 build = import ./common.nix; ··· 33 # libgcc_s will not be at {gcc}/lib, and gcc's libgcc will be found without 34 # any special hack. 35 preInstall = '' 36 + if [ -f ${stdenv.cc.gcc}/lib/libgcc_s.so.1 ]; then 37 mkdir -p $out/lib 38 + cp ${stdenv.cc.gcc}/lib/libgcc_s.so.1 $out/lib/libgcc_s.so.1 39 fi 40 ''; 41
+1 -1
pkgs/development/libraries/haskell/cuda/default.nix
··· 9 isLibrary = true; 10 isExecutable = true; 11 buildTools = [ c2hs ]; 12 - extraLibraries = [ cudatoolkit nvidia_x11 self.stdenv.gcc ]; 13 doCheck = false; 14 # Perhaps this should be the default in cabal.nix ... 15 #
··· 9 isLibrary = true; 10 isExecutable = true; 11 buildTools = [ c2hs ]; 12 + extraLibraries = [ cudatoolkit nvidia_x11 self.stdenv.cc ]; 13 doCheck = false; 14 # Perhaps this should be the default in cabal.nix ... 15 #
+1 -1
pkgs/development/libraries/libedit/default.nix
··· 12 NROFF = "${groff}/bin/nroff"; 13 14 postInstall = '' 15 - sed -i ${stdenv.lib.optionalString (stdenv.isDarwin && stdenv.gcc.nativeTools) "''"} s/-lncurses/-lncursesw/g $out/lib/pkgconfig/libedit.pc 16 ''; 17 18 configureFlags = [ "--enable-widec" ];
··· 12 NROFF = "${groff}/bin/nroff"; 13 14 postInstall = '' 15 + sed -i ${stdenv.lib.optionalString (stdenv.isDarwin && stdenv.cc.nativeTools) "''"} s/-lncurses/-lncursesw/g $out/lib/pkgconfig/libedit.pc 16 ''; 17 18 configureFlags = [ "--enable-widec" ];
+1 -1
pkgs/development/libraries/libopensc-dnie/default.nix
··· 22 ar x opensc-dnie* 23 tar xf data.tar.gz 24 25 - RPATH=${glib}/lib:${opensc}/lib:${openssl}/lib:${openct}/lib:${libtool}/lib:${pcsclite}/lib:${stdenv.gcc.libc}/lib:${zlib}/lib 26 27 for a in "usr/lib/"*.so*; do 28 if ! test -L $a; then
··· 22 ar x opensc-dnie* 23 tar xf data.tar.gz 24 25 + RPATH=${glib}/lib:${opensc}/lib:${openssl}/lib:${openct}/lib:${libtool}/lib:${pcsclite}/lib:${stdenv.cc.libc}/lib:${zlib}/lib 26 27 for a in "usr/lib/"*.so*; do 28 if ! test -L $a; then
+2 -2
pkgs/development/libraries/libre/default.nix
··· 11 "USE_ZLIB=1" "USE_OPENSSL=1" 12 ''PREFIX=$(out)'' 13 ] 14 - ++ stdenv.lib.optional (stdenv.gcc.gcc != null) "SYSROOT_ALT=${stdenv.gcc.gcc}" 15 - ++ stdenv.lib.optional (stdenv.gcc.libc != null) "SYSROOT=${stdenv.gcc.libc}" 16 ; 17 meta = { 18 homepage = "http://www.creytiv.com/re.html";
··· 11 "USE_ZLIB=1" "USE_OPENSSL=1" 12 ''PREFIX=$(out)'' 13 ] 14 + ++ stdenv.lib.optional (stdenv.cc.gcc != null) "SYSROOT_ALT=${stdenv.cc.gcc}" 15 + ++ stdenv.lib.optional (stdenv.cc.libc != null) "SYSROOT=${stdenv.cc.libc}" 16 ; 17 meta = { 18 homepage = "http://www.creytiv.com/re.html";
+2 -2
pkgs/development/libraries/librem/default.nix
··· 12 "LIBRE_INC=${libre}/include/re" 13 ''PREFIX=$(out)'' 14 ] 15 - ++ stdenv.lib.optional (stdenv.gcc.gcc != null) "SYSROOT_ALT=${stdenv.gcc.gcc}" 16 - ++ stdenv.lib.optional (stdenv.gcc.libc != null) "SYSROOT=${stdenv.gcc.libc}" 17 ; 18 meta = { 19 homepage = "http://www.creytiv.com/rem.html";
··· 12 "LIBRE_INC=${libre}/include/re" 13 ''PREFIX=$(out)'' 14 ] 15 + ++ stdenv.lib.optional (stdenv.cc.gcc != null) "SYSROOT_ALT=${stdenv.cc.gcc}" 16 + ++ stdenv.lib.optional (stdenv.cc.libc != null) "SYSROOT=${stdenv.cc.libc}" 17 ; 18 meta = { 19 homepage = "http://www.creytiv.com/rem.html";
+1 -1
pkgs/development/libraries/libvncserver/default.nix
··· 29 inherit (s) url sha256; 30 }; 31 preConfigure = '' 32 - sed -e 's@/usr/include/linux@${stdenv.gcc.libc}/include/linux@g' -i configure 33 ''; 34 meta = { 35 inherit (s) version;
··· 29 inherit (s) url sha256; 30 }; 31 preConfigure = '' 32 + sed -e 's@/usr/include/linux@${stdenv.cc.libc}/include/linux@g' -i configure 33 ''; 34 meta = { 35 inherit (s) version;
+2
pkgs/development/libraries/pdf2xml/default.nix
··· 21 sed -i 's|XPDF = xpdf_3.01|XPDF = ${libxpdf}/lib|' Makefile 22 23 mkdir exe 24 ''; 25 26 installPhase = ''
··· 21 sed -i 's|XPDF = xpdf_3.01|XPDF = ${libxpdf}/lib|' Makefile 22 23 mkdir exe 24 + 25 + buildFlags+=" CXX=$CXX" 26 ''; 27 28 installPhase = ''
+2 -2
pkgs/development/libraries/podofo/default.nix
··· 11 12 propagatedBuildInputs = [ zlib freetype libjpeg libtiff fontconfig openssl libpng ]; 13 nativeBuildInputs = [ cmake ]; 14 - buildInputs = [ lua5 stdenv.gcc.libc ]; 15 16 crossAttrs = { 17 propagatedBuildInputs = [ zlib.crossDrv freetype.crossDrv libjpeg.crossDrv 18 libtiff.crossDrv fontconfig.crossDrv openssl.crossDrv libpng.crossDrv 19 - lua5.crossDrv stdenv.gccCross.libc ]; 20 }; 21 22 # fix finding freetype-2.5
··· 11 12 propagatedBuildInputs = [ zlib freetype libjpeg libtiff fontconfig openssl libpng ]; 13 nativeBuildInputs = [ cmake ]; 14 + buildInputs = [ lua5 stdenv.cc.libc ]; 15 16 crossAttrs = { 17 propagatedBuildInputs = [ zlib.crossDrv freetype.crossDrv libjpeg.crossDrv 18 libtiff.crossDrv fontconfig.crossDrv openssl.crossDrv libpng.crossDrv 19 + lua5.crossDrv stdenv.ccCross.libc ]; 20 }; 21 22 # fix finding freetype-2.5
+2 -2
pkgs/development/libraries/qt-4.x/4.8/default.nix
··· 45 # remove impure reference to /usr/lib/libstdc++.6.dylib 46 # there might be more references, but this is the only one I could find 47 substituteInPlace tools/macdeployqt/tests/tst_deployment_mac.cpp \ 48 - --replace /usr/lib/libstdc++.6.dylib "${stdenv.gcc}/lib/libstdc++.6.dylib" 49 ''; 50 51 patches = ··· 53 (substituteAll { 54 src = ./dlopen-absolute-paths.diff; 55 inherit cups icu libXfixes; 56 - glibc = stdenv.gcc.libc; 57 openglDriver = if mesaSupported then mesa.driverLink else "/no-such-path"; 58 }) 59 ] ++ stdenv.lib.optional gtkStyle (substituteAll {
··· 45 # remove impure reference to /usr/lib/libstdc++.6.dylib 46 # there might be more references, but this is the only one I could find 47 substituteInPlace tools/macdeployqt/tests/tst_deployment_mac.cpp \ 48 + --replace /usr/lib/libstdc++.6.dylib "${stdenv.cc}/lib/libstdc++.6.dylib" 49 ''; 50 51 patches = ··· 53 (substituteAll { 54 src = ./dlopen-absolute-paths.diff; 55 inherit cups icu libXfixes; 56 + glibc = stdenv.cc.libc; 57 openglDriver = if mesaSupported then mesa.driverLink else "/no-such-path"; 58 }) 59 ] ++ stdenv.lib.optional gtkStyle (substituteAll {
+2 -2
pkgs/development/libraries/scmccid/default.nix
··· 1 {stdenv, fetchurl, patchelf, libusb}: 2 3 - assert stdenv ? gcc && stdenv.gcc.libc != null; 4 5 stdenv.mkDerivation rec { 6 name = "scmccid-5.0.11"; ··· 18 buildInputs = [ patchelf ]; 19 20 installPhase = '' 21 - RPATH=${libusb}/lib:${stdenv.gcc.libc}/lib 22 23 for a in proprietary/*/Contents/Linux/*.so*; do 24 if ! test -L $a; then
··· 1 {stdenv, fetchurl, patchelf, libusb}: 2 3 + assert stdenv ? cc && stdenv.cc.libc != null; 4 5 stdenv.mkDerivation rec { 6 name = "scmccid-5.0.11"; ··· 18 buildInputs = [ patchelf ]; 19 20 installPhase = '' 21 + RPATH=${libusb}/lib:${stdenv.cc.libc}/lib 22 23 for a in proprietary/*/Contents/Linux/*.so*; do 24 if ! test -L $a; then
+1 -1
pkgs/development/libraries/serf/default.nix
··· 19 buildPhase = '' 20 scons PREFIX="$out" OPENSSL="${openssl}" ZLIB="${zlib}" APR="$(echo "${apr}"/bin/*-config)" \ 21 APU="$(echo "${aprutil}"/bin/*-config)" GSSAPI="${krb5}" CC="${ 22 - if stdenv.isDarwin then "clang" else "${stdenv.gcc}/bin/gcc" 23 }" 24 ''; 25
··· 19 buildPhase = '' 20 scons PREFIX="$out" OPENSSL="${openssl}" ZLIB="${zlib}" APR="$(echo "${apr}"/bin/*-config)" \ 21 APU="$(echo "${aprutil}"/bin/*-config)" GSSAPI="${krb5}" CC="${ 22 + if stdenv.isDarwin then "clang" else "${stdenv.cc}/bin/gcc" 23 }" 24 ''; 25
+1 -1
pkgs/development/libraries/strigi/default.nix
··· 16 CLUCENE_HOME = clucene_core; 17 18 buildInputs = 19 - [ zlib bzip2 stdenv.gcc.libc libxml2 qt4 exiv2 clucene_core fam dbus_tools ]; 20 21 nativeBuildInputs = [ cmake pkgconfig perl ]; 22
··· 16 CLUCENE_HOME = clucene_core; 17 18 buildInputs = 19 + [ zlib bzip2 stdenv.cc.libc libxml2 qt4 exiv2 clucene_core fam dbus_tools ]; 20 21 nativeBuildInputs = [ cmake pkgconfig perl ]; 22
+2 -2
pkgs/development/libraries/v8/default.nix
··· 57 ''; 58 59 postFixup = if stdenv.isDarwin then '' 60 - install_name_tool -change /usr/local/lib/libv8.dylib $out/lib/libv8.dylib -change /usr/lib/libgcc_s.1.dylib ${stdenv.gcc.gcc}/lib/libgcc_s.1.dylib $out/bin/d8 61 - install_name_tool -id $out/lib/libv8.dylib -change /usr/lib/libgcc_s.1.dylib ${stdenv.gcc.gcc}/lib/libgcc_s.1.dylib $out/lib/libv8.dylib 62 '' else null; 63 64 meta = with stdenv.lib; {
··· 57 ''; 58 59 postFixup = if stdenv.isDarwin then '' 60 + install_name_tool -change /usr/local/lib/libv8.dylib $out/lib/libv8.dylib -change /usr/lib/libgcc_s.1.dylib ${stdenv.cc.gcc}/lib/libgcc_s.1.dylib $out/bin/d8 61 + install_name_tool -id $out/lib/libv8.dylib -change /usr/lib/libgcc_s.1.dylib ${stdenv.cc.gcc}/lib/libgcc_s.1.dylib $out/lib/libv8.dylib 62 '' else null; 63 64 meta = with stdenv.lib; {
+1 -1
pkgs/development/libraries/wtk/builder.sh
··· 22 rpath=$rpath${rpath:+:}$i/lib 23 done 24 find $out -type f -perm +100 \ 25 - -exec patchelf --interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" {} \; 26 find $out -type f -perm +100 \ 27 -exec patchelf --set-rpath "$rpath" {} \;
··· 22 rpath=$rpath${rpath:+:}$i/lib 23 done 24 find $out -type f -perm +100 \ 25 + -exec patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" {} \; 26 find $out -type f -perm +100 \ 27 -exec patchelf --set-rpath "$rpath" {} \;
+1 -1
pkgs/development/libraries/wtk/default.nix
··· 15 16 buildInputs = [ unzip ]; 17 18 - libraries = [ xlibs.libXpm xlibs.libXt xlibs.libX11 xlibs.libICE xlibs.libSM stdenv.gcc.gcc ]; 19 20 meta = { 21 homepage = http://java.sun.com/products/sjwtoolkit/download.html;
··· 15 16 buildInputs = [ unzip ]; 17 18 + libraries = [ xlibs.libXpm xlibs.libXt xlibs.libX11 xlibs.libICE xlibs.libSM stdenv.cc.gcc ]; 19 20 meta = { 21 homepage = http://java.sun.com/products/sjwtoolkit/download.html;
+4 -4
pkgs/development/misc/amdapp-sdk/default.nix
··· 46 47 patchFlags = "-p0"; 48 buildInputs = [ makeWrapper perl mesa xorg.libX11 xorg.libXext xorg.libXaw xorg.libXi xorg.libXxf86vm ]; 49 - propagatedBuildInputs = [ stdenv.gcc ]; 50 NIX_LDFLAGS = "-lX11 -lXext -lXmu -lXi -lXxf86vm"; 51 doCheck = false; 52 ··· 81 cp -r "./samples/opencl/bin/${arch}/"* "$out/samples/opencl/bin" 82 for f in $(find "$out/samples/opencl/bin/" -type f -not -name "*.*"); 83 do 84 - wrapProgram "$f" --prefix PATH ":" "${stdenv.gcc}/bin" 85 done'' else "" 86 } 87 88 # Create wrappers 89 - patchelf --set-interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" $out/bin/clinfo 90 - patchelf --set-rpath ${stdenv.gcc.gcc}/lib64:${stdenv.gcc.gcc}/lib $out/bin/clinfo 91 92 # Fix modes 93 find "$out/" -type f -exec chmod 644 {} \;
··· 46 47 patchFlags = "-p0"; 48 buildInputs = [ makeWrapper perl mesa xorg.libX11 xorg.libXext xorg.libXaw xorg.libXi xorg.libXxf86vm ]; 49 + propagatedBuildInputs = [ stdenv.cc ]; 50 NIX_LDFLAGS = "-lX11 -lXext -lXmu -lXi -lXxf86vm"; 51 doCheck = false; 52 ··· 81 cp -r "./samples/opencl/bin/${arch}/"* "$out/samples/opencl/bin" 82 for f in $(find "$out/samples/opencl/bin/" -type f -not -name "*.*"); 83 do 84 + wrapProgram "$f" --prefix PATH ":" "${stdenv.cc}/bin" 85 done'' else "" 86 } 87 88 # Create wrappers 89 + patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" $out/bin/clinfo 90 + patchelf --set-rpath ${stdenv.cc.gcc}/lib64:${stdenv.cc.gcc}/lib $out/bin/clinfo 91 92 # Fix modes 93 find "$out/" -type f -exec chmod 644 {} \;
+1 -1
pkgs/development/mobile/androidenv/androidndk.nix
··· 54 find $out \( \ 55 \( -type f -a -name "*.so*" \) -o \ 56 \( -type f -a -perm /0100 \) \ 57 - \) -exec patchelf --set-interpreter ${stdenv.gcc.libc}/lib/ld-*so.? \ 58 --set-rpath ${zlib}/lib:${ncurses}/lib {} \; 59 # fix ineffective PROGDIR / MYNDKDIR determination 60 for i in ndk-build ndk-gdb ndk-gdb-py
··· 54 find $out \( \ 55 \( -type f -a -name "*.so*" \) -o \ 56 \( -type f -a -perm /0100 \) \ 57 + \) -exec patchelf --set-interpreter ${stdenv.cc.libc}/lib/ld-*so.? \ 58 --set-rpath ${zlib}/lib:${ncurses}/lib {} \; 59 # fix ineffective PROGDIR / MYNDKDIR determination 60 for i in ndk-build ndk-gdb ndk-gdb-py
+6 -6
pkgs/development/mobile/androidenv/androidsdk.nix
··· 43 44 for i in emulator64-arm emulator64-mips emulator64-x86 45 do 46 - patchelf --set-interpreter ${stdenv.gcc.libc}/lib/ld-linux-x86-64.so.2 $i 47 - patchelf --set-rpath ${stdenv.gcc.gcc}/lib64 $i 48 done 49 ''} 50 ··· 80 # The monitor requires some more patching 81 82 cd lib/monitor-x86 83 - patchelf --set-interpreter ${stdenv.gcc.libc}/lib/ld-linux.so.2 monitor 84 patchelf --set-rpath ${libX11}/lib:${libXext}/lib:${libXrender}/lib:${freetype}/lib:${fontconfig}/lib libcairo-swt.so 85 86 wrapProgram `pwd`/monitor \ 87 - --prefix LD_LIBRARY_PATH : ${gtk}/lib:${atk}/lib:${stdenv.gcc.gcc}/lib 88 89 cd ../.. 90 '' ··· 93 # The monitor requires some more patching 94 95 cd lib/monitor-x86_64 96 - patchelf --set-interpreter ${stdenv.gcc.libc}/lib/ld-linux-x86-64.so.2 monitor 97 patchelf --set-rpath ${libX11}/lib:${libXext}/lib:${libXrender}/lib:${freetype}/lib:${fontconfig}/lib libcairo-swt.so 98 99 wrapProgram `pwd`/monitor \ 100 - --prefix LD_LIBRARY_PATH : ${gtk}/lib:${atk}/lib:${stdenv.gcc.gcc}/lib 101 102 cd ../.. 103 ''
··· 43 44 for i in emulator64-arm emulator64-mips emulator64-x86 45 do 46 + patchelf --set-interpreter ${stdenv.cc.libc}/lib/ld-linux-x86-64.so.2 $i 47 + patchelf --set-rpath ${stdenv.cc.gcc}/lib64 $i 48 done 49 ''} 50 ··· 80 # The monitor requires some more patching 81 82 cd lib/monitor-x86 83 + patchelf --set-interpreter ${stdenv.cc.libc}/lib/ld-linux.so.2 monitor 84 patchelf --set-rpath ${libX11}/lib:${libXext}/lib:${libXrender}/lib:${freetype}/lib:${fontconfig}/lib libcairo-swt.so 85 86 wrapProgram `pwd`/monitor \ 87 + --prefix LD_LIBRARY_PATH : ${gtk}/lib:${atk}/lib:${stdenv.cc.gcc}/lib 88 89 cd ../.. 90 '' ··· 93 # The monitor requires some more patching 94 95 cd lib/monitor-x86_64 96 + patchelf --set-interpreter ${stdenv.cc.libc}/lib/ld-linux-x86-64.so.2 monitor 97 patchelf --set-rpath ${libX11}/lib:${libXext}/lib:${libXrender}/lib:${freetype}/lib:${fontconfig}/lib libcairo-swt.so 98 99 wrapProgram `pwd`/monitor \ 100 + --prefix LD_LIBRARY_PATH : ${gtk}/lib:${atk}/lib:${stdenv.cc.gcc}/lib 101 102 cd ../.. 103 ''
+1 -1
pkgs/development/mobile/flashtool/default.nix
··· 36 ln -s ${libusb1}/lib/libusb-1.0.so.0 ./x10flasher_lib/linux/lib32/libusbx-1.0.so 37 38 chmod +x x10flasher_lib/unyaffs.linux.x86 x10flasher_lib/bin2elf x10flasher_lib/bin2sin 39 - patchelf --set-interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" x10flasher_lib/unyaffs.linux.x86 40 ln -sf unyaffs.linux.x86 x10flasher_lib/unyaffs.linux 41 42 ln -s swt32.jar x10flasher_lib/swtlin/swt.jar
··· 36 ln -s ${libusb1}/lib/libusb-1.0.so.0 ./x10flasher_lib/linux/lib32/libusbx-1.0.so 37 38 chmod +x x10flasher_lib/unyaffs.linux.x86 x10flasher_lib/bin2elf x10flasher_lib/bin2sin 39 + patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" x10flasher_lib/unyaffs.linux.x86 40 ln -sf unyaffs.linux.x86 x10flasher_lib/unyaffs.linux 41 42 ln -s swt32.jar x10flasher_lib/swtlin/swt.jar
+2 -2
pkgs/development/mobile/titaniumenv/titaniumsdk-3.1.nix
··· 45 46 ${if stdenv.system == "i686-linux" then 47 '' 48 - patchelf --set-interpreter ${stdenv.gcc.libc}/lib/ld-linux.so.2 titanium_prep.linux32 49 '' 50 else if stdenv.system == "x86_64-linux" then 51 '' 52 - patchelf --set-interpreter ${stdenv.gcc.libc}/lib/ld-linux-x86-64.so.2 titanium_prep.linux64 53 '' 54 else ""} 55
··· 45 46 ${if stdenv.system == "i686-linux" then 47 '' 48 + patchelf --set-interpreter ${stdenv.cc.libc}/lib/ld-linux.so.2 titanium_prep.linux32 49 '' 50 else if stdenv.system == "x86_64-linux" then 51 '' 52 + patchelf --set-interpreter ${stdenv.cc.libc}/lib/ld-linux-x86-64.so.2 titanium_prep.linux64 53 '' 54 else ""} 55
+2 -2
pkgs/development/mobile/titaniumenv/titaniumsdk-3.2.nix
··· 44 45 ${if stdenv.system == "i686-linux" then 46 '' 47 - patchelf --set-interpreter ${stdenv.gcc.libc}/lib/ld-linux.so.2 titanium_prep.linux32 48 '' 49 else if stdenv.system == "x86_64-linux" then 50 '' 51 - patchelf --set-interpreter ${stdenv.gcc.libc}/lib/ld-linux-x86-64.so.2 titanium_prep.linux64 52 '' 53 else ""} 54
··· 44 45 ${if stdenv.system == "i686-linux" then 46 '' 47 + patchelf --set-interpreter ${stdenv.cc.libc}/lib/ld-linux.so.2 titanium_prep.linux32 48 '' 49 else if stdenv.system == "x86_64-linux" then 50 '' 51 + patchelf --set-interpreter ${stdenv.cc.libc}/lib/ld-linux-x86-64.so.2 titanium_prep.linux64 52 '' 53 else ""} 54
+2 -2
pkgs/development/mobile/titaniumenv/titaniumsdk-3.3.nix
··· 44 45 ${if stdenv.system == "i686-linux" then 46 '' 47 - patchelf --set-interpreter ${stdenv.gcc.libc}/lib/ld-linux.so.2 titanium_prep.linux32 48 '' 49 else if stdenv.system == "x86_64-linux" then 50 '' 51 - patchelf --set-interpreter ${stdenv.gcc.libc}/lib/ld-linux-x86-64.so.2 titanium_prep.linux64 52 '' 53 else ""} 54
··· 44 45 ${if stdenv.system == "i686-linux" then 46 '' 47 + patchelf --set-interpreter ${stdenv.cc.libc}/lib/ld-linux.so.2 titanium_prep.linux32 48 '' 49 else if stdenv.system == "x86_64-linux" then 50 '' 51 + patchelf --set-interpreter ${stdenv.cc.libc}/lib/ld-linux-x86-64.so.2 titanium_prep.linux64 52 '' 53 else ""} 54
+2 -2
pkgs/development/mobile/titaniumenv/titaniumsdk-3.4.nix
··· 44 45 ${if stdenv.system == "i686-linux" then 46 '' 47 - patchelf --set-interpreter ${stdenv.gcc.libc}/lib/ld-linux.so.2 titanium_prep.linux32 48 '' 49 else if stdenv.system == "x86_64-linux" then 50 '' 51 - patchelf --set-interpreter ${stdenv.gcc.libc}/lib/ld-linux-x86-64.so.2 titanium_prep.linux64 52 '' 53 else ""} 54
··· 44 45 ${if stdenv.system == "i686-linux" then 46 '' 47 + patchelf --set-interpreter ${stdenv.cc.libc}/lib/ld-linux.so.2 titanium_prep.linux32 48 '' 49 else if stdenv.system == "x86_64-linux" then 50 '' 51 + patchelf --set-interpreter ${stdenv.cc.libc}/lib/ld-linux-x86-64.so.2 titanium_prep.linux64 52 '' 53 else ""} 54
+1 -1
pkgs/development/tools/atom-shell/default.nix
··· 32 installPhase = '' 33 mkdir -p $out/bin 34 unzip -d $out/bin $src 35 - patchelf --set-interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" \ 36 $out/bin/atom 37 mv $out/bin/atom $out/bin/atom-shell 38 wrapProgram $out/bin/atom-shell \
··· 32 installPhase = '' 33 mkdir -p $out/bin 34 unzip -d $out/bin $src 35 + patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ 36 $out/bin/atom 37 mv $out/bin/atom $out/bin/atom-shell 38 wrapProgram $out/bin/atom-shell \
+2 -2
pkgs/development/tools/build-managers/cargo/common.nix
··· 37 mkdir -p "$out" 38 cp -r bin "$out/bin" 39 '' + (if stdenv.isLinux then '' 40 - patchelf --interpreter "${stdenv.glibc}/lib/${stdenv.gcc.dynamicLinker}" \ 41 - --set-rpath "${stdenv.gcc.gcc}/lib/:${stdenv.gcc.gcc}/lib64/:${zlib}/lib" \ 42 "$out/bin/cargo" 43 '' else ""); 44 };
··· 37 mkdir -p "$out" 38 cp -r bin "$out/bin" 39 '' + (if stdenv.isLinux then '' 40 + patchelf --interpreter "${stdenv.glibc}/lib/${stdenv.cc.dynamicLinker}" \ 41 + --set-rpath "${stdenv.cc.gcc}/lib/:${stdenv.cc.gcc}/lib64/:${zlib}/lib" \ 42 "$out/bin/cargo" 43 '' else ""); 44 };
+1 -1
pkgs/development/tools/cdecl/default.nix
··· 11 preBuild = '' 12 ${gnused}/bin/sed 's/getline/cdecl_getline/g' -i cdecl.c; 13 makeFlagsArray=(CFLAGS="-DBSD -DUSE_READLINE -std=gnu89" LIBS=-lreadline); 14 - makeFlags="$makeFlags PREFIX=$out BINDIR=$out/bin MANDIR=$out/man1 CATDIR=$out/cat1"; 15 mkdir -p $out/bin; 16 ''; 17 buildInputs = [yacc flex readline ncurses];
··· 11 preBuild = '' 12 ${gnused}/bin/sed 's/getline/cdecl_getline/g' -i cdecl.c; 13 makeFlagsArray=(CFLAGS="-DBSD -DUSE_READLINE -std=gnu89" LIBS=-lreadline); 14 + makeFlags="$makeFlags PREFIX=$out BINDIR=$out/bin MANDIR=$out/man1 CATDIR=$out/cat1 CC=$CC"; 15 mkdir -p $out/bin; 16 ''; 17 buildInputs = [yacc flex readline ncurses];
+1 -1
pkgs/development/tools/misc/cflow/default.nix
··· 11 patchPhase = '' 12 substituteInPlace "src/cflow.h" \ 13 --replace "/usr/bin/cpp" \ 14 - "$(cat ${stdenv.gcc}/nix-support/orig-gcc)/bin/cpp" 15 ''; 16 17 buildInputs = [ gettext ] ++
··· 11 patchPhase = '' 12 substituteInPlace "src/cflow.h" \ 13 --replace "/usr/bin/cpp" \ 14 + "$(cat ${stdenv.cc}/nix-support/orig-gcc)/bin/cpp" 15 ''; 16 17 buildInputs = [ gettext ] ++
+2 -2
pkgs/development/tools/misc/saleae-logic/default.nix
··· 62 cp -r * "$out" 63 64 # Patch it 65 - patchelf --set-interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" "$out/Logic" 66 - patchelf --set-rpath "${stdenv.gcc.gcc}/lib:${stdenv.gcc.gcc}/lib64:${libPath}:\$ORIGIN/Analyzers:\$ORIGIN" "$out/Logic" 67 68 # Build the LD_PRELOAD library that makes Logic work from a read-only directory 69 mkdir -p "$out/lib"
··· 62 cp -r * "$out" 63 64 # Patch it 65 + patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" "$out/Logic" 66 + patchelf --set-rpath "${stdenv.cc.gcc}/lib:${stdenv.cc.gcc}/lib64:${libPath}:\$ORIGIN/Analyzers:\$ORIGIN" "$out/Logic" 67 68 # Build the LD_PRELOAD library that makes Logic work from a read-only directory 69 mkdir -p "$out/lib"
+3 -3
pkgs/development/tools/node-webkit/default.nix
··· 10 paths = [ 11 xlibs.libX11 xlibs.libXrender glib gtk atk pango cairo gdk_pixbuf 12 freetype fontconfig xlibs.libXcomposite alsaLib xlibs.libXdamage 13 - xlibs.libXext xlibs.libXfixes nss nspr gconf expat dbus stdenv.gcc.gcc 14 xlibs.libXtst xlibs.libXi 15 ]; 16 }; ··· 30 mkdir -p $out/share/node-webkit 31 cp -R * $out/share/node-webkit 32 33 - patchelf --set-interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" $out/share/node-webkit/nw 34 - patchelf --set-interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" $out/share/node-webkit/nwsnapshot 35 36 ln -s ${udev}/lib/libudev.so $out/share/node-webkit/libudev.so.0 37
··· 10 paths = [ 11 xlibs.libX11 xlibs.libXrender glib gtk atk pango cairo gdk_pixbuf 12 freetype fontconfig xlibs.libXcomposite alsaLib xlibs.libXdamage 13 + xlibs.libXext xlibs.libXfixes nss nspr gconf expat dbus stdenv.cc.gcc 14 xlibs.libXtst xlibs.libXi 15 ]; 16 }; ··· 30 mkdir -p $out/share/node-webkit 31 cp -R * $out/share/node-webkit 32 33 + patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" $out/share/node-webkit/nw 34 + patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" $out/share/node-webkit/nwsnapshot 35 36 ln -s ${udev}/lib/libudev.so $out/share/node-webkit/libudev.so.0 37
+2 -2
pkgs/development/tools/phantomjs/default.nix
··· 31 32 buildPhase = if stdenv.isDarwin then "" else '' 33 patchelf \ 34 - --set-interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" \ 35 - --set-rpath "${freetype}/lib:${fontconfig}/lib:${stdenv.gcc.gcc}/lib64:${stdenv.gcc.gcc}/lib:${openssl}/lib" \ 36 bin/phantomjs 37 ''; 38
··· 31 32 buildPhase = if stdenv.isDarwin then "" else '' 33 patchelf \ 34 + --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ 35 + --set-rpath "${freetype}/lib:${fontconfig}/lib:${stdenv.cc.gcc}/lib64:${stdenv.cc.gcc}/lib:${openssl}/lib" \ 36 bin/phantomjs 37 ''; 38
+1 -1
pkgs/development/tools/selenium/chromedriver/default.nix
··· 23 mv chromedriver $out/bin 24 patchelf --set-interpreter ${glibc}/lib/ld-linux-x86-64.so.2 $out/bin/chromedriver 25 wrapProgram "$out/bin/chromedriver" \ 26 - --prefix LD_LIBRARY_PATH : "$(cat ${stdenv.gcc}/nix-support/orig-gcc)/lib64:${cairo}/lib:${fontconfig}/lib:${freetype}/lib:${gdk_pixbuf}/lib:${glib}/lib:${gtk}/lib:${libX11}/lib:${nspr}/lib:${nss}/lib:${pango}/lib:${libXrender}/lib:${gconf}/lib:${libXext}/lib:${libXi}/lib:\$LD_LIBRARY_PATH" 27 ''; 28 29 meta = with stdenv.lib; {
··· 23 mv chromedriver $out/bin 24 patchelf --set-interpreter ${glibc}/lib/ld-linux-x86-64.so.2 $out/bin/chromedriver 25 wrapProgram "$out/bin/chromedriver" \ 26 + --prefix LD_LIBRARY_PATH : "$(cat ${stdenv.cc}/nix-support/orig-gcc)/lib64:${cairo}/lib:${fontconfig}/lib:${freetype}/lib:${gdk_pixbuf}/lib:${glib}/lib:${gtk}/lib:${libX11}/lib:${nspr}/lib:${nss}/lib:${pango}/lib:${libXrender}/lib:${gconf}/lib:${libXext}/lib:${libXi}/lib:\$LD_LIBRARY_PATH" 27 ''; 28 29 meta = with stdenv.lib; {
+1 -1
pkgs/development/tools/selenium/server/default.nix
··· 28 29 ${jdk}/bin/jar xf $src launchers/launcher-linux-amd64 30 patchelf \ 31 - --set-interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" \ 32 --set-rpath "${gcc.gcc}/lib/:${gcc.gcc}/lib64:${xlibs.libX11}/lib" \ 33 launchers/launcher-linux-${arch} 34 ${jdk}/bin/jar uf $src launchers/launcher-linux-${arch}
··· 28 29 ${jdk}/bin/jar xf $src launchers/launcher-linux-amd64 30 patchelf \ 31 + --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ 32 --set-rpath "${gcc.gcc}/lib/:${gcc.gcc}/lib64:${xlibs.libX11}/lib" \ 33 launchers/launcher-linux-${arch} 34 ${jdk}/bin/jar uf $src launchers/launcher-linux-${arch}
+2 -2
pkgs/games/adom/default.nix
··· 7 8 inherit (xlibs) libXext libX11; 9 10 - lpath = "${stdenv.gcc.gcc}/lib64:" + stdenv.lib.makeSearchPath "lib" [ 11 zlib libmad libpng12 libcaca libXext libX11 mesa alsaLib pulseaudio]; 12 13 in ··· 45 done 46 47 ${patchelf}/bin/patchelf \ 48 - --set-interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" \ 49 --set-rpath "$out/lib:${lpath}" \ 50 $out/adom 51
··· 7 8 inherit (xlibs) libXext libX11; 9 10 + lpath = "${stdenv.cc.gcc}/lib64:" + stdenv.lib.makeSearchPath "lib" [ 11 zlib libmad libpng12 libcaca libXext libX11 mesa alsaLib pulseaudio]; 12 13 in ··· 45 done 46 47 ${patchelf}/bin/patchelf \ 48 + --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ 49 --set-rpath "$out/lib:${lpath}" \ 50 $out/adom 51
+2 -2
pkgs/games/andyetitmoves/default.nix
··· 41 mkdir -p $out/{opt/andyetitmoves,bin} 42 cp -r * $out/opt/andyetitmoves/ 43 44 - fullPath=${stdenv.gcc.gcc}/lib64 45 for i in $nativeBuildInputs; do 46 fullPath=$fullPath''${fullPath:+:}$i/lib 47 done 48 49 binName=${if commercialVersion then "AndYetItMoves" else "AndYetItMovesDemo"} 50 51 - patchelf --set-interpreter $(cat $NIX_GCC/nix-support/dynamic-linker) --set-rpath $fullPath $out/opt/andyetitmoves/lib/$binName 52 cat > $out/bin/$binName << EOF 53 #!/bin/sh 54 cd $out/opt/andyetitmoves
··· 41 mkdir -p $out/{opt/andyetitmoves,bin} 42 cp -r * $out/opt/andyetitmoves/ 43 44 + fullPath=${stdenv.cc.gcc}/lib64 45 for i in $nativeBuildInputs; do 46 fullPath=$fullPath''${fullPath:+:}$i/lib 47 done 48 49 binName=${if commercialVersion then "AndYetItMoves" else "AndYetItMovesDemo"} 50 51 + patchelf --set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) --set-rpath $fullPath $out/opt/andyetitmoves/lib/$binName 52 cat > $out/bin/$binName << EOF 53 #!/bin/sh 54 cd $out/opt/andyetitmoves
+2 -2
pkgs/games/banner/default.nix
··· 12 sha256 = hash; 13 }; 14 15 - configurePhase = "make dep"; 16 17 - buildPhase = "make OPTIM='-DNDEBUG -O3'"; 18 19 installPhase = '' 20 make INSTBASEDIR=$out install
··· 12 sha256 = hash; 13 }; 14 15 + configurePhase = "make dep CC=$CC"; 16 17 + buildPhase = "make OPTIM='-DNDEBUG -O3' CC=$CC"; 18 19 installPhase = '' 20 make INSTBASEDIR=$out install
+2 -2
pkgs/games/castle-combat/default.nix
··· 39 fixLoaderPath = 40 let dollar = "\$"; in 41 '' sed -i "$out/bin/castle-combat" \ 42 - -e "/^exec/ iexport LD_LIBRARY_PATH=\"$(cat ${stdenv.gcc}/nix-support/orig-gcc)/lib\:"'${dollar}'"LD_LIBRARY_PATH\"\\ 43 - export LD_LIBRARY_PATH=\"$(cat ${stdenv.gcc}/nix-support/orig-gcc)/lib64\:"'${dollar}'"LD_LIBRARY_PATH\"" 44 ''; 45 # ^ 46 # `--- The run-time says: "libgcc_s.so.1 must be installed for
··· 39 fixLoaderPath = 40 let dollar = "\$"; in 41 '' sed -i "$out/bin/castle-combat" \ 42 + -e "/^exec/ iexport LD_LIBRARY_PATH=\"$(cat ${stdenv.cc}/nix-support/orig-gcc)/lib\:"'${dollar}'"LD_LIBRARY_PATH\"\\ 43 + export LD_LIBRARY_PATH=\"$(cat ${stdenv.cc}/nix-support/orig-gcc)/lib64\:"'${dollar}'"LD_LIBRARY_PATH\"" 44 ''; 45 # ^ 46 # `--- The run-time says: "libgcc_s.so.1 must be installed for
+2 -2
pkgs/games/gemrb/default.nix
··· 1 { stdenv, fetchurl, cmake, SDL, openal, zlib, libpng, python, libvorbis }: 2 3 - assert stdenv.gcc.libc != null; 4 5 stdenv.mkDerivation rec { 6 name = "gemrb-0.8.1"; ··· 14 # TODO: make libpng, libvorbis, sdl_mixer, freetype, vlc, glew (and other gl reqs) optional 15 16 # Necessary to find libdl. 17 - CMAKE_LIBRARY_PATH = "${stdenv.gcc.libc}/lib"; 18 19 # Can't have -werror because of the Vorbis header files. 20 cmakeFlags = "-DDISABLE_WERROR=ON -DCMAKE_VERBOSE_MAKEFILE=ON";
··· 1 { stdenv, fetchurl, cmake, SDL, openal, zlib, libpng, python, libvorbis }: 2 3 + assert stdenv.cc.libc != null; 4 5 stdenv.mkDerivation rec { 6 name = "gemrb-0.8.1"; ··· 14 # TODO: make libpng, libvorbis, sdl_mixer, freetype, vlc, glew (and other gl reqs) optional 15 16 # Necessary to find libdl. 17 + CMAKE_LIBRARY_PATH = "${stdenv.cc.libc}/lib"; 18 19 # Can't have -werror because of the Vorbis header files. 20 cmakeFlags = "-DDISABLE_WERROR=ON -DCMAKE_VERBOSE_MAKEFILE=ON";
+3 -3
pkgs/games/gsb/default.nix
··· 25 phases = "unpackPhase installPhase"; 26 27 # XXX: stdenv.lib.makeLibraryPath doesn't pick up /lib64 28 - libPath = stdenv.lib.makeLibraryPath [ stdenv.gcc.gcc stdenv.gcc.libc ] 29 + ":" + stdenv.lib.makeLibraryPath [ SDL SDL_image libjpeg62 libpng12 mesa ] 30 + ":" + stdenv.lib.makeLibraryPath [ curl3 openal libvorbis libogg ] 31 + ":" + stdenv.lib.makeLibraryPath [ libX11 libXext libXft fontconfig zlib ] 32 - + ":" + stdenv.gcc.gcc + "/lib64"; 33 34 installPhase = '' 35 mkdir -p $out/libexec/positech/GSB/ 36 mkdir -p $out/bin 37 38 patchelf \ 39 - --interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" \ 40 --set-rpath $libPath \ 41 ./GSB.bin.$arch 42
··· 25 phases = "unpackPhase installPhase"; 26 27 # XXX: stdenv.lib.makeLibraryPath doesn't pick up /lib64 28 + libPath = stdenv.lib.makeLibraryPath [ stdenv.cc.gcc stdenv.cc.libc ] 29 + ":" + stdenv.lib.makeLibraryPath [ SDL SDL_image libjpeg62 libpng12 mesa ] 30 + ":" + stdenv.lib.makeLibraryPath [ curl3 openal libvorbis libogg ] 31 + ":" + stdenv.lib.makeLibraryPath [ libX11 libXext libXft fontconfig zlib ] 32 + + ":" + stdenv.cc.gcc + "/lib64"; 33 34 installPhase = '' 35 mkdir -p $out/libexec/positech/GSB/ 36 mkdir -p $out/bin 37 38 patchelf \ 39 + --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ 40 --set-rpath $libPath \ 41 ./GSB.bin.$arch 42
+11 -11
pkgs/games/oilrush/default.nix
··· 23 cd bin 24 for f in launcher_$arch libQtCoreUnigine_$arch.so.4 OilRush_$arch 25 do 26 - patchelf --set-interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" $f 27 done 28 - patchelf --set-rpath ${stdenv.gcc.gcc}/lib64:${stdenv.gcc.gcc}/lib:${libX11}/lib:${libXext}/lib:${libXrender}/lib:${fontconfig}/lib:${freetype}/lib\ 29 launcher_$arch 30 - patchelf --set-rpath ${stdenv.gcc.gcc}/lib64:${stdenv.gcc.gcc}/lib\ 31 libNetwork_$arch.so 32 - patchelf --set-rpath ${stdenv.gcc.gcc}/lib64:${stdenv.gcc.gcc}/lib\ 33 libQtCoreUnigine_$arch.so.4 34 - patchelf --set-rpath ${stdenv.gcc.gcc}/lib64:${stdenv.gcc.gcc}/lib:${libX11}/lib:${libXext}/lib:${libXrender}/lib:${fontconfig}/lib:${freetype}/lib\ 35 libQtGuiUnigine_$arch.so.4 36 - patchelf --set-rpath ${stdenv.gcc.gcc}/lib64:${stdenv.gcc.gcc}/lib\ 37 libQtNetworkUnigine_$arch.so.4 38 - patchelf --set-rpath ${stdenv.gcc.gcc}/lib64:${stdenv.gcc.gcc}/lib:${libX11}/lib:${libXext}/lib:${libXrender}/lib:${fontconfig}/lib:${freetype}/lib\ 39 libQtWebKitUnigine_$arch.so.4 40 - patchelf --set-rpath ${stdenv.gcc.gcc}/lib64:${stdenv.gcc.gcc}/lib\ 41 libQtXmlUnigine_$arch.so.4 42 - patchelf --set-rpath ${stdenv.gcc.gcc}/lib64:${stdenv.gcc.gcc}/lib\ 43 libRakNet_$arch.so 44 - patchelf --set-rpath ${stdenv.gcc.gcc}/lib64:${stdenv.gcc.gcc}/lib:${libX11}/lib:${libXext}/lib:${libXinerama}/lib:${libXrandr}/lib\ 45 libUnigine_$arch.so 46 - patchelf --set-rpath ${stdenv.gcc.gcc}/lib64:${stdenv.gcc.gcc}/lib:${libX11}/lib:${libXext}/lib:${libXinerama}/lib:${libXrandr}/lib\ 47 OilRush_$arch 48 ''; 49 installPhase = ''
··· 23 cd bin 24 for f in launcher_$arch libQtCoreUnigine_$arch.so.4 OilRush_$arch 25 do 26 + patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" $f 27 done 28 + patchelf --set-rpath ${stdenv.cc.gcc}/lib64:${stdenv.cc.gcc}/lib:${libX11}/lib:${libXext}/lib:${libXrender}/lib:${fontconfig}/lib:${freetype}/lib\ 29 launcher_$arch 30 + patchelf --set-rpath ${stdenv.cc.gcc}/lib64:${stdenv.cc.gcc}/lib\ 31 libNetwork_$arch.so 32 + patchelf --set-rpath ${stdenv.cc.gcc}/lib64:${stdenv.cc.gcc}/lib\ 33 libQtCoreUnigine_$arch.so.4 34 + patchelf --set-rpath ${stdenv.cc.gcc}/lib64:${stdenv.cc.gcc}/lib:${libX11}/lib:${libXext}/lib:${libXrender}/lib:${fontconfig}/lib:${freetype}/lib\ 35 libQtGuiUnigine_$arch.so.4 36 + patchelf --set-rpath ${stdenv.cc.gcc}/lib64:${stdenv.cc.gcc}/lib\ 37 libQtNetworkUnigine_$arch.so.4 38 + patchelf --set-rpath ${stdenv.cc.gcc}/lib64:${stdenv.cc.gcc}/lib:${libX11}/lib:${libXext}/lib:${libXrender}/lib:${fontconfig}/lib:${freetype}/lib\ 39 libQtWebKitUnigine_$arch.so.4 40 + patchelf --set-rpath ${stdenv.cc.gcc}/lib64:${stdenv.cc.gcc}/lib\ 41 libQtXmlUnigine_$arch.so.4 42 + patchelf --set-rpath ${stdenv.cc.gcc}/lib64:${stdenv.cc.gcc}/lib\ 43 libRakNet_$arch.so 44 + patchelf --set-rpath ${stdenv.cc.gcc}/lib64:${stdenv.cc.gcc}/lib:${libX11}/lib:${libXext}/lib:${libXinerama}/lib:${libXrandr}/lib\ 45 libUnigine_$arch.so 46 + patchelf --set-rpath ${stdenv.cc.gcc}/lib64:${stdenv.cc.gcc}/lib:${libX11}/lib:${libXext}/lib:${libXinerama}/lib:${libXrandr}/lib\ 47 OilRush_$arch 48 ''; 49 installPhase = ''
+4 -4
pkgs/games/planetaryannihilation/default.nix
··· 34 35 ln -s ${systemd}/lib/libudev.so.1 $out/lib/libudev.so.0 36 37 - patchelf --set-interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" "$out/PA" 38 - patchelf --set-interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" --set-rpath "${stdenv.lib.makeLibraryPath [ stdenv.gcc.gcc xlibs.libXdamage xorg.libXfixes gtk glib stdenv.glibc "$out" xlibs.libXext pango udev xlibs.libX11 xlibs.libXcomposite alsaLib atk nspr fontconfig cairo pango nss freetype gnome3.gconf gdk_pixbuf xlibs.libXrender ]}:{stdenv.gcc.gcc}/lib64:${stdenv.glibc}/lib64" "$out/host/CoherentUI_Host.bin" 39 40 - wrapProgram $out/PA --prefix LD_LIBRARY_PATH : "${stdenv.lib.makeLibraryPath [ stdenv.gcc.gcc stdenv.glibc xlibs.libX11 xlibs.libXcursor gtk glib curl "$out" ]}:${stdenv.gcc.gcc}/lib64:${stdenv.glibc}/lib64" 41 42 for f in $out/lib/*; do 43 - patchelf --set-rpath "${stdenv.lib.makeLibraryPath [ stdenv.gcc.gcc curl xlibs.libX11 stdenv.glibc xlibs.libXcursor "$out" ]}:${stdenv.gcc.gcc}/lib64:${stdenv.glibc}/lib64" $f 44 done 45 ''; 46
··· 34 35 ln -s ${systemd}/lib/libudev.so.1 $out/lib/libudev.so.0 36 37 + patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" "$out/PA" 38 + patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" --set-rpath "${stdenv.lib.makeLibraryPath [ stdenv.cc.gcc xlibs.libXdamage xorg.libXfixes gtk glib stdenv.glibc "$out" xlibs.libXext pango udev xlibs.libX11 xlibs.libXcomposite alsaLib atk nspr fontconfig cairo pango nss freetype gnome3.gconf gdk_pixbuf xlibs.libXrender ]}:{stdenv.cc.gcc}/lib64:${stdenv.glibc}/lib64" "$out/host/CoherentUI_Host.bin" 39 40 + wrapProgram $out/PA --prefix LD_LIBRARY_PATH : "${stdenv.lib.makeLibraryPath [ stdenv.cc.gcc stdenv.glibc xlibs.libX11 xlibs.libXcursor gtk glib curl "$out" ]}:${stdenv.cc.gcc}/lib64:${stdenv.glibc}/lib64" 41 42 for f in $out/lib/*; do 43 + patchelf --set-rpath "${stdenv.lib.makeLibraryPath [ stdenv.cc.gcc curl xlibs.libX11 stdenv.glibc xlibs.libXcursor "$out" ]}:${stdenv.cc.gcc}/lib64:${stdenv.glibc}/lib64" $f 44 done 45 ''; 46
+1 -1
pkgs/games/quake3/wrapper/default.nix
··· 7 8 inherit game paks mesa name; 9 10 - gcc = stdenv.gcc.gcc; 11 12 meta = { 13 inherit description;
··· 7 8 inherit game paks mesa name; 9 10 + gcc = stdenv.cc.gcc; 11 12 meta = { 13 inherit description;
+2 -2
pkgs/games/sdlmame/default.nix
··· 22 23 installPhase = '' 24 patchelf \ 25 - --set-interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" \ 26 - --set-rpath "${alsaLib}/lib:${qt48}/lib:${SDL}/lib:${fontconfig}/lib:${freetype}/lib:${SDL_ttf}/lib:${xlibs.libX11}/lib:${xlibs.libXinerama}/lib:${stdenv.gcc.gcc}/lib" \ 27 share/sdlmame/sdlmame 28 29 mkdir -p "$out/bin"
··· 22 23 installPhase = '' 24 patchelf \ 25 + --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ 26 + --set-rpath "${alsaLib}/lib:${qt48}/lib:${SDL}/lib:${fontconfig}/lib:${freetype}/lib:${SDL_ttf}/lib:${xlibs.libX11}/lib:${xlibs.libXinerama}/lib:${stdenv.cc.gcc}/lib" \ 27 share/sdlmame/sdlmame 28 29 mkdir -p "$out/bin"
+1 -1
pkgs/games/spring/default.nix
··· 32 33 postInstall = '' 34 wrapProgram "$out/bin/spring" \ 35 - --prefix LD_LIBRARY_PATH : "${stdenv.gcc.gcc}/lib::${systemd}/lib" 36 ''; 37 38 meta = with stdenv.lib; {
··· 32 33 postInstall = '' 34 wrapProgram "$out/bin/spring" \ 35 + --prefix LD_LIBRARY_PATH : "${stdenv.cc.gcc}/lib::${systemd}/lib" 36 ''; 37 38 meta = with stdenv.lib; {
+1 -1
pkgs/games/tibia/default.nix
··· 25 cp -r * $out/res 26 27 patchelf --set-interpreter ${glibc}/lib/ld-linux.so.2 \ 28 - --set-rpath ${stdenv.gcc.gcc}/lib:${libX11}/lib:${mesa}/lib \ 29 "$out/res/Tibia" 30 31 # We've patchelf'd the files. The main ‘Tibia’ binary is a bit
··· 25 cp -r * $out/res 26 27 patchelf --set-interpreter ${glibc}/lib/ld-linux.so.2 \ 28 + --set-rpath ${stdenv.cc.gcc}/lib:${libX11}/lib:${mesa}/lib \ 29 "$out/res/Tibia" 30 31 # We've patchelf'd the files. The main ‘Tibia’ binary is a bit
+2 -2
pkgs/games/tremulous/default.nix
··· 28 patches = [ ./parse.patch ]; 29 patchFlags = "-p 0"; 30 NIX_LD_FLAGS = '' 31 - -rpath ${stdenv.gcc}/lib 32 - -rpath ${stdenv.gcc}/lib64 33 ''; 34 buildPhase = '' 35 cd Release_1.011
··· 28 patches = [ ./parse.patch ]; 29 patchFlags = "-p 0"; 30 NIX_LD_FLAGS = '' 31 + -rpath ${stdenv.cc}/lib 32 + -rpath ${stdenv.cc}/lib64 33 ''; 34 buildPhase = '' 35 cd Release_1.011
+1 -1
pkgs/games/ue4demos/default.nix
··· 12 13 rtdeps = stdenv.lib.makeLibraryPath 14 [ xlibs.libXxf86vm xlibs.libXext openal ] 15 - + ":" + stdenv.lib.makeSearchPath "lib64" [ stdenv.gcc.gcc ]; 16 17 buildCommand = 18 ''
··· 12 13 rtdeps = stdenv.lib.makeLibraryPath 14 [ xlibs.libXxf86vm xlibs.libXext openal ] 15 + + ":" + stdenv.lib.makeSearchPath "lib64" [ stdenv.cc.gcc ]; 16 17 buildCommand = 18 ''
+1 -1
pkgs/games/ultrastardx/default.nix
··· 15 # The fpc is not properly wrapped to add -rpath. I add this manually. 16 # I even do a trick on lib/lib64 for libgcc, that I expect it will work. 17 preBuild = '' 18 - export NIX_LDFLAGS="$NIX_LDFLAGS -rpath ${SDL}/lib -rpath ${SDL_image}/lib -rpath ${libpng}/lib -rpath ${freetype}/lib -rpath ${portaudio}/lib -rpath ${ffmpeg}/lib -rpath ${zlib}/lib -rpath ${sqlite}/lib -rpath ${libX11}/lib -rpath ${pcre}/lib -rpath ${lua}/lib -rpath ${stdenv.gcc.gcc}/lib64 -rpath ${stdenv.gcc.gcc}/lib" 19 20 sed -i 414,424d Makefile 21 '';
··· 15 # The fpc is not properly wrapped to add -rpath. I add this manually. 16 # I even do a trick on lib/lib64 for libgcc, that I expect it will work. 17 preBuild = '' 18 + export NIX_LDFLAGS="$NIX_LDFLAGS -rpath ${SDL}/lib -rpath ${SDL_image}/lib -rpath ${libpng}/lib -rpath ${freetype}/lib -rpath ${portaudio}/lib -rpath ${ffmpeg}/lib -rpath ${zlib}/lib -rpath ${sqlite}/lib -rpath ${libX11}/lib -rpath ${pcre}/lib -rpath ${lua}/lib -rpath ${stdenv.cc.gcc}/lib64 -rpath ${stdenv.cc.gcc}/lib" 19 20 sed -i 414,424d Makefile 21 '';
+1 -1
pkgs/games/ut2004demo/builder.sh
··· 25 26 # Set the ELF interpreter to our own Glibc. 27 for i in "$out/System/ucc-bin" "$out/System/ut2004-bin"; do 28 - patchelf --set-interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" "$i" 29 done
··· 25 26 # Set the ELF interpreter to our own Glibc. 27 for i in "$out/System/ucc-bin" "$out/System/ut2004-bin"; do 28 + patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" "$i" 29 done
+3 -3
pkgs/games/vessel/default.nix
··· 20 phases = "installPhase"; 21 ld_preload = ./isatty.c; 22 23 - libPath = stdenv.lib.makeLibraryPath [ stdenv.gcc.gcc stdenv.gcc.libc ] 24 + ":" + stdenv.lib.makeLibraryPath [ SDL pulseaudio alsaLib ] ; 25 26 installPhase = '' ··· 35 echo @@@ 36 37 # if we call ld.so $(bin) we don't need to set the ELF interpreter, and save a patchelf step. 38 - LD_PRELOAD=./isatty.so $(cat $NIX_GCC/nix-support/dynamic-linker) $src << IM_A_BOT 39 n 40 $out/libexec/strangeloop/vessel/ 41 IM_A_BOT ··· 47 # props to Ethan Lee (the Vessel porter) for understanding 48 # how $ORIGIN works in rpath. There is hope for humanity. 49 patchelf \ 50 - --interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" \ 51 --set-rpath $libPath:$out/libexec/strangeloop/vessel/x86/ \ 52 $out/libexec/strangeloop/vessel/x86/vessel.x86 53
··· 20 phases = "installPhase"; 21 ld_preload = ./isatty.c; 22 23 + libPath = stdenv.lib.makeLibraryPath [ stdenv.cc.gcc stdenv.cc.libc ] 24 + ":" + stdenv.lib.makeLibraryPath [ SDL pulseaudio alsaLib ] ; 25 26 installPhase = '' ··· 35 echo @@@ 36 37 # if we call ld.so $(bin) we don't need to set the ELF interpreter, and save a patchelf step. 38 + LD_PRELOAD=./isatty.so $(cat $NIX_CC/nix-support/dynamic-linker) $src << IM_A_BOT 39 n 40 $out/libexec/strangeloop/vessel/ 41 IM_A_BOT ··· 47 # props to Ethan Lee (the Vessel porter) for understanding 48 # how $ORIGIN works in rpath. There is hope for humanity. 49 patchelf \ 50 + --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ 51 --set-rpath $libPath:$out/libexec/strangeloop/vessel/x86/ \ 52 $out/libexec/strangeloop/vessel/x86/vessel.x86 53
+3 -3
pkgs/games/worldofgoo/default.nix
··· 45 phases = "unpackPhase installPhase"; 46 47 # XXX: stdenv.lib.makeLibraryPath doesn't pick up /lib64 48 - libPath = stdenv.lib.makeLibraryPath [ stdenv.gcc.gcc stdenv.gcc.libc ] 49 + ":" + stdenv.lib.makeLibraryPath [libX11 libXext libXau libxcb libXdmcp SDL SDL_mixer libvorbis mesa ] 50 - + ":" + stdenv.gcc.gcc + "/lib64"; 51 52 installPhase = '' 53 mkdir -p $out/libexec/2dboy/WorldOfGoo/ 54 mkdir -p $out/bin 55 56 - patchelf --interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" --set-rpath $libPath ./WorldOfGoo.bin64 57 58 cp -r * $out/libexec/2dboy/WorldOfGoo/ 59
··· 45 phases = "unpackPhase installPhase"; 46 47 # XXX: stdenv.lib.makeLibraryPath doesn't pick up /lib64 48 + libPath = stdenv.lib.makeLibraryPath [ stdenv.cc.gcc stdenv.cc.libc ] 49 + ":" + stdenv.lib.makeLibraryPath [libX11 libXext libXau libxcb libXdmcp SDL SDL_mixer libvorbis mesa ] 50 + + ":" + stdenv.cc.gcc + "/lib64"; 51 52 installPhase = '' 53 mkdir -p $out/libexec/2dboy/WorldOfGoo/ 54 mkdir -p $out/bin 55 56 + patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" --set-rpath $libPath ./WorldOfGoo.bin64 57 58 cp -r * $out/libexec/2dboy/WorldOfGoo/ 59
+1 -1
pkgs/misc/cups/drivers/samsung/builder.sh
··· 28 cd $out/lib/cups/filter 29 for i in $(ls); do 30 echo patching $i... 31 - patchelf --set-interpreter $(cat $NIX_GCC/nix-support/dynamic-linker) $i || echo "(couldn't set interpreter)" 32 patchelf --set-rpath $cups/lib:$gcc/lib:$glibc/lib $i # This might not be necessary. 33 done 34
··· 28 cd $out/lib/cups/filter 29 for i in $(ls); do 30 echo patching $i... 31 + patchelf --set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) $i || echo "(couldn't set interpreter)" 32 patchelf --set-rpath $cups/lib:$gcc/lib:$glibc/lib $i # This might not be necessary. 33 done 34
+2 -2
pkgs/misc/drivers/gutenprint/bin.nix
··· 38 39 phases = "buildPhase"; 40 41 - libPath = stdenv.lib.makeLibraryPath [ stdenv.gcc.gcc zlib ]; 42 43 buildPhase = '' 44 ar -x $src data.tar.gz ··· 53 $out/cups/lib/backend/{canon,epson} \ 54 $out/sbin/cups-genppd.5.0 \ 55 ; do 56 - patchelf --interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" \ 57 --set-rpath $libPath $p 58 done 59
··· 38 39 phases = "buildPhase"; 40 41 + libPath = stdenv.lib.makeLibraryPath [ stdenv.cc.gcc zlib ]; 42 43 buildPhase = '' 44 ar -x $src data.tar.gz ··· 53 $out/cups/lib/backend/{canon,epson} \ 54 $out/sbin/cups-genppd.5.0 \ 55 ; do 56 + patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ 57 --set-rpath $libPath $p 58 done 59
+3 -3
pkgs/misc/emulators/wine/stable.nix
··· 4 }: 5 6 assert stdenv.isLinux; 7 - assert stdenv.gcc.gcc != null; 8 9 let 10 version = "1.6.2"; ··· 46 # them to the RPATH so that the user doesn't have to set them in 47 # LD_LIBRARY_PATH. 48 NIX_LDFLAGS = map (path: "-rpath ${path}/lib ") [ 49 - freetype fontconfig stdenv.gcc.gcc mesa mesa_noglu.osmesa libdrm 50 xlibs.libXinerama xlibs.libXrender xlibs.libXrandr 51 xlibs.libXcursor xlibs.libXcomposite libpng libjpeg 52 openssl gnutls cups ··· 65 66 paxmark psmr $out/bin/wine{,-preloader} 67 68 - wrapProgram $out/bin/wine --prefix LD_LIBRARY_PATH : ${stdenv.gcc.gcc}/lib 69 ''; 70 71 enableParallelBuilding = true;
··· 4 }: 5 6 assert stdenv.isLinux; 7 + assert stdenv.cc.gcc != null; 8 9 let 10 version = "1.6.2"; ··· 46 # them to the RPATH so that the user doesn't have to set them in 47 # LD_LIBRARY_PATH. 48 NIX_LDFLAGS = map (path: "-rpath ${path}/lib ") [ 49 + freetype fontconfig stdenv.cc.gcc mesa mesa_noglu.osmesa libdrm 50 xlibs.libXinerama xlibs.libXrender xlibs.libXrandr 51 xlibs.libXcursor xlibs.libXcomposite libpng libjpeg 52 openssl gnutls cups ··· 65 66 paxmark psmr $out/bin/wine{,-preloader} 67 68 + wrapProgram $out/bin/wine --prefix LD_LIBRARY_PATH : ${stdenv.cc.gcc}/lib 69 ''; 70 71 enableParallelBuilding = true;
+3 -3
pkgs/misc/emulators/wine/unstable.nix
··· 4 }: 5 6 assert stdenv.isLinux; 7 - assert stdenv.gcc.gcc != null; 8 9 let 10 version = "1.7.33"; ··· 46 # them to the RPATH so that the user doesn't have to set them in 47 # LD_LIBRARY_PATH. 48 NIX_LDFLAGS = map (path: "-rpath ${path}/lib ") [ 49 - freetype fontconfig stdenv.gcc.gcc mesa mesa_noglu.osmesa libdrm 50 xlibs.libXinerama xlibs.libXrender xlibs.libXrandr 51 xlibs.libXcursor xlibs.libXcomposite libpng libjpeg 52 openssl gnutls cups ncurses ··· 62 install -D ${gecko} $out/share/wine/gecko/${gecko64.name} 63 '' + '' 64 install -D ${mono} $out/share/wine/mono/${mono.name} 65 - wrapProgram $out/bin/wine --prefix LD_LIBRARY_PATH : ${stdenv.gcc.gcc}/lib 66 ''; 67 68 enableParallelBuilding = true;
··· 4 }: 5 6 assert stdenv.isLinux; 7 + assert stdenv.cc.gcc != null; 8 9 let 10 version = "1.7.33"; ··· 46 # them to the RPATH so that the user doesn't have to set them in 47 # LD_LIBRARY_PATH. 48 NIX_LDFLAGS = map (path: "-rpath ${path}/lib ") [ 49 + freetype fontconfig stdenv.cc.gcc mesa mesa_noglu.osmesa libdrm 50 xlibs.libXinerama xlibs.libXrender xlibs.libXrandr 51 xlibs.libXcursor xlibs.libXcomposite libpng libjpeg 52 openssl gnutls cups ncurses ··· 62 install -D ${gecko} $out/share/wine/gecko/${gecko64.name} 63 '' + '' 64 install -D ${mono} $out/share/wine/mono/${mono.name} 65 + wrapProgram $out/bin/wine --prefix LD_LIBRARY_PATH : ${stdenv.cc.gcc}/lib 66 ''; 67 68 enableParallelBuilding = true;
+1 -1
pkgs/misc/foldingathome/default.nix
··· 23 installPhase = '' 24 BINFILES="fah6 mpiexec"; 25 for a in $BINFILES; do 26 - patchelf --set-interpreter $(cat $NIX_GCC/nix-support/dynamic-linker) $a 27 done 28 mkdir -p $out/bin 29 cp $BINFILES $out/bin
··· 23 installPhase = '' 24 BINFILES="fah6 mpiexec"; 25 for a in $BINFILES; do 26 + patchelf --set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) $a 27 done 28 mkdir -p $out/bin 29 cp $BINFILES $out/bin
+1 -1
pkgs/misc/my-env/default.nix
··· 58 59 { mkDerivation, substituteAll, pkgs }: 60 { stdenv ? pkgs.stdenv, name, buildInputs ? [] 61 - , propagatedBuildInputs ? [], gcc ? stdenv.gcc, cTags ? [], extraCmds ? "" 62 , cleanupCmds ? "", shell ? "${pkgs.bashInteractive}/bin/bash --norc"}: 63 64 mkDerivation {
··· 58 59 { mkDerivation, substituteAll, pkgs }: 60 { stdenv ? pkgs.stdenv, name, buildInputs ? [] 61 + , propagatedBuildInputs ? [], gcc ? stdenv.cc, cTags ? [], extraCmds ? "" 62 , cleanupCmds ? "", shell ? "${pkgs.bashInteractive}/bin/bash --norc"}: 63 64 mkDerivation {
+1 -1
pkgs/os-specific/linux/ati-drivers/default.nix
··· 36 builder = ./builder.sh; 37 38 inherit libXxf86vm xf86vidmodeproto; 39 - gcc = stdenv.gcc.gcc; 40 41 src = fetchurl { 42 url = http://www2.ati.com/drivers/linux/amd-catalyst-omega-14.12-linux-run-installers.zip;
··· 36 builder = ./builder.sh; 37 38 inherit libXxf86vm xf86vidmodeproto; 39 + gcc = stdenv.cc.gcc; 40 41 src = fetchurl { 42 url = http://www2.ati.com/drivers/linux/amd-catalyst-omega-14.12-linux-run-installers.zip;
+1 -1
pkgs/os-specific/linux/cpufrequtils/default.nix
··· 21 -i Makefile 22 ''; 23 24 - buildInputs = [ stdenv.gcc.libc.kernelHeaders libtool gettext ]; 25 26 meta = { 27 description = "Tools to display or change the CPU governor settings";
··· 21 -i Makefile 22 ''; 23 24 + buildInputs = [ stdenv.cc.libc.kernelHeaders libtool gettext ]; 25 26 meta = { 27 description = "Tools to display or change the CPU governor settings";
+1 -1
pkgs/os-specific/linux/nvidia-x11/builder-legacy173.sh
··· 81 82 for i in nvidia-settings nvidia-xconfig; do 83 cp usr/bin/$i $out/bin/$i 84 - patchelf --interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" \ 85 --set-rpath $out/lib:$programPath:$glPath $out/bin/$i 86 done 87
··· 81 82 for i in nvidia-settings nvidia-xconfig; do 83 cp usr/bin/$i $out/bin/$i 84 + patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ 85 --set-rpath $out/lib:$programPath:$glPath $out/bin/$i 86 done 87
+1 -1
pkgs/os-specific/linux/nvidia-x11/builder-legacy304.sh
··· 72 73 for i in nvidia-settings nvidia-xconfig; do 74 cp $i $out/bin/$i 75 - patchelf --interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" \ 76 --set-rpath $out/lib:$programPath:$glPath $out/bin/$i 77 done 78
··· 72 73 for i in nvidia-settings nvidia-xconfig; do 74 cp $i $out/bin/$i 75 + patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ 76 --set-rpath $out/lib:$programPath:$glPath $out/bin/$i 77 done 78
+1 -1
pkgs/os-specific/linux/nvidia-x11/builder-legacy340.sh
··· 51 52 for i in nvidia-settings nvidia-smi; do 53 cp $i $out/bin/$i 54 - patchelf --interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" \ 55 --set-rpath $out/lib:$programPath:$glPath $out/bin/$i 56 done 57
··· 51 52 for i in nvidia-settings nvidia-smi; do 53 cp $i $out/bin/$i 54 + patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ 55 --set-rpath $out/lib:$programPath:$glPath $out/bin/$i 56 done 57
+1 -1
pkgs/os-specific/linux/nvidia-x11/legacy173.nix
··· 32 33 glPath = stdenv.lib.makeLibraryPath [xlibs.libXext xlibs.libX11 xlibs.libXrandr]; 34 35 - cudaPath = stdenv.lib.makeLibraryPath [zlib stdenv.gcc.gcc]; 36 37 programPath = stdenv.lib.makeLibraryPath [ gtk atk pango glib gdk_pixbuf xlibs.libXv ]; 38
··· 32 33 glPath = stdenv.lib.makeLibraryPath [xlibs.libXext xlibs.libX11 xlibs.libXrandr]; 34 35 + cudaPath = stdenv.lib.makeLibraryPath [zlib stdenv.cc.gcc]; 36 37 programPath = stdenv.lib.makeLibraryPath [ gtk atk pango glib gdk_pixbuf xlibs.libXv ]; 38
+1 -1
pkgs/os-specific/linux/nvidia-x11/legacy304.nix
··· 36 37 glPath = stdenv.lib.makeLibraryPath [xlibs.libXext xlibs.libX11 xlibs.libXrandr]; 38 39 - cudaPath = stdenv.lib.makeLibraryPath [zlib stdenv.gcc.gcc]; 40 41 programPath = optionalString (!libsOnly) (stdenv.lib.makeLibraryPath 42 [ gtk atk pango glib gdk_pixbuf xlibs.libXv ] );
··· 36 37 glPath = stdenv.lib.makeLibraryPath [xlibs.libXext xlibs.libX11 xlibs.libXrandr]; 38 39 + cudaPath = stdenv.lib.makeLibraryPath [zlib stdenv.cc.gcc]; 40 41 programPath = optionalString (!libsOnly) (stdenv.lib.makeLibraryPath 42 [ gtk atk pango glib gdk_pixbuf xlibs.libXv ] );
+2 -2
pkgs/os-specific/linux/nvidia-x11/legacy340.nix
··· 45 dontStrip = true; 46 47 glPath = makeLibraryPath [xlibs.libXext xlibs.libX11 xlibs.libXrandr]; 48 - cudaPath = makeLibraryPath [zlib stdenv.gcc.gcc]; 49 openclPath = makeLibraryPath [zlib]; 50 - allLibPath = makeLibraryPath [xlibs.libXext xlibs.libX11 xlibs.libXrandr zlib stdenv.gcc.gcc]; 51 52 programPath = optionalString (!libsOnly) (makeLibraryPath 53 [ gtk atk pango glib gdk_pixbuf xlibs.libXv ] );
··· 45 dontStrip = true; 46 47 glPath = makeLibraryPath [xlibs.libXext xlibs.libX11 xlibs.libXrandr]; 48 + cudaPath = makeLibraryPath [zlib stdenv.cc.gcc]; 49 openclPath = makeLibraryPath [zlib]; 50 + allLibPath = makeLibraryPath [xlibs.libXext xlibs.libX11 xlibs.libXrandr zlib stdenv.cc.gcc]; 51 52 programPath = optionalString (!libsOnly) (makeLibraryPath 53 [ gtk atk pango glib gdk_pixbuf xlibs.libXv ] );
+1 -1
pkgs/os-specific/linux/opengl/xorg-sys/default.nix
··· 11 stdenv.mkDerivation { 12 name = "xorg-sys-opengl-3"; 13 builder = ./builder.sh; 14 - neededLibs = [xlibs.libXxf86vm xlibs.libXext expat libdrm stdenv.gcc.gcc]; 15 } 16
··· 11 stdenv.mkDerivation { 12 name = "xorg-sys-opengl-3"; 13 builder = ./builder.sh; 14 + neededLibs = [xlibs.libXxf86vm xlibs.libXext expat libdrm stdenv.cc.gcc]; 15 } 16
+1 -1
pkgs/os-specific/linux/prl-tools/default.nix
··· 120 121 for i in $out/bin/* $out/sbin/*; do 122 patchelf \ 123 - --interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" \ 124 --set-rpath "$out/lib:$libPath" \ 125 $i 126 done
··· 120 121 for i in $out/bin/* $out/sbin/*; do 122 patchelf \ 123 + --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ 124 --set-rpath "$out/lib:$libPath" \ 125 $i 126 done
+1 -1
pkgs/os-specific/linux/systemd/default.nix
··· 86 87 # This is needed because systemd uses the gold linker, which doesn't 88 # yet have the wrapper script to add rpath flags automatically. 89 - NIX_LDFLAGS = "-rpath ${pam}/lib -rpath ${libcap}/lib -rpath ${acl}/lib -rpath ${stdenv.gcc.gcc}/lib"; 90 91 PYTHON_BINARY = "${coreutils}/bin/env python"; # don't want a build time dependency on Python 92
··· 86 87 # This is needed because systemd uses the gold linker, which doesn't 88 # yet have the wrapper script to add rpath flags automatically. 89 + NIX_LDFLAGS = "-rpath ${pam}/lib -rpath ${libcap}/lib -rpath ${acl}/lib -rpath ${stdenv.cc.gcc}/lib"; 90 91 PYTHON_BINARY = "${coreutils}/bin/env python"; # don't want a build time dependency on Python 92
+1 -1
pkgs/servers/http/openresty/default.nix
··· 51 52 preConfigure = '' 53 export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${libxml2}/include/libxml2 $additionalFlags" 54 - export PATH="$PATH:${stdenv.gcc.libc}/sbin" 55 patchShebangs . 56 ''; 57
··· 51 52 preConfigure = '' 53 export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${libxml2}/include/libxml2 $additionalFlags" 54 + export PATH="$PATH:${stdenv.cc.libc}/sbin" 55 patchShebangs . 56 ''; 57
+2 -2
pkgs/servers/monitoring/zabbix/2.0.nix
··· 17 '' 18 substituteInPlace ./configure \ 19 --replace " -static" "" \ 20 - ${stdenv.lib.optionalString (stdenv.gcc.libc != null) '' 21 - --replace /usr/include/iconv.h ${stdenv.gcc.libc}/include/iconv.h 22 ''} 23 ''; 24
··· 17 '' 18 substituteInPlace ./configure \ 19 --replace " -static" "" \ 20 + ${stdenv.lib.optionalString (stdenv.cc.libc != null) '' 21 + --replace /usr/include/iconv.h ${stdenv.cc.libc}/include/iconv.h 22 ''} 23 ''; 24
+2 -2
pkgs/servers/monitoring/zabbix/2.2.nix
··· 22 '' 23 substituteInPlace ./configure \ 24 --replace " -static" "" \ 25 - ${stdenv.lib.optionalString (stdenv.gcc.libc != null) '' 26 - --replace /usr/include/iconv.h ${stdenv.gcc.libc}/include/iconv.h 27 ''} 28 ''; 29
··· 22 '' 23 substituteInPlace ./configure \ 24 --replace " -static" "" \ 25 + ${stdenv.lib.optionalString (stdenv.cc.libc != null) '' 26 + --replace /usr/include/iconv.h ${stdenv.cc.libc}/include/iconv.h 27 ''} 28 ''; 29
+2 -2
pkgs/servers/monitoring/zabbix/default.nix
··· 13 '' 14 substituteInPlace ./configure \ 15 --replace " -static" "" \ 16 - ${stdenv.lib.optionalString (stdenv.gcc.libc != null) '' 17 - --replace /usr/include/iconv.h ${stdenv.gcc.libc}/include/iconv.h 18 ''} 19 ''; 20
··· 13 '' 14 substituteInPlace ./configure \ 15 --replace " -static" "" \ 16 + ${stdenv.lib.optionalString (stdenv.cc.libc != null) '' 17 + --replace /usr/include/iconv.h ${stdenv.cc.libc}/include/iconv.h 18 ''} 19 ''; 20
+2 -2
pkgs/servers/nosql/influxdb/default.nix
··· 18 19 installPhase = '' 20 install -D influxdb $out/bin/influxdb 21 - patchelf --set-interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" $out/bin/influxdb 22 wrapProgram "$out/bin/influxdb" \ 23 - --prefix LD_LIBRARY_PATH : "${stdenv.gcc.gcc}/lib:${stdenv.gcc.gcc}/lib64:${zlib}/lib:${bzip2}/lib" 24 25 mkdir -p $out/share/influxdb 26 cp -R admin scripts config.toml $out/share/influxdb
··· 18 19 installPhase = '' 20 install -D influxdb $out/bin/influxdb 21 + patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" $out/bin/influxdb 22 wrapProgram "$out/bin/influxdb" \ 23 + --prefix LD_LIBRARY_PATH : "${stdenv.cc.gcc}/lib:${stdenv.cc.gcc}/lib64:${zlib}/lib:${bzip2}/lib" 24 25 mkdir -p $out/share/influxdb 26 cp -R admin scripts config.toml $out/share/influxdb
+2 -2
pkgs/servers/restund/default.nix
··· 15 ''PREFIX=$(out)'' 16 "USE_MYSQL=1" 17 ] 18 - ++ stdenv.lib.optional (stdenv.gcc.gcc != null) "SYSROOT_ALT=${stdenv.gcc.gcc}" 19 - ++ stdenv.lib.optional (stdenv.gcc.libc != null) "SYSROOT=${stdenv.gcc.libc}" 20 ; 21 NIX_LDFLAGS='' -L${mysql}/lib/mysql ''; 22 meta = {
··· 15 ''PREFIX=$(out)'' 16 "USE_MYSQL=1" 17 ] 18 + ++ stdenv.lib.optional (stdenv.cc.gcc != null) "SYSROOT_ALT=${stdenv.cc.gcc}" 19 + ++ stdenv.lib.optional (stdenv.cc.libc != null) "SYSROOT=${stdenv.cc.libc}" 20 ; 21 NIX_LDFLAGS='' -L${mysql}/lib/mysql ''; 22 meta = {
+1 -1
pkgs/servers/samba/default.nix
··· 52 "--localstatedir=/var" 53 ] 54 ++ (stdenv.lib.optional winbind "--with-winbind") 55 - ++ (stdenv.lib.optional (stdenv.gcc.libc != null) "--with-libiconv=${stdenv.gcc.libc}"); 56 57 # Need to use a DESTDIR because `make install' tries to write in /var and /etc. 58 installFlags = "DESTDIR=$(TMPDIR)/inst";
··· 52 "--localstatedir=/var" 53 ] 54 ++ (stdenv.lib.optional winbind "--with-winbind") 55 + ++ (stdenv.lib.optional (stdenv.cc.libc != null) "--with-libiconv=${stdenv.cc.libc}"); 56 57 # Need to use a DESTDIR because `make install' tries to write in /var and /etc. 58 installFlags = "DESTDIR=$(TMPDIR)/inst";
+1 -1
pkgs/servers/sql/oracle-xe/default.nix
··· 54 \( -name '*.sh' \ 55 -o -path "$basedir/bin/*" \ 56 \) -print -exec "${patchelf}/bin/patchelf" \ 57 - --interpreter "$(cat "$NIX_GCC/nix-support/dynamic-linker")" \ 58 --set-rpath "${libs}:$out/libexec/oracle/lib" \ 59 --force-rpath '{}' \; 60 '';
··· 54 \( -name '*.sh' \ 55 -o -path "$basedir/bin/*" \ 56 \) -print -exec "${patchelf}/bin/patchelf" \ 57 + --interpreter "$(cat "$NIX_CC/nix-support/dynamic-linker")" \ 58 --set-rpath "${libs}:$out/libexec/oracle/lib" \ 59 --force-rpath '{}' \; 60 '';
+1 -1
pkgs/servers/sql/virtuoso/6.x.nix
··· 10 11 buildInputs = [ libxml2 openssl readline gawk ]; 12 13 - CPP = "${stdenv.gcc}/bin/gcc -E"; 14 15 configureFlags = " 16 --enable-shared --disable-all-vads --with-readline=${readline}
··· 10 11 buildInputs = [ libxml2 openssl readline gawk ]; 12 13 + CPP = "${stdenv.cc}/bin/gcc -E"; 14 15 configureFlags = " 16 --enable-shared --disable-all-vads --with-readline=${readline}
+1 -1
pkgs/servers/sql/virtuoso/7.x.nix
··· 10 11 buildInputs = [ libxml2 openssl readline gawk ]; 12 13 - CPP = "${stdenv.gcc}/bin/gcc -E"; 14 15 configureFlags = " 16 --enable-shared --disable-all-vads --with-readline=${readline}
··· 10 11 buildInputs = [ libxml2 openssl readline gawk ]; 12 13 + CPP = "${stdenv.cc}/bin/gcc -E"; 14 15 configureFlags = " 16 --enable-shared --disable-all-vads --with-readline=${readline}
+1 -6
pkgs/stdenv/adapters.nix
··· 8 9 10 # Override the compiler in stdenv for specific packages. 11 - overrideGCC = stdenv: gcc: stdenv.override { allowedRequisites = null; inherit gcc; }; 12 13 14 # Add some arbitrary packages to buildInputs for specific packages. ··· 235 }); 236 }; 237 238 - dropCxx = drv: drv.override { 239 - stdenv = if pkgs.stdenv.isDarwin 240 - then pkgs.allStdenvs.stdenvDarwinNaked 241 - else pkgs.stdenv; 242 - }; 243 }
··· 8 9 10 # Override the compiler in stdenv for specific packages. 11 + overrideGCC = stdenv: gcc: stdenv.override { allowedRequisites = null; cc = gcc; }; 12 13 14 # Add some arbitrary packages to buildInputs for specific packages. ··· 235 }); 236 }; 237 238 }
+3 -3
pkgs/stdenv/generic/default.nix
··· 1 let lib = import ../../../lib; in lib.makeOverridable ( 2 3 - { system, name ? "stdenv", preHook ? "", initialPath, gcc, shell 4 , allowedRequisites ? null, extraAttrs ? {}, overrides ? (pkgs: {}), config 5 6 , # The `fetchurl' to use for downloading curl and its dependencies ··· 48 ../../build-support/setup-hooks/patch-shebangs.sh 49 ../../build-support/setup-hooks/move-sbin.sh 50 ../../build-support/setup-hooks/move-lib64.sh 51 - gcc 52 ]; 53 54 # Add a utility function to produce derivations that use this ··· 198 199 inherit overrides; 200 201 - inherit gcc; 202 } 203 204 # Propagate any extra attributes. For instance, we use this to
··· 1 let lib = import ../../../lib; in lib.makeOverridable ( 2 3 + { system, name ? "stdenv", preHook ? "", initialPath, cc, shell 4 , allowedRequisites ? null, extraAttrs ? {}, overrides ? (pkgs: {}), config 5 6 , # The `fetchurl' to use for downloading curl and its dependencies ··· 48 ../../build-support/setup-hooks/patch-shebangs.sh 49 ../../build-support/setup-hooks/move-sbin.sh 50 ../../build-support/setup-hooks/move-lib64.sh 51 + cc 52 ]; 53 54 # Add a utility function to produce derivations that use this ··· 198 199 inherit overrides; 200 201 + inherit cc; 202 } 203 204 # Propagate any extra attributes. For instance, we use this to
+7 -7
pkgs/stdenv/linux/default.nix
··· 83 curl = bootstrapTools; 84 }; 85 86 - gcc = if isNull gccPlain 87 - then "/no-such-path" 88 - else lib.makeOverridable (import ../../build-support/gcc-wrapper) { 89 nativeTools = false; 90 nativeLibc = false; 91 gcc = gccPlain; ··· 232 gcc = lib.makeOverridable (import ../../build-support/gcc-wrapper) { 233 nativeTools = false; 234 nativeLibc = false; 235 - gcc = stage4.stdenv.gcc.gcc; 236 libc = stage4.pkgs.glibc; 237 inherit (stage4.pkgs) binutils coreutils; 238 name = ""; ··· 267 268 extraBuildInputs = [ stage4.pkgs.patchelf stage4.pkgs.paxctl ]; 269 270 - gcc = stage4.pkgs.gcc; 271 272 - shell = gcc.shell; 273 274 inherit (stage4.stdenv) fetchurlBoot; 275 ··· 286 ]; 287 288 overrides = pkgs: { 289 - inherit gcc; 290 inherit (stage4.pkgs) 291 gzip bzip2 xz bash binutils coreutils diffutils findutils gawk 292 glibc gnumake gnused gnutar gnugrep gnupatch patchelf
··· 83 curl = bootstrapTools; 84 }; 85 86 + cc = if isNull gccPlain 87 + then "/no-such-path" 88 + else lib.makeOverridable (import ../../build-support/gcc-wrapper) { 89 nativeTools = false; 90 nativeLibc = false; 91 gcc = gccPlain; ··· 232 gcc = lib.makeOverridable (import ../../build-support/gcc-wrapper) { 233 nativeTools = false; 234 nativeLibc = false; 235 + gcc = stage4.stdenv.cc.gcc; 236 libc = stage4.pkgs.glibc; 237 inherit (stage4.pkgs) binutils coreutils; 238 name = ""; ··· 267 268 extraBuildInputs = [ stage4.pkgs.patchelf stage4.pkgs.paxctl ]; 269 270 + cc = stage4.pkgs.gcc; 271 272 + shell = cc.shell; 273 274 inherit (stage4.stdenv) fetchurlBoot; 275 ··· 286 ]; 287 288 overrides = pkgs: { 289 + inherit cc; 290 inherit (stage4.pkgs) 291 gzip bzip2 xz bash binutils coreutils diffutils findutils gawk 292 glibc gnumake gnused gnutar gnugrep gnupatch patchelf
+1 -1
pkgs/tools/admin/tightvnc/default.nix
··· 10 11 # for the builder script 12 inherit xauth fontDirectories perl; 13 - gcc = stdenv.gcc.gcc; 14 15 buildInputs = [x11 zlib libjpeg imake gccmakedep libXmu libXaw libXpm libXp xauth]; 16 builder = ./builder.sh;
··· 10 11 # for the builder script 12 inherit xauth fontDirectories perl; 13 + gcc = stdenv.cc.gcc; 14 15 buildInputs = [x11 zlib libjpeg imake gccmakedep libXmu libXaw libXpm libXp xauth]; 16 builder = ./builder.sh;
+1 -1
pkgs/tools/archivers/sharutils/default.nix
··· 12 '' 13 # Fix for building on Glibc 2.16. Won't be needed once the 14 # gnulib in sharutils is updated. 15 - sed -i ${stdenv.lib.optionalString (stdenv.isBSD && stdenv.gcc.nativeTools) "''"} '/gets is a security hole/d' lib/stdio.in.h 16 ''; 17 18 # GNU Gettext is needed on non-GNU platforms.
··· 12 '' 13 # Fix for building on Glibc 2.16. Won't be needed once the 14 # gnulib in sharutils is updated. 15 + sed -i ${stdenv.lib.optionalString (stdenv.isBSD && stdenv.cc.nativeTools) "''"} '/gets is a security hole/d' lib/stdio.in.h 16 ''; 17 18 # GNU Gettext is needed on non-GNU platforms.
+4
pkgs/tools/archivers/unrar/default.nix
··· 11 sha256 = "13ida8vcamiagl40d9yfjma9k6givxczhx278f1p7bv9wgb8gfmc"; 12 }; 13 14 installPhase = '' 15 installBin unrar 16
··· 11 sha256 = "13ida8vcamiagl40d9yfjma9k6givxczhx278f1p7bv9wgb8gfmc"; 12 }; 13 14 + preBuild = '' 15 + export buildFlags="CXX=$CXX" 16 + ''; 17 + 18 installPhase = '' 19 installBin unrar 20
+3 -3
pkgs/tools/filesystems/yandex-disk/default.nix
··· 5 let 6 p = if stdenv.is64bit then { 7 arch = "x86_64"; 8 - gcclib = "${stdenv.gcc.gcc}/lib64"; 9 sha256 = "09kw7f0qsvx3vx1c1zb117yf3yk7kkz66agspz5xx9b0zh6i82jw"; 10 } 11 else { 12 arch = "i386"; 13 - gcclib = "${stdenv.gcc.gcc}/lib"; 14 sha256 = "0f2230c91120f05159281b39c620ab6bad6559ce8a17a0874d0a82350ebba426"; 15 }; 16 in ··· 41 $out/etc/bash_completion.d/yandex-disk-completion.bash 42 43 ${patchelf}/bin/patchelf \ 44 - --set-interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" \ 45 --set-rpath "${zlib}/lib:${p.gcclib}" \ 46 $out/bin/yandex-disk 47 '';
··· 5 let 6 p = if stdenv.is64bit then { 7 arch = "x86_64"; 8 + gcclib = "${stdenv.cc.gcc}/lib64"; 9 sha256 = "09kw7f0qsvx3vx1c1zb117yf3yk7kkz66agspz5xx9b0zh6i82jw"; 10 } 11 else { 12 arch = "i386"; 13 + gcclib = "${stdenv.cc.gcc}/lib"; 14 sha256 = "0f2230c91120f05159281b39c620ab6bad6559ce8a17a0874d0a82350ebba426"; 15 }; 16 in ··· 41 $out/etc/bash_completion.d/yandex-disk-completion.bash 42 43 ${patchelf}/bin/patchelf \ 44 + --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ 45 --set-rpath "${zlib}/lib:${p.gcclib}" \ 46 $out/bin/yandex-disk 47 '';
+1 -1
pkgs/tools/graphics/cuneiform/default.nix
··· 31 needLib64 = a.stdenv.system == "x86_64-linux"; 32 33 postInstall = a.fullDepEntry('' 34 - patchelf --set-rpath $out/lib${if needLib64 then "64" else ""}${if a.stdenv.gcc.gcc != null then ":${a.stdenv.gcc.gcc}/lib" else ""}${if a.stdenv.gcc.gcc != null && needLib64 then ":${a.stdenv.gcc.gcc}/lib64" else ""}:${a.imagemagick}/lib $out/bin/cuneiform 35 '') ["minInit" "addInputs" "doMakeInstall"]; 36 37 name = "cuneiform-" + version;
··· 31 needLib64 = a.stdenv.system == "x86_64-linux"; 32 33 postInstall = a.fullDepEntry('' 34 + patchelf --set-rpath $out/lib${if needLib64 then "64" else ""}${if a.stdenv.cc.gcc != null then ":${a.stdenv.cc.gcc}/lib" else ""}${if a.stdenv.cc.gcc != null && needLib64 then ":${a.stdenv.cc.gcc}/lib64" else ""}:${a.imagemagick}/lib $out/bin/cuneiform 35 '') ["minInit" "addInputs" "doMakeInstall"]; 36 37 name = "cuneiform-" + version;
+2 -2
pkgs/tools/misc/coreutils/default.nix
··· 27 buildInputs = [ gmp ] 28 ++ optional aclSupport acl.crossDrv 29 ++ optionals selinuxSupport [ libselinux.crossDrv libsepol.crossDrv ] 30 - ++ optional (stdenv.gccCross.libc ? libiconv) 31 - stdenv.gccCross.libc.libiconv.crossDrv; 32 33 buildPhase = '' 34 make || (
··· 27 buildInputs = [ gmp ] 28 ++ optional aclSupport acl.crossDrv 29 ++ optionals selinuxSupport [ libselinux.crossDrv libsepol.crossDrv ] 30 + ++ optional (stdenv.ccCross.libc ? libiconv) 31 + stdenv.ccCross.libc.libiconv.crossDrv; 32 33 buildPhase = '' 34 make || (
+1 -1
pkgs/tools/misc/figlet/default.nix
··· 13 14 preConfigure = '' 15 mkdir -p $out/{man/man6,bin} 16 - makeFlags="DESTDIR=$out/bin MANDIR=$out/man/man6 DEFAULTFONTDIR=$out/share/figlet" 17 ''; 18 19 meta = {
··· 13 14 preConfigure = '' 15 mkdir -p $out/{man/man6,bin} 16 + makeFlags="DESTDIR=$out/bin MANDIR=$out/man/man6 DEFAULTFONTDIR=$out/share/figlet CC=cc LD=cc" 17 ''; 18 19 meta = {
+2 -2
pkgs/tools/misc/megacli/default.nix
··· 15 buildInputs = [rpmextract ncurses unzip makeWrapper]; 16 libPath = 17 stdenv.lib.makeLibraryPath 18 - [ stdenv.gcc.gcc stdenv.gcc.libc ncurses ]; 19 20 buildCommand = '' 21 mkdir -p $out/bin 22 cd $out 23 unzip ${src} 24 rpmextract linux/MegaCli-8.07.07-1.noarch.rpm 25 - ${patchelf}/bin/patchelf --interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" --set-rpath ${libPath}:$out/opt/lsi/3rdpartylibs/x86_64:$out/opt/lsi/3rdpartylibs:${stdenv.gcc.gcc}/lib64:${stdenv.gcc.gcc}/lib opt/MegaRAID/MegaCli/MegaCli64 26 wrapProgram $out/opt/MegaRAID/MegaCli/MegaCli64 --set LD_LIBRARY_PATH $out/opt/lsi/3rdpartylibs/x86_64 27 ln -s $out/opt/MegaRAID/MegaCli/MegaCli64 $out/bin/MegaCli64 28 eval fixupPhase
··· 15 buildInputs = [rpmextract ncurses unzip makeWrapper]; 16 libPath = 17 stdenv.lib.makeLibraryPath 18 + [ stdenv.cc.gcc stdenv.cc.libc ncurses ]; 19 20 buildCommand = '' 21 mkdir -p $out/bin 22 cd $out 23 unzip ${src} 24 rpmextract linux/MegaCli-8.07.07-1.noarch.rpm 25 + ${patchelf}/bin/patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" --set-rpath ${libPath}:$out/opt/lsi/3rdpartylibs/x86_64:$out/opt/lsi/3rdpartylibs:${stdenv.cc.gcc}/lib64:${stdenv.cc.gcc}/lib opt/MegaRAID/MegaCli/MegaCli64 26 wrapProgram $out/opt/MegaRAID/MegaCli/MegaCli64 --set LD_LIBRARY_PATH $out/opt/lsi/3rdpartylibs/x86_64 27 ln -s $out/opt/MegaRAID/MegaCli/MegaCli64 $out/bin/MegaCli64 28 eval fixupPhase
+2 -2
pkgs/tools/networking/atftp/default.nix
··· 1 { lib, stdenv, fetchurl, readline, tcp_wrappers, pcre, makeWrapper }: 2 assert stdenv.isLinux; 3 - assert stdenv.gcc.gcc != null; 4 let 5 version = "0.7"; 6 debianPatch = fetchurl { ··· 18 buildInputs = [ readline tcp_wrappers pcre makeWrapper ]; 19 patches = [ debianPatch ]; 20 postInstall = '' 21 - wrapProgram $out/sbin/atftpd --prefix LD_LIBRARY_PATH : ${stdenv.gcc.gcc}/lib${if stdenv.system == "x86_64-linux" then "64" else ""} 22 ''; 23 meta = { 24 description = "Advanced tftp tools";
··· 1 { lib, stdenv, fetchurl, readline, tcp_wrappers, pcre, makeWrapper }: 2 assert stdenv.isLinux; 3 + assert stdenv.cc.gcc != null; 4 let 5 version = "0.7"; 6 debianPatch = fetchurl { ··· 18 buildInputs = [ readline tcp_wrappers pcre makeWrapper ]; 19 patches = [ debianPatch ]; 20 postInstall = '' 21 + wrapProgram $out/sbin/atftpd --prefix LD_LIBRARY_PATH : ${stdenv.cc.gcc}/lib${if stdenv.system == "x86_64-linux" then "64" else ""} 22 ''; 23 meta = { 24 description = "Advanced tftp tools";
+2 -2
pkgs/tools/networking/dropbear/default.nix
··· 17 18 # http://www.gnu.org/software/make/manual/html_node/Libraries_002fSearch.html 19 preConfigure = '' 20 - makeFlags=VPATH=`cat $NIX_GCC/nix-support/orig-libc`/lib 21 ''; 22 23 crossAttrs = { 24 # This works for uclibc, at least. 25 preConfigure = '' 26 - makeFlags=VPATH=`cat ${stdenv.gccCross}/nix-support/orig-libc`/lib 27 ''; 28 }; 29
··· 17 18 # http://www.gnu.org/software/make/manual/html_node/Libraries_002fSearch.html 19 preConfigure = '' 20 + makeFlags=VPATH=`cat $NIX_CC/nix-support/orig-libc`/lib 21 ''; 22 23 crossAttrs = { 24 # This works for uclibc, at least. 25 preConfigure = '' 26 + makeFlags=VPATH=`cat ${stdenv.ccCross}/nix-support/orig-libc`/lib 27 ''; 28 }; 29
+1 -1
pkgs/tools/networking/network-manager/default.nix
··· 47 [ ( substituteAll { 48 src = ./nixos-purity.patch; 49 inherit avahi dnsmasq ppp bind; 50 - glibc = stdenv.gcc.libc; 51 }) 52 ./libnl-3.2.25.patch 53 ];
··· 47 [ ( substituteAll { 48 src = ./nixos-purity.patch; 49 inherit avahi dnsmasq ppp bind; 50 + glibc = stdenv.cc.libc; 51 }) 52 ./libnl-3.2.25.patch 53 ];
+1 -1
pkgs/tools/networking/ppp/default.nix
··· 13 [ ( substituteAll { 14 src = ./nix-purity.patch; 15 inherit libpcap; 16 - glibc = stdenv.gcc.libc; 17 }) 18 ./nonpriv.patch 19 ];
··· 13 [ ( substituteAll { 14 src = ./nix-purity.patch; 15 inherit libpcap; 16 + glibc = stdenv.cc.libc; 17 }) 18 ./nonpriv.patch 19 ];
+2 -2
pkgs/tools/package-management/nix-repl/default.nix
··· 20 installPhase = 21 '' 22 mkdir -p $out/bin 23 - g++ -O3 -Wall -std=c++0x \ 24 -o $out/bin/nix-repl nix-repl.cc \ 25 -I${nix}/include/nix \ 26 -lnixformat -lnixutil -lnixstore -lnixexpr -lnixmain -lreadline -lgc \ 27 - -DNIX_VERSION=${(builtins.parseDrvName nix.name).version} 28 ''; 29 30 meta = {
··· 20 installPhase = 21 '' 22 mkdir -p $out/bin 23 + $CXX -O3 -Wall -std=c++0x \ 24 -o $out/bin/nix-repl nix-repl.cc \ 25 -I${nix}/include/nix \ 26 -lnixformat -lnixutil -lnixstore -lnixexpr -lnixmain -lreadline -lgc \ 27 + -DNIX_VERSION=\"${(builtins.parseDrvName nix.name).version}\" 28 ''; 29 30 meta = {
+1 -1
pkgs/tools/security/fprot/default.nix
··· 21 cp f-prot.conf.default $out/opt/f-prot/f-prot.conf 22 ln -s $out/opt/f-prot/fpupdate $out/bin/fpupdate 23 24 - patchelf --interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" $out/opt/f-prot/fpupdate 25 26 mkdir -p $out/share/man/ 27 mkdir -p $out/share/man/man1
··· 21 cp f-prot.conf.default $out/opt/f-prot/f-prot.conf 22 ln -s $out/opt/f-prot/fpupdate $out/bin/fpupdate 23 24 + patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" $out/opt/f-prot/fpupdate 25 26 mkdir -p $out/share/man/ 27 mkdir -p $out/share/man/man1
+2 -2
pkgs/tools/security/hashcat/default.nix
··· 4 5 let 6 bits = if stdenv.system == "x86_64-linux" then "64" else "32"; 7 - libPath = stdenv.lib.makeLibraryPath [ stdenv.gcc.libc ]; 8 9 fixBin = x: '' 10 - patchelf --interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" \ 11 --set-rpath ${libPath} ${x} 12 ''; 13 in
··· 4 5 let 6 bits = if stdenv.system == "x86_64-linux" then "64" else "32"; 7 + libPath = stdenv.lib.makeLibraryPath [ stdenv.cc.libc ]; 8 9 fixBin = x: '' 10 + patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ 11 --set-rpath ${libPath} ${x} 12 ''; 13 in
+3 -3
pkgs/tools/security/tor/torbrowser.nix
··· 9 torEnv = buildEnv { 10 name = "tor-env"; 11 paths = [ 12 - stdenv.gcc.gcc zlib glib alsaLib dbus dbus_glib gtk atk pango freetype 13 fontconfig gdk_pixbuf cairo xlibs.libXrender xlibs.libX11 xlibs.libXext 14 xlibs.libXt 15 ]; ··· 30 }; 31 32 patchPhase = '' 33 - patchelf --set-interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" Browser/firefox 34 - patchelf --set-interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" Browser/TorBrowser/Tor/tor 35 ''; 36 37 doCheck = true;
··· 9 torEnv = buildEnv { 10 name = "tor-env"; 11 paths = [ 12 + stdenv.cc.gcc zlib glib alsaLib dbus dbus_glib gtk atk pango freetype 13 fontconfig gdk_pixbuf cairo xlibs.libXrender xlibs.libX11 xlibs.libXext 14 xlibs.libXt 15 ]; ··· 30 }; 31 32 patchPhase = '' 33 + patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" Browser/firefox 34 + patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" Browser/TorBrowser/Tor/tor 35 ''; 36 37 doCheck = true;
+5 -5
pkgs/top-level/all-packages.nix
··· 3930 win32hello = callPackage ../development/compilers/visual-c++/test { }; 3931 3932 wrapGCCWith = gccWrapper: glibc: baseGCC: gccWrapper { 3933 - nativeTools = stdenv.gcc.nativeTools or false; 3934 - nativeLibc = stdenv.gcc.nativeLibc or false; 3935 - nativePrefix = stdenv.gcc.nativePrefix or ""; 3936 gcc = baseGCC; 3937 libc = glibc; 3938 inherit stdenv binutils coreutils zlib; ··· 5980 libiconvOrEmpty = if libiconvOrNull == null then [] else [libiconv]; 5981 5982 libiconvOrNull = 5983 - if gcc.libc or null != null || stdenv.isGlibc 5984 then null 5985 else libiconv; 5986 ··· 11229 ++ lib.optional (cfg.enableTrezor or false) trezor-bridge 11230 ); 11231 libs = [ gstreamer gst_plugins_base ] ++ lib.optionals (cfg.enableQuakeLive or false) 11232 - (with xlibs; [ stdenv.gcc libX11 libXxf86dga libXxf86vm libXext libXt alsaLib zlib ]); 11233 gst_plugins = [ gst_plugins_base gst_plugins_good gst_plugins_bad gst_plugins_ugly gst_ffmpeg ]; 11234 gtk_modules = [ libcanberra ]; 11235 };
··· 3930 win32hello = callPackage ../development/compilers/visual-c++/test { }; 3931 3932 wrapGCCWith = gccWrapper: glibc: baseGCC: gccWrapper { 3933 + nativeTools = stdenv.cc.nativeTools or false; 3934 + nativeLibc = stdenv.cc.nativeLibc or false; 3935 + nativePrefix = stdenv.cc.nativePrefix or ""; 3936 gcc = baseGCC; 3937 libc = glibc; 3938 inherit stdenv binutils coreutils zlib; ··· 5980 libiconvOrEmpty = if libiconvOrNull == null then [] else [libiconv]; 5981 5982 libiconvOrNull = 5983 + if stdenv.cc.libc or null != null || stdenv.isGlibc 5984 then null 5985 else libiconv; 5986 ··· 11229 ++ lib.optional (cfg.enableTrezor or false) trezor-bridge 11230 ); 11231 libs = [ gstreamer gst_plugins_base ] ++ lib.optionals (cfg.enableQuakeLive or false) 11232 + (with xlibs; [ stdenv.cc libX11 libXxf86dga libXxf86vm libXext libXt alsaLib zlib ]); 11233 gst_plugins = [ gst_plugins_base gst_plugins_good gst_plugins_bad gst_plugins_ugly gst_ffmpeg ]; 11234 gtk_modules = [ libcanberra ]; 11235 };
+8 -8
pkgs/top-level/haskell-packages.nix
··· 368 369 cairo = callPackage ../development/libraries/haskell/cairo { 370 inherit (pkgs) cairo zlib; 371 - libc = pkgs.stdenv.gcc.libc; 372 }; 373 374 carray = callPackage ../development/libraries/haskell/carray {}; ··· 975 glade = callPackage ../development/libraries/haskell/glade { 976 inherit (pkgs.gnome) libglade; 977 gtkC = pkgs.gtk; 978 - libc = pkgs.stdenv.gcc.libc; 979 }; 980 981 GLFW = callPackage ../development/libraries/haskell/GLFW {}; ··· 984 985 glib = callPackage ../development/libraries/haskell/glib { 986 glib = pkgs.glib; 987 - libc = pkgs.stdenv.gcc.libc; 988 }; 989 990 Glob = callPackage ../development/libraries/haskell/Glob {}; ··· 1023 1024 gtk = callPackage ../development/libraries/haskell/gtk { 1025 inherit (pkgs) gtk; 1026 - libc = pkgs.stdenv.gcc.libc; 1027 }; 1028 1029 gtk3 = callPackage ../development/libraries/haskell/gtk3 { ··· 1036 1037 gtksourceview2 = callPackage ../development/libraries/haskell/gtksourceview2 { 1038 inherit (pkgs.gnome) gtksourceview; 1039 - libc = pkgs.stdenv.gcc.libc; 1040 }; 1041 1042 gtkTraymanager = callPackage ../development/libraries/haskell/gtk-traymanager {}; ··· 1902 1903 pango = callPackage ../development/libraries/haskell/pango { 1904 inherit (pkgs) pango; 1905 - libc = pkgs.stdenv.gcc.libc; 1906 }; 1907 1908 parallel_3_2_0_3 = callPackage ../development/libraries/haskell/parallel/3.2.0.3.nix {}; ··· 2009 2010 poppler = callPackage ../development/libraries/haskell/poppler { 2011 popplerGlib = pkgs.poppler.poppler_glib; 2012 - libc = pkgs.stdenv.gcc.libc; 2013 }; 2014 2015 posixPaths = callPackage ../development/libraries/haskell/posix-paths {}; ··· 2475 stripe = callPackage ../development/libraries/haskell/stripe {}; 2476 2477 svgcairo = callPackage ../development/libraries/haskell/svgcairo { 2478 - libc = pkgs.stdenv.gcc.libc; 2479 }; 2480 2481 SVGFonts = callPackage ../development/libraries/haskell/SVGFonts {};
··· 368 369 cairo = callPackage ../development/libraries/haskell/cairo { 370 inherit (pkgs) cairo zlib; 371 + libc = pkgs.stdenv.cc.libc; 372 }; 373 374 carray = callPackage ../development/libraries/haskell/carray {}; ··· 975 glade = callPackage ../development/libraries/haskell/glade { 976 inherit (pkgs.gnome) libglade; 977 gtkC = pkgs.gtk; 978 + libc = pkgs.stdenv.cc.libc; 979 }; 980 981 GLFW = callPackage ../development/libraries/haskell/GLFW {}; ··· 984 985 glib = callPackage ../development/libraries/haskell/glib { 986 glib = pkgs.glib; 987 + libc = pkgs.stdenv.cc.libc; 988 }; 989 990 Glob = callPackage ../development/libraries/haskell/Glob {}; ··· 1023 1024 gtk = callPackage ../development/libraries/haskell/gtk { 1025 inherit (pkgs) gtk; 1026 + libc = pkgs.stdenv.cc.libc; 1027 }; 1028 1029 gtk3 = callPackage ../development/libraries/haskell/gtk3 { ··· 1036 1037 gtksourceview2 = callPackage ../development/libraries/haskell/gtksourceview2 { 1038 inherit (pkgs.gnome) gtksourceview; 1039 + libc = pkgs.stdenv.cc.libc; 1040 }; 1041 1042 gtkTraymanager = callPackage ../development/libraries/haskell/gtk-traymanager {}; ··· 1902 1903 pango = callPackage ../development/libraries/haskell/pango { 1904 inherit (pkgs) pango; 1905 + libc = pkgs.stdenv.cc.libc; 1906 }; 1907 1908 parallel_3_2_0_3 = callPackage ../development/libraries/haskell/parallel/3.2.0.3.nix {}; ··· 2009 2010 poppler = callPackage ../development/libraries/haskell/poppler { 2011 popplerGlib = pkgs.poppler.poppler_glib; 2012 + libc = pkgs.stdenv.cc.libc; 2013 }; 2014 2015 posixPaths = callPackage ../development/libraries/haskell/posix-paths {}; ··· 2475 stripe = callPackage ../development/libraries/haskell/stripe {}; 2476 2477 svgcairo = callPackage ../development/libraries/haskell/svgcairo { 2478 + libc = pkgs.stdenv.cc.libc; 2479 }; 2480 2481 SVGFonts = callPackage ../development/libraries/haskell/SVGFonts {};