lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

treewide: stdenv.glibc -> glibc

Artturin 0c4d65b2 a05b5817

+94 -101
+1 -1
doc/stdenv/multiple-output.chapter.md
··· 77 77 78 78 A commonly adopted convention in `nixpkgs` is that executables provided by the package are contained within its first output. This convention allows the dependent packages to reference the executables provided by packages in a uniform manner. For instance, provided with the knowledge that the `perl` package contains a `perl` executable it can be referenced as `${pkgs.perl}/bin/perl` within a Nix derivation that needs to execute a Perl script. 79 79 80 - The `glibc` package is a deliberate single exception to the “binaries first” convention. The `glibc` has `libs` as its first output allowing the libraries provided by `glibc` to be referenced directly (e.g. `${stdenv.glibc}/lib/ld-linux-x86-64.so.2`). The executables provided by `glibc` can be accessed via its `bin` attribute (e.g. `${stdenv.glibc.bin}/bin/ldd`). 80 + The `glibc` package is a deliberate single exception to the “binaries first” convention. The `glibc` has `libs` as its first output allowing the libraries provided by `glibc` to be referenced directly (e.g. `${glibc}/lib/ld-linux-x86-64.so.2`). The executables provided by `glibc` can be accessed via its `bin` attribute (e.g. `${glibc.bin}/bin/ldd`). 81 81 82 82 The reason for why `glibc` deviates from the convention is because referencing a library provided by `glibc` is a very common operation among Nix packages. For instance, third-party executables packaged by Nix are typically patched and relinked with the relevant version of `glibc` libraries from Nix packages (please see the documentation on [patchelf](https://github.com/NixOS/patchelf) for more details). 83 83
+1 -1
maintainers/scripts/patchelf-hints.sh
··· 61 61 uniq; 62 62 ) 63 63 64 - if test "$names" = "glibc"; then names="stdenv.glibc"; fi 64 + if test "$names" = "glibc"; then names="glibc"; fi 65 65 if echo $names | grep -c "gcc" &> /dev/null; then names="stdenv.cc.cc"; fi 66 66 67 67 if test $lib != $libPath; then
+2 -2
pkgs/applications/audio/baudline/default.nix
··· 1 1 { lib, stdenv, fetchurl, libXmu, libXt, libX11, libXext, libXxf86vm, libjack2 2 - , makeWrapper 2 + , makeWrapper, glibc 3 3 }: 4 4 5 5 let ··· 36 36 37 37 cp -r . "$out/libexec/baudline/" 38 38 39 - interpreter="$(echo ${stdenv.glibc.out}/lib/ld-linux*)" 39 + interpreter="$(echo ${glibc.out}/lib/ld-linux*)" 40 40 for prog in "$out"/libexec/baudline/baudline*; do 41 41 patchelf --interpreter "$interpreter" "$prog" 42 42 ln -sr "$prog" "$out/bin/"
+2 -3
pkgs/applications/audio/yoshimi/default.nix
··· 1 1 { lib 2 + , glibc 2 3 , stdenv 3 4 , fetchFromGitHub 4 5 , alsa-lib ··· 19 20 , xorg 20 21 , zlib 21 22 }: 22 - 23 - assert stdenv ? glibc; 24 23 25 24 stdenv.mkDerivation rec { 26 25 pname = "yoshimi"; ··· 60 59 zlib 61 60 ]; 62 61 63 - cmakeFlags = [ "-DFLTK_MATH_LIBRARY=${stdenv.glibc.out}/lib/libm.so" ]; 62 + cmakeFlags = [ "-DFLTK_MATH_LIBRARY=${glibc.out}/lib/libm.so" ]; 64 63 65 64 meta = with lib; { 66 65 description = "High quality software synthesizer based on ZynAddSubFX";
+2 -2
pkgs/applications/editors/eclipse/build-eclipse.nix
··· 1 - { lib, stdenv, makeDesktopItem, freetype, fontconfig, libX11, libXrender 1 + { lib, stdenv, makeDesktopItem, freetype, fontconfig, libX11, libXrender, glibc 2 2 , zlib, jdk, glib, glib-networking, gtk, libXtst, libsecret, gsettings-desktop-schemas, webkitgtk 3 3 , makeWrapper, perl, ... }: 4 4 ··· 28 28 tar xfvz $src -C $out 29 29 30 30 # Patch binaries. 31 - interpreter=$(echo ${stdenv.glibc.out}/lib/ld-linux*.so.2) 31 + interpreter=$(echo ${glibc.out}/lib/ld-linux*.so.2) 32 32 libCairo=$out/eclipse/libcairo-swt.so 33 33 patchelf --set-interpreter $interpreter $out/eclipse/eclipse 34 34 [ -f $libCairo ] && patchelf --set-rpath ${lib.makeLibraryPath [ freetype fontconfig libX11 libXrender zlib ]} $libCairo
-2
pkgs/applications/editors/eclipse/default.nix
··· 6 6 , callPackage 7 7 }: 8 8 9 - assert stdenv ? glibc; 10 - 11 9 # https://download.eclipse.org/eclipse/downloads/ is the main place to 12 10 # find the downloads needed for new versions 13 11 #
+2 -2
pkgs/applications/editors/jetbrains/linux.nix
··· 1 - { stdenv, lib, makeDesktopItem, makeWrapper, patchelf, writeText 1 + { stdenv, lib, makeDesktopItem, makeWrapper, patchelf, writeText, glibc 2 2 , coreutils, gnugrep, which, git, unzip, libsecret, libnotify, e2fsprogs 3 3 , vmopts ? null 4 4 }: ··· 46 46 truncate --size=$size $fname 47 47 } 48 48 49 - interpreter=$(echo ${stdenv.glibc.out}/lib/ld-linux*.so.2) 49 + interpreter=$(echo ${glibc.out}/lib/ld-linux*.so.2) 50 50 if [[ "${stdenv.hostPlatform.system}" == "x86_64-linux" && -e bin/fsnotifier64 ]]; then 51 51 target_size=$(get_file_size bin/fsnotifier64) 52 52 patchelf --set-interpreter "$interpreter" bin/fsnotifier64
+1 -2
pkgs/applications/editors/vscode/extensions/cpptools/missing_elf_deps.sh
··· 11 11 echo "$(nix-build -E "$nixExp" --no-out-link)${suffix}" 12 12 } 13 13 14 - interpreter="$(get_pkg_out "stdenv.glibc" "/lib/ld-linux-x86-64.so.2")" 14 + interpreter="$(get_pkg_out "glibc" "/lib/ld-linux-x86-64.so.2")" 15 15 echo "interpreter='$interpreter'" 16 16 17 17 # For clangformat dep on 'libtinfo.so.5'. ··· 49 49 echo "nixMonoBin='$nixMonoBin'" 50 50 $nixMonoBin/mono --version 51 51 } 52 -
+2 -2
pkgs/applications/graphics/sane/backends/brscan4/default.nix
··· 1 - { stdenv, lib, fetchurl, callPackage, patchelf, makeWrapper, libusb-compat-0_1 }: 1 + { stdenv, lib, fetchurl, callPackage, patchelf, makeWrapper, libusb-compat-0_1, glibc }: 2 2 let 3 3 myPatchElf = file: with lib; '' 4 4 patchelf --set-interpreter \ 5 - ${stdenv.glibc}/lib/ld-linux${optionalString stdenv.is64bit "-x86-64"}.so.2 \ 5 + ${glibc}/lib/ld-linux${optionalString stdenv.is64bit "-x86-64"}.so.2 \ 6 6 ${file} 7 7 ''; 8 8
+2 -2
pkgs/applications/graphics/sane/backends/brscan5/default.nix
··· 1 - { stdenv, lib, fetchurl, callPackage, patchelf, makeWrapper, libusb1, avahi-compat, glib, libredirect, nixosTests }: 1 + { stdenv, lib, fetchurl, callPackage, patchelf, makeWrapper, libusb1, avahi-compat, glib, libredirect, nixosTests, glibc }: 2 2 let 3 3 myPatchElf = file: with lib; '' 4 4 patchelf --set-interpreter \ 5 - ${stdenv.glibc}/lib/ld-linux${optionalString stdenv.is64bit "-x86-64"}.so.2 \ 5 + ${glibc}/lib/ld-linux${optionalString stdenv.is64bit "-x86-64"}.so.2 \ 6 6 ${file} 7 7 ''; 8 8 system = stdenv.hostPlatform.system;
+2 -2
pkgs/applications/networking/spideroak/default.nix
··· 1 - { lib, stdenv, fetchurl, makeWrapper, patchelf 1 + { lib, stdenv, fetchurl, makeWrapper, patchelf, glibc 2 2 , fontconfig, freetype, glib, libICE, libSM 3 3 , libX11, libXext, libXrender, zlib 4 4 }: ··· 37 37 38 38 rm -f $out/opt/SpiderOakONE/lib/libz* 39 39 40 - patchelf --set-interpreter ${stdenv.glibc.out}/lib/ld-linux-x86-64.so.2 \ 40 + patchelf --set-interpreter ${glibc.out}/lib/ld-linux-x86-64.so.2 \ 41 41 "$out/opt/SpiderOakONE/lib/SpiderOakONE" 42 42 43 43 RPATH=$out/opt/SpiderOakONE/lib:${ldpath}
+2 -2
pkgs/applications/science/math/cplex/default.nix
··· 1 - { lib, stdenv, makeWrapper, openjdk, gtk2, xorg, glibcLocales, releasePath ? null }: 1 + { lib, stdenv, makeWrapper, openjdk, gtk2, xorg, glibc, glibcLocales, releasePath ? null }: 2 2 3 3 # To use this package, you need to download your own cplex installer from IBM 4 4 # and override the releasePath attribute to point to the location of the file. ··· 53 53 let 54 54 libraryPath = lib.makeLibraryPath [ stdenv.cc.cc gtk2 xorg.libXtst ]; 55 55 in '' 56 - interpreter=${stdenv.glibc}/lib/ld-linux-x86-64.so.2 56 + interpreter=${glibc}/lib/ld-linux-x86-64.so.2 57 57 58 58 for pgm in $out/opl/bin/x86-64_linux/oplrun $out/opl/bin/x86-64_linux/oplrunjava $out/opl/oplide/oplide; 59 59 do
+3 -3
pkgs/applications/science/math/hmetis/default.nix
··· 1 - { lib, stdenv, fetchurl, ghostscript }: 1 + { lib, stdenv, fetchurl, ghostscript, glibc }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "hmetis"; ··· 16 16 patchPhase = '' 17 17 for binaryfile in $binaryFiles; do 18 18 patchelf \ 19 - --set-interpreter ${stdenv.glibc}/lib/ld-linux.so.2 \ 20 - --set-rpath ${stdenv.glibc}/lib \ 19 + --set-interpreter ${glibc}/lib/ld-linux.so.2 \ 20 + --set-rpath ${glibc}/lib \ 21 21 $binaryfile 22 22 done 23 23 '';
+3 -3
pkgs/applications/virtualization/virtualbox/default.nix
··· 1 1 { config, stdenv, fetchurl, lib, acpica-tools, dev86, pam, libxslt, libxml2, wrapQtAppsHook 2 - , libX11, xorgproto, libXext, libXcursor, libXmu, libIDL, SDL, libcap, libGL 2 + , libX11, xorgproto, libXext, libXcursor, libXmu, libIDL, SDL, libcap, libGL, glibc 3 3 , libpng, glib, lvm2, libXrandr, libXinerama, libopus, qtbase, qtx11extras 4 4 , qttools, qtsvg, qtwayland, pkg-config, which, docbook_xsl, docbook_xml_dtd_43 5 5 , alsa-lib, curl, libvpx, nettools, dbus, substituteAll, gsoap, zlib ··· 62 62 ${optionalString (!headless) '' 63 63 -e 's@TOOLQT5BIN=.*@TOOLQT5BIN="${getDev qtbase}/bin"@' \ 64 64 ''} -i configure 65 - ls kBuild/bin/linux.x86/k* tools/linux.x86/bin/* | xargs -n 1 patchelf --set-interpreter ${stdenv.glibc.out}/lib/ld-linux.so.2 66 - ls kBuild/bin/linux.amd64/k* tools/linux.amd64/bin/* | xargs -n 1 patchelf --set-interpreter ${stdenv.glibc.out}/lib/ld-linux-x86-64.so.2 65 + ls kBuild/bin/linux.x86/k* tools/linux.x86/bin/* | xargs -n 1 patchelf --set-interpreter ${glibc.out}/lib/ld-linux.so.2 66 + ls kBuild/bin/linux.amd64/k* tools/linux.amd64/bin/* | xargs -n 1 patchelf --set-interpreter ${glibc.out}/lib/ld-linux-x86-64.so.2 67 67 68 68 grep 'libpulse\.so\.0' src include -rI --files-with-match | xargs sed -i -e ' 69 69 ${optionalString pulseSupport
+4 -4
pkgs/build-support/vm/default.nix
··· 35 35 mkdir -p $out/lib 36 36 37 37 # Copy what we need from Glibc. 38 - cp -p ${pkgs.stdenv.glibc.out}/lib/ld-linux*.so.? $out/lib 39 - cp -p ${pkgs.stdenv.glibc.out}/lib/libc.so.* $out/lib 40 - cp -p ${pkgs.stdenv.glibc.out}/lib/libm.so.* $out/lib 41 - cp -p ${pkgs.stdenv.glibc.out}/lib/libresolv.so.* $out/lib 38 + cp -p ${pkgs.glibc.out}/lib/ld-linux*.so.? $out/lib 39 + cp -p ${pkgs.glibc.out}/lib/libc.so.* $out/lib 40 + cp -p ${pkgs.glibc.out}/lib/libm.so.* $out/lib 41 + cp -p ${pkgs.glibc.out}/lib/libresolv.so.* $out/lib 42 42 43 43 # Copy BusyBox. 44 44 cp -pd ${pkgs.busybox}/bin/* $out/bin
+2 -4
pkgs/development/compilers/nvidia-cg-toolkit/default.nix
··· 1 - { lib, stdenv, fetchurl }: 2 - 3 - assert stdenv ? glibc; 1 + { lib, stdenv, fetchurl, glibc }: 4 2 5 3 stdenv.mkDerivation rec { 6 4 version = "3.1"; ··· 25 23 installPhase = '' 26 24 for b in cgc cgfxcat cginfo 27 25 do 28 - patchelf --set-interpreter ${stdenv.glibc.out}/lib/ld-linux*.so.? "bin/$b" 26 + patchelf --set-interpreter ${glibc.out}/lib/ld-linux*.so.? "bin/$b" 29 27 done 30 28 # FIXME: cgfxcat and cginfo need more patchelf 31 29 mkdir -p "$out/bin/"
+2 -1
pkgs/development/libraries/live555/default.nix
··· 33 33 sed -i \ 34 34 -e 's/$(INCLUDES) -I. -O2 -DSOCKLEN_T/$(INCLUDES) -I. -O2 -I. -fPIC -DRTSPCLIENT_SYNCHRONOUS_INTERFACE=1 -DSOCKLEN_T/g' \ 35 35 config.linux 36 - '' + lib.optionalString (stdenv ? glibc) '' 36 + '' # condition from icu/base.nix 37 + + lib.optionalString (stdenv.hostPlatform.libc == "glibc" || stdenv.hostPlatform.libc == "musl") '' 37 38 substituteInPlace liveMedia/include/Locale.hh \ 38 39 --replace '<xlocale.h>' '<locale.h>' 39 40 '';
+1 -1
pkgs/development/mobile/androidenv/cmake.nix
··· 3 3 deployAndroidPackage { 4 4 inherit package os; 5 5 nativeBuildInputs = [ autoPatchelfHook ]; 6 - buildInputs = lib.optional (os == "linux") [ pkgs.stdenv.glibc pkgs.stdenv.cc.cc pkgs.ncurses5 ]; 6 + buildInputs = lib.optional (os == "linux") [ pkgs.glibc pkgs.stdenv.cc.cc pkgs.ncurses5 ]; 7 7 patchInstructions = lib.optionalString (os == "linux") '' 8 8 autoPatchelf $packageBaseDir/bin 9 9 '';
+2 -1
pkgs/development/python-modules/monotonic/default.nix
··· 1 1 { lib, stdenv 2 2 , buildPythonPackage 3 3 , fetchPypi 4 + , glibc 4 5 }: 5 6 6 7 buildPythonPackage rec { ··· 16 17 17 18 patchPhase = lib.optionalString stdenv.isLinux '' 18 19 substituteInPlace monotonic.py --replace \ 19 - "ctypes.util.find_library('c')" "'${stdenv.glibc.out}/lib/libc.so.6'" 20 + "ctypes.util.find_library('c')" "'${glibc.out}/lib/libc.so.6'" 20 21 ''; 21 22 22 23 meta = with lib; {
+1 -1
pkgs/development/python-modules/twisted/default.nix
··· 54 54 # twisted.python.runtime.platform.supportsINotify() == False 55 55 postPatch = lib.optionalString stdenv.isLinux '' 56 56 substituteInPlace src/twisted/python/_inotify.py --replace \ 57 - "ctypes.util.find_library(\"c\")" "'${stdenv.glibc.out}/lib/libc.so.6'" 57 + "ctypes.util.find_library(\"c\")" "'${stdenv.cc.libc}/lib/libc.so.6'" 58 58 ''; 59 59 60 60 # Generate Twisted's plug-in cache. Twisted users must do it as well. See
+2 -1
pkgs/development/tools/eclipse-mat/default.nix
··· 1 1 { fetchurl 2 + , glibc 2 3 , fontconfig 3 4 , freetype 4 5 , glib ··· 57 58 mv mat $out 58 59 59 60 # Patch binaries. 60 - interpreter=$(echo ${stdenv.glibc.out}/lib/ld-linux*.so.2) 61 + interpreter=$(echo ${glibc.out}/lib/ld-linux*.so.2) 61 62 libCairo=$out/eclipse/libcairo-swt.so 62 63 patchelf --set-interpreter $interpreter $out/mat/MemoryAnalyzer 63 64 [ -f $libCairo ] && patchelf --set-rpath ${
+2 -2
pkgs/development/tools/iaca/2.1.nix
··· 1 - { lib, stdenv, makeWrapper, requireFile, gcc, unzip }: 1 + { lib, stdenv, makeWrapper, requireFile, gcc, unzip, glibc }: 2 2 with lib; 3 3 4 4 # v2.1: last version with NHM/WSM arch support ··· 19 19 ''; 20 20 preFixup = let libPath = makeLibraryPath [ stdenv.cc.cc.lib gcc ]; in '' 21 21 patchelf \ 22 - --set-interpreter ${stdenv.glibc}/lib/ld-linux-x86-64.so.2 \ 22 + --set-interpreter ${glibc}/lib/ld-linux-x86-64.so.2 \ 23 23 --set-rpath $out/lib:"${libPath}" \ 24 24 $out/bin/iaca 25 25 '';
+2 -2
pkgs/development/tools/iaca/3.0.nix
··· 1 - { lib, stdenv, requireFile, unzip }: 1 + { lib, stdenv, requireFile, unzip, glibc }: 2 2 with lib; 3 3 4 4 stdenv.mkDerivation rec { ··· 13 13 installPhase = '' 14 14 mkdir -p $out/bin 15 15 cp iaca $out/bin 16 - patchelf --set-interpreter ${stdenv.glibc}/lib/ld-linux-x86-64.so.2 $out/bin/iaca 16 + patchelf --set-interpreter ${glibc}/lib/ld-linux-x86-64.so.2 $out/bin/iaca 17 17 ''; 18 18 meta = { 19 19 description = "Intel Architecture Code Analyzer";
-2
pkgs/development/tools/misc/ninka/default.nix
··· 1 1 { lib, stdenv, fetchFromGitHub, perl, perlPackages }: 2 2 3 - assert stdenv ? glibc; 4 - 5 3 perlPackages.buildPerlPackage { 6 4 pname = "ninka"; 7 5 version = "2.0-pre";
+4 -4
pkgs/games/planetaryannihilation/default.nix
··· 1 - { lib, stdenv, config, fetchurl, patchelf, makeWrapper, gtk2, glib, udev, alsa-lib, atk 1 + { lib, stdenv, glibc, config, fetchurl, patchelf, makeWrapper, gtk2, glib, udev, alsa-lib, atk 2 2 , nspr, fontconfig, cairo, pango, nss, freetype, gnome2, gdk-pixbuf, curl, systemd, xorg, requireFile }: 3 3 4 4 stdenv.mkDerivation rec { ··· 23 23 ln -s ${systemd}/lib/libudev.so.1 $out/lib/libudev.so.0 24 24 25 25 patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" "$out/PA" 26 - patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" --set-rpath "${lib.makeLibraryPath [ stdenv.cc.cc.lib xorg.libXdamage xorg.libXfixes gtk2 glib stdenv.glibc.out "$out" xorg.libXext pango udev xorg.libX11 xorg.libXcomposite alsa-lib atk nspr fontconfig cairo pango nss freetype gnome2.GConf gdk-pixbuf xorg.libXrender ]}:{stdenv.cc.cc.lib}/lib64:${stdenv.glibc.out}/lib64" "$out/host/CoherentUI_Host" 26 + patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" --set-rpath "${lib.makeLibraryPath [ stdenv.cc.cc.lib xorg.libXdamage xorg.libXfixes gtk2 glib glibc.out "$out" xorg.libXext pango udev xorg.libX11 xorg.libXcomposite alsa-lib atk nspr fontconfig cairo pango nss freetype gnome2.GConf gdk-pixbuf xorg.libXrender ]}:{stdenv.cc.cc.lib}/lib64:${glibc.out}/lib64" "$out/host/CoherentUI_Host" 27 27 28 - wrapProgram $out/PA --prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath [ stdenv.cc.cc.lib stdenv.glibc.out xorg.libX11 xorg.libXcursor gtk2 glib curl "$out" ]}:${stdenv.cc.cc.lib}/lib64:${stdenv.glibc.out}/lib64" 28 + wrapProgram $out/PA --prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath [ stdenv.cc.cc.lib glibc.out xorg.libX11 xorg.libXcursor gtk2 glib curl "$out" ]}:${stdenv.cc.cc.lib}/lib64:${glibc.out}/lib64" 29 29 30 30 for f in $out/lib/*; do 31 - patchelf --set-rpath "${lib.makeLibraryPath [ stdenv.cc.cc.lib curl xorg.libX11 stdenv.glibc.out xorg.libXcursor "$out" ]}:${stdenv.cc.cc.lib}/lib64:${stdenv.glibc.out}/lib64" $f 31 + patchelf --set-rpath "${lib.makeLibraryPath [ stdenv.cc.cc.lib curl xorg.libX11 glibc.out xorg.libXcursor "$out" ]}:${stdenv.cc.cc.lib}/lib64:${glibc.out}/lib64" $f 32 32 done 33 33 ''; 34 34
+2 -2
pkgs/games/ue4demos/default.nix
··· 1 - { lib, stdenv, fetchurl, unzip, patchelf, xorg, openal }: 1 + { lib, stdenv, fetchurl, unzip, patchelf, xorg, openal, glibc }: 2 2 3 3 let 4 4 urls = file: ··· 24 24 cd $out 25 25 unzip $src 26 26 27 - interpreter=$(echo ${stdenv.glibc.out}/lib/ld-linux*.so.2) 27 + interpreter=$(echo ${glibc.out}/lib/ld-linux*.so.2) 28 28 binary=$(find . -executable -type f) 29 29 patchelf \ 30 30 --set-interpreter $interpreter \
+1 -1
pkgs/misc/cups/drivers/brgenml1lpr/default.nix
··· 30 30 let 31 31 myPatchElf = file: with lib; '' 32 32 patchelf --set-interpreter \ 33 - ${stdenv.glibc}/lib/ld-linux${optionalString stdenv.is64bit "-x86-64"}.so.2 \ 33 + ${glibc}/lib/ld-linux${optionalString stdenv.is64bit "-x86-64"}.so.2 \ 34 34 ${file} 35 35 ''; 36 36 in
+11 -11
pkgs/misc/cups/drivers/canon/default.nix
··· 1 1 { lib 2 2 , stdenv 3 - , stdenv_32bit 4 3 , fetchurl 5 4 , unzip 6 5 , autoconf ··· 24 23 , ghostscript 25 24 , pkgs 26 25 , pkgsi686Linux 26 + , glibc 27 27 , zlib 28 28 }: 29 29 ··· 151 151 ln -sf libufr2filterr.so.1.0.0 libufr2filterr.so 152 152 ln -sf libufr2filterr.so.1.0.0 libufr2filterr.so.1 153 153 154 - patchelf --set-rpath "$(cat ${i686_NIX_GCC}/nix-support/orig-cc)/lib:${libs pkgsi686Linux}:${stdenv_32bit.glibc.out}/lib:${pkgsi686Linux.libxml2.out}/lib:$out/lib32" libcanonufr2r.so.1.0.0 155 - patchelf --set-rpath "$(cat ${i686_NIX_GCC}/nix-support/orig-cc)/lib:${libs pkgsi686Linux}:${stdenv_32bit.glibc.out}/lib" libcaepcmufr2.so.1.0 156 - patchelf --set-rpath "$(cat ${i686_NIX_GCC}/nix-support/orig-cc)/lib:${libs pkgsi686Linux}:${stdenv_32bit.glibc.out}/lib" libColorGearCufr2.so.2.0.0 154 + patchelf --set-rpath "$(cat ${i686_NIX_GCC}/nix-support/orig-cc)/lib:${libs pkgsi686Linux}:${pkgsi686Linux.glibc.out}/lib:${pkgsi686Linux.libxml2.out}/lib:$out/lib32" libcanonufr2r.so.1.0.0 155 + patchelf --set-rpath "$(cat ${i686_NIX_GCC}/nix-support/orig-cc)/lib:${libs pkgsi686Linux}:${pkgsi686Linux.glibc.out}/lib" libcaepcmufr2.so.1.0 156 + patchelf --set-rpath "$(cat ${i686_NIX_GCC}/nix-support/orig-cc)/lib:${libs pkgsi686Linux}:${pkgsi686Linux.glibc.out}/lib" libColorGearCufr2.so.2.0.0 157 157 ) 158 158 159 159 ( ··· 167 167 ln -sf libufr2filterr.so.1.0.0 libufr2filterr.so 168 168 ln -sf libufr2filterr.so.1.0.0 libufr2filterr.so.1 169 169 170 - patchelf --set-rpath "$(cat $NIX_CC/nix-support/orig-cc)/lib:${libs pkgs}:${stdenv.cc.cc.lib}/lib64:${stdenv.glibc.out}/lib64:$out/lib" libcanonufr2r.so.1.0.0 171 - patchelf --set-rpath "$(cat $NIX_CC/nix-support/orig-cc)/lib:${libs pkgs}:${stdenv.cc.cc.lib}/lib64:${stdenv.glibc.out}/lib64" libcaepcmufr2.so.1.0 172 - patchelf --set-rpath "$(cat $NIX_CC/nix-support/orig-cc)/lib:${libs pkgs}:${stdenv.cc.cc.lib}/lib64:${stdenv.glibc.out}/lib64" libColorGearCufr2.so.2.0.0 170 + patchelf --set-rpath "$(cat $NIX_CC/nix-support/orig-cc)/lib:${libs pkgs}:${stdenv.cc.cc.lib}/lib64:${glibc.out}/lib64:$out/lib" libcanonufr2r.so.1.0.0 171 + patchelf --set-rpath "$(cat $NIX_CC/nix-support/orig-cc)/lib:${libs pkgs}:${stdenv.cc.cc.lib}/lib64:${glibc.out}/lib64" libcaepcmufr2.so.1.0 172 + patchelf --set-rpath "$(cat $NIX_CC/nix-support/orig-cc)/lib:${libs pkgs}:${stdenv.cc.cc.lib}/lib64:${glibc.out}/lib64" libColorGearCufr2.so.2.0.0 173 173 ) 174 174 175 175 ( 176 176 cd $out/bin 177 - patchelf --set-interpreter "$(cat ${ld64})" --set-rpath "${lib.makeLibraryPath buildInputs}:${stdenv.cc.cc.lib}/lib64:${stdenv.glibc.out}/lib64" cnsetuputil2 178 - patchelf --set-interpreter "$(cat ${ld64})" --set-rpath "${lib.makeLibraryPath buildInputs}:${stdenv.cc.cc.lib}/lib64:${stdenv.glibc.out}/lib64" cnpdfdrv 179 - patchelf --set-interpreter "$(cat ${ld64})" --set-rpath "${lib.makeLibraryPath buildInputs}:${stdenv.cc.cc.lib}/lib64:${stdenv.glibc.out}/lib64:$out/lib" cnpkbidir 180 - patchelf --set-interpreter "$(cat ${ld64})" --set-rpath "${lib.makeLibraryPath buildInputs}:${stdenv.cc.cc.lib}/lib64:${stdenv.glibc.out}/lib64:$out/lib" cnrsdrvufr2 177 + patchelf --set-interpreter "$(cat ${ld64})" --set-rpath "${lib.makeLibraryPath buildInputs}:${stdenv.cc.cc.lib}/lib64:${glibc.out}/lib64" cnsetuputil2 178 + patchelf --set-interpreter "$(cat ${ld64})" --set-rpath "${lib.makeLibraryPath buildInputs}:${stdenv.cc.cc.lib}/lib64:${glibc.out}/lib64" cnpdfdrv 179 + patchelf --set-interpreter "$(cat ${ld64})" --set-rpath "${lib.makeLibraryPath buildInputs}:${stdenv.cc.cc.lib}/lib64:${glibc.out}/lib64:$out/lib" cnpkbidir 180 + patchelf --set-interpreter "$(cat ${ld64})" --set-rpath "${lib.makeLibraryPath buildInputs}:${stdenv.cc.cc.lib}/lib64:${glibc.out}/lib64:$out/lib" cnrsdrvufr2 181 181 182 182 mv cnsetuputil2 cnsetuputil2.wrapped 183 183 echo "#!${runtimeShell} -e" > cnsetuputil2
+4 -4
pkgs/misc/cups/drivers/hl1110/default.nix
··· 1 - {lib, stdenv, fetchurl, cups, dpkg, gnused, makeWrapper, ghostscript, file, a2ps, coreutils, gawk}: 1 + {lib, stdenv, fetchurl, cups, dpkg, gnused, makeWrapper, ghostscript, file, a2ps, coreutils, gawk, glibc }: 2 2 3 3 let 4 4 version = "3.0.1-1"; ··· 38 38 39 39 sed -i '/GHOST_SCRIPT=/c\GHOST_SCRIPT=gs' $out/opt/brother/Printers/HL1110/lpd/psconvert2 40 40 41 - patchelf --set-interpreter ${stdenv.glibc.out}/lib/ld-linux.so.2 $out/opt/brother/Printers/HL1110/lpd/brprintconflsr3 42 - patchelf --set-interpreter ${stdenv.glibc.out}/lib/ld-linux.so.2 $out/opt/brother/Printers/HL1110/lpd/rawtobr3 43 - patchelf --set-interpreter ${stdenv.glibc.out}/lib/ld-linux.so.2 $out/opt/brother/Printers/HL1110/inf/braddprinter 41 + patchelf --set-interpreter ${glibc.out}/lib/ld-linux.so.2 $out/opt/brother/Printers/HL1110/lpd/brprintconflsr3 42 + patchelf --set-interpreter ${glibc.out}/lib/ld-linux.so.2 $out/opt/brother/Printers/HL1110/lpd/rawtobr3 43 + patchelf --set-interpreter ${glibc.out}/lib/ld-linux.so.2 $out/opt/brother/Printers/HL1110/inf/braddprinter 44 44 45 45 wrapProgram $out/opt/brother/Printers/HL1110/lpd/psconvert2 \ 46 46 --prefix PATH ":" ${ lib.makeBinPath [ gnused coreutils gawk ] }
+3 -3
pkgs/misc/cups/drivers/hl3140cw/default.nix
··· 1 - {lib, stdenv, fetchurl, cups, dpkg, gnused, makeWrapper, ghostscript, file, a2ps, coreutils, gawk}: 1 + {lib, stdenv, fetchurl, cups, dpkg, gnused, makeWrapper, ghostscript, file, a2ps, coreutils, gawk, glibc}: 2 2 3 3 let 4 4 version = "1.1.4-0"; ··· 41 41 42 42 sed -i '/GHOST_SCRIPT=/c\GHOST_SCRIPT=gs' $out/opt/brother/Printers/hl3140cw/lpd/psconvertij2 43 43 44 - patchelf --set-interpreter ${stdenv.glibc.out}/lib/ld-linux.so.2 $out/opt/brother/Printers/hl3140cw/lpd/brhl3140cwfilter 45 - patchelf --set-interpreter ${stdenv.glibc.out}/lib/ld-linux.so.2 $out/usr/bin/brprintconf_hl3140cw 44 + patchelf --set-interpreter ${glibc.out}/lib/ld-linux.so.2 $out/opt/brother/Printers/hl3140cw/lpd/brhl3140cwfilter 45 + patchelf --set-interpreter ${glibc.out}/lib/ld-linux.so.2 $out/usr/bin/brprintconf_hl3140cw 46 46 47 47 wrapProgram $out/opt/brother/Printers/hl3140cw/lpd/psconvertij2 \ 48 48 --prefix PATH ":" ${ lib.makeBinPath [ gnused coreutils gawk ] }
+2 -2
pkgs/misc/cups/drivers/mfcj470dwlpr/default.nix
··· 1 - { lib, stdenv, fetchurl, cups, dpkg, ghostscript, a2ps, coreutils, gnused, gawk, file, makeWrapper }: 1 + { lib, stdenv, fetchurl, cups, dpkg, ghostscript, a2ps, coreutils, gnused, gawk, file, makeWrapper, glibc }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "mfcj470dw-cupswrapper"; ··· 22 22 23 23 sed -i '/GHOST_SCRIPT=/c\GHOST_SCRIPT=gs' $out/opt/brother/Printers/mfcj470dw/lpd/psconvertij2 24 24 25 - patchelf --set-interpreter ${stdenv.glibc.out}/lib/ld-linux.so.2 $out/opt/brother/Printers/mfcj470dw/lpd/brmfcj470dwfilter 25 + patchelf --set-interpreter ${glibc.out}/lib/ld-linux.so.2 $out/opt/brother/Printers/mfcj470dw/lpd/brmfcj470dwfilter 26 26 27 27 mkdir -p $out/lib/cups/filter/ 28 28 ln -s $out/opt/brother/Printers/mfcj470dw/lpd/filtermfcj470dw $out/lib/cups/filter/brother_lpdwrapper_mfcj470dw
+2 -2
pkgs/os-specific/linux/mwprocapture/default.nix
··· 1 - { lib, stdenv, fetchurl, kernel, alsa-lib }: 1 + { lib, stdenv, fetchurl, kernel, alsa-lib, glibc }: 2 2 3 3 with lib; 4 4 ··· 7 7 if stdenv.is64bit then "64" 8 8 else "32"; 9 9 10 - libpath = makeLibraryPath [ stdenv.cc.cc stdenv.glibc alsa-lib ]; 10 + libpath = makeLibraryPath [ stdenv.cc.cc glibc alsa-lib ]; 11 11 12 12 in 13 13 stdenv.mkDerivation rec {
+2 -1
pkgs/os-specific/linux/sgx/ssl/default.nix
··· 1 1 { stdenv 2 + , glibc 2 3 , fetchFromGitHub 3 4 , fetchpatch 4 5 , fetchurl ··· 53 54 nativeBuildInputs = [ 54 55 perl 55 56 sgx-sdk 56 - stdenv.glibc 57 + glibc 57 58 which 58 59 ]; 59 60
+2 -2
pkgs/stdenv/adapters.nix
··· 69 69 })); 70 70 } // lib.optionalAttrs (stdenv0.hostPlatform.libc == "libc") { 71 71 extraBuildInputs = (old.extraBuildInputs or []) ++ [ 72 - stdenv0.glibc.static 72 + pkgs.glibc.static 73 73 ]; 74 74 }); 75 75 ··· 119 119 ++ lib.optional (!stdenv.hostPlatform.isDarwin) makeStaticBinaries 120 120 121 121 # Glibc doesn’t come with static runtimes by default. 122 - # ++ lib.optional (stdenv.hostPlatform.libc == "glibc") ((lib.flip overrideInStdenv) [ self.stdenv.glibc.static ]) 122 + # ++ lib.optional (stdenv.hostPlatform.libc == "glibc") ((lib.flip overrideInStdenv) [ self.glibc.static ]) 123 123 ); 124 124 125 125
+3 -3
pkgs/tools/compression/kzipmix/default.nix
··· 1 - { lib, stdenv, fetchurl }: 1 + { lib, stdenv, fetchurl, glibc }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "kzipmix"; ··· 13 13 mkdir -p $out/bin 14 14 cp amd64/{kzip,zipmix} $out/bin 15 15 16 - patchelf --set-interpreter ${stdenv.glibc.out}/lib/ld-linux.so.2 $out/bin/kzip 17 - patchelf --set-interpreter ${stdenv.glibc.out}/lib/ld-linux.so.2 $out/bin/zipmix 16 + patchelf --set-interpreter ${glibc.out}/lib/ld-linux.so.2 $out/bin/kzip 17 + patchelf --set-interpreter ${glibc.out}/lib/ld-linux.so.2 $out/bin/zipmix 18 18 ''; 19 19 20 20 meta = with lib; {
+2 -1
pkgs/tools/graphics/pngout/default.nix
··· 2 2 , stdenv 3 3 , fetchurl 4 4 , unzip 5 + , glibc 5 6 }: 6 7 7 8 let ··· 36 37 mkdir -p $out/bin 37 38 cp ${platform.folder}/pngout $out/bin 38 39 '' + lib.optionalString stdenv.isLinux '' 39 - patchelf --set-interpreter ${stdenv.glibc.out}/lib/${platform.ld-linux} $out/bin/pngout 40 + patchelf --set-interpreter ${glibc.out}/lib/${platform.ld-linux} $out/bin/pngout 40 41 ''; 41 42 42 43 meta = {
+2 -3
pkgs/tools/inputmethods/m17n-db/default.nix
··· 1 - { lib, stdenv, fetchurl, gettext, gawk, bash }: 1 + { lib, stdenv, fetchurl, gettext, gawk, bash, glibc }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "m17n-db"; ··· 14 14 15 15 strictDeps = true; 16 16 17 - configureFlags = lib.optional (stdenv ? glibc) 18 - "--with-charmaps=${stdenv.glibc.out}/share/i18n/charmaps" 17 + configureFlags = [ "--with-charmaps=${glibc.out}/share/i18n/charmaps" ] 19 18 ; 20 19 21 20 meta = {
+2 -2
pkgs/tools/misc/nbench/default.nix
··· 1 - { lib, stdenv, fetchurl }: 1 + { lib, stdenv, fetchurl, glibc }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "nbench-byte"; ··· 17 17 ''; 18 18 19 19 buildInputs = lib.optionals stdenv.hostPlatform.isGnu [ 20 - stdenv.glibc.static 20 + glibc.static 21 21 ]; 22 22 23 23 makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ];
+2 -3
pkgs/tools/networking/nbd/default.nix
··· 1 - { lib, stdenv, fetchurl, pkg-config, glib, which, bison, nixosTests }: 1 + { lib, stdenv, fetchurl, pkg-config, glib, which, bison, nixosTests, linuxHeaders }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "nbd"; ··· 9 9 sha256 = "sha256-aHcVbSOnsz917uidL1wskcVCr8PNy2Nt6lqIU5pY0Qw="; 10 10 }; 11 11 12 - buildInputs = [ glib ] 13 - ++ lib.optional (stdenv ? glibc) stdenv.glibc.linuxHeaders; 12 + buildInputs = [ glib linuxHeaders ]; 14 13 15 14 nativeBuildInputs = [ pkg-config which bison ]; 16 15
+3 -3
pkgs/tools/networking/tgt/default.nix
··· 1 - { stdenv, lib, fetchFromGitHub, libxslt, libaio, systemd, perl 1 + { stdenv, lib, fetchFromGitHub, libxslt, libaio, systemd, perl, glibc 2 2 , docbook_xsl, coreutils, lsof, rdma-core, makeWrapper, sg3_utils, util-linux 3 3 }: 4 4 ··· 29 29 preConfigure = '' 30 30 sed -i 's|/usr/bin/||' doc/Makefile 31 31 sed -i 's|/usr/include/libaio.h|${libaio}/include/libaio.h|' usr/Makefile 32 - sed -i 's|/usr/include/sys/|${stdenv.glibc.dev}/include/sys/|' usr/Makefile 33 - sed -i 's|/usr/include/linux/|${stdenv.glibc.dev}/include/linux/|' usr/Makefile 32 + sed -i 's|/usr/include/sys/|${glibc.dev}/include/sys/|' usr/Makefile 33 + sed -i 's|/usr/include/linux/|${glibc.dev}/include/linux/|' usr/Makefile 34 34 ''; 35 35 36 36 postInstall = ''
+2 -4
pkgs/tools/package-management/checkinstall/default.nix
··· 1 - {lib, stdenv, fetchurl, gettext}: 2 - 3 - assert stdenv.isLinux && stdenv ? glibc; 1 + {lib, stdenv, fetchurl, gettext, glibc }: 4 2 5 3 stdenv.mkDerivation rec { 6 4 pname = "checkinstall"; ··· 54 52 substituteInPlace checkinstallrc-dist --replace /usr/local $out 55 53 56 54 substituteInPlace installwatch/create-localdecls \ 57 - --replace /usr/include/unistd.h ${stdenv.glibc.dev}/include/unistd.h 55 + --replace /usr/include/unistd.h ${glibc.dev}/include/unistd.h 58 56 ''; 59 57 60 58 postInstall =
+2 -2
pkgs/tools/system/hardinfo/default.nix
··· 1 - { lib, stdenv, fetchurl, which, pkg-config, gtk2, pcre, glib, libxml2 1 + { lib, stdenv, fetchurl, which, pkg-config, gtk2, pcre, glib, libxml2, glibc 2 2 , libsoup ? null 3 3 }: 4 4 ··· 30 30 sed -i -e "s/^CFLAGS = \(.*\)/CFLAGS = \1 -std=gnu89/" Makefile.in 31 31 32 32 substituteInPlace ./arch/linux/common/modules.h --replace /sbin/modinfo modinfo 33 - substituteInPlace ./arch/linux/common/os.h --replace /lib/libc.so.6 ${stdenv.glibc.out}/lib/libc.so.6 33 + substituteInPlace ./arch/linux/common/os.h --replace /lib/libc.so.6 ${glibc.out}/lib/libc.so.6 34 34 ''; 35 35 36 36 # Makefile supports DESTDIR but not PREFIX (it hardcodes $DESTDIR/usr/).