treewide: change some glibc to stdenv.cc.libc

main
Artturin 2 years ago
parent 0c4d65b21e
commit c1fffdfffb
  1. 2
      doc/stdenv/multiple-output.chapter.md
  2. 4
      pkgs/applications/audio/baudline/default.nix
  3. 3
      pkgs/applications/audio/yoshimi/default.nix
  4. 4
      pkgs/applications/editors/eclipse/build-eclipse.nix
  5. 4
      pkgs/applications/editors/jetbrains/linux.nix
  6. 2
      pkgs/applications/editors/vscode/extensions/cpptools/missing_elf_deps.sh
  7. 4
      pkgs/applications/graphics/sane/backends/brscan4/default.nix
  8. 4
      pkgs/applications/graphics/sane/backends/brscan5/default.nix
  9. 4
      pkgs/applications/networking/spideroak/default.nix
  10. 4
      pkgs/applications/science/math/cplex/default.nix
  11. 6
      pkgs/applications/science/math/hmetis/default.nix
  12. 6
      pkgs/applications/virtualization/virtualbox/default.nix
  13. 8
      pkgs/build-support/vm/default.nix
  14. 4
      pkgs/development/compilers/nvidia-cg-toolkit/default.nix
  15. 2
      pkgs/development/mobile/androidenv/cmake.nix
  16. 2
      pkgs/development/node-packages/overrides.nix
  17. 3
      pkgs/development/python-modules/monotonic/default.nix
  18. 3
      pkgs/development/tools/eclipse-mat/default.nix
  19. 4
      pkgs/development/tools/iaca/2.1.nix
  20. 4
      pkgs/development/tools/iaca/3.0.nix
  21. 8
      pkgs/games/planetaryannihilation/default.nix
  22. 4
      pkgs/games/ue4demos/default.nix
  23. 6
      pkgs/misc/cups/drivers/brgenml1lpr/default.nix
  24. 21
      pkgs/misc/cups/drivers/canon/default.nix
  25. 8
      pkgs/misc/cups/drivers/hl1110/default.nix
  26. 6
      pkgs/misc/cups/drivers/hl3140cw/default.nix
  27. 4
      pkgs/misc/cups/drivers/mfcj470dwlpr/default.nix
  28. 4
      pkgs/os-specific/linux/mwprocapture/default.nix
  29. 3
      pkgs/os-specific/linux/sgx/ssl/default.nix
  30. 6
      pkgs/tools/compression/kzipmix/default.nix
  31. 3
      pkgs/tools/graphics/pngout/default.nix
  32. 4
      pkgs/tools/inputmethods/m17n-db/default.nix
  33. 4
      pkgs/tools/misc/nbench/default.nix
  34. 6
      pkgs/tools/networking/tgt/default.nix
  35. 4
      pkgs/tools/package-management/checkinstall/default.nix
  36. 4
      pkgs/tools/system/hardinfo/default.nix

@ -77,7 +77,7 @@ There is a special handling of the `debug` output, described at [](#stdenv-separ
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.
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`).
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. `${lib.getBin stdenv.cc.libc}/bin/ldd`).
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).

@ -1,5 +1,5 @@
{ lib, stdenv, fetchurl, libXmu, libXt, libX11, libXext, libXxf86vm, libjack2
, makeWrapper, glibc
, makeWrapper
}:
let
@ -36,7 +36,7 @@ stdenv.mkDerivation rec {
cp -r . "$out/libexec/baudline/"
interpreter="$(echo ${glibc.out}/lib/ld-linux*)"
interpreter="$(echo ${stdenv.cc.libc}/lib/ld-linux*)"
for prog in "$out"/libexec/baudline/baudline*; do
patchelf --interpreter "$interpreter" "$prog"
ln -sr "$prog" "$out/bin/"

@ -1,5 +1,4 @@
{ lib
, glibc
, stdenv
, fetchFromGitHub
, alsa-lib
@ -59,7 +58,7 @@ stdenv.mkDerivation rec {
zlib
];
cmakeFlags = [ "-DFLTK_MATH_LIBRARY=${glibc.out}/lib/libm.so" ];
cmakeFlags = [ "-DFLTK_MATH_LIBRARY=${stdenv.cc.libc}/lib/libm.so" ];
meta = with lib; {
description = "High quality software synthesizer based on ZynAddSubFX";

@ -1,4 +1,4 @@
{ lib, stdenv, makeDesktopItem, freetype, fontconfig, libX11, libXrender, glibc
{ lib, stdenv, makeDesktopItem, freetype, fontconfig, libX11, libXrender
, zlib, jdk, glib, glib-networking, gtk, libXtst, libsecret, gsettings-desktop-schemas, webkitgtk
, makeWrapper, perl, ... }:
@ -28,7 +28,7 @@ stdenv.mkDerivation rec {
tar xfvz $src -C $out
# Patch binaries.
interpreter=$(echo ${glibc.out}/lib/ld-linux*.so.2)
interpreter=$(echo ${stdenv.cc.libc}/lib/ld-linux*.so.2)
libCairo=$out/eclipse/libcairo-swt.so
patchelf --set-interpreter $interpreter $out/eclipse/eclipse
[ -f $libCairo ] && patchelf --set-rpath ${lib.makeLibraryPath [ freetype fontconfig libX11 libXrender zlib ]} $libCairo

@ -1,4 +1,4 @@
{ stdenv, lib, makeDesktopItem, makeWrapper, patchelf, writeText, glibc
{ stdenv, lib, makeDesktopItem, makeWrapper, patchelf, writeText
, coreutils, gnugrep, which, git, unzip, libsecret, libnotify, e2fsprogs
, vmopts ? null
}:
@ -46,7 +46,7 @@ with stdenv; lib.makeOverridable mkDerivation (rec {
truncate --size=$size $fname
}
interpreter=$(echo ${glibc.out}/lib/ld-linux*.so.2)
interpreter=$(echo ${stdenv.cc.libc}/lib/ld-linux*.so.2)
if [[ "${stdenv.hostPlatform.system}" == "x86_64-linux" && -e bin/fsnotifier64 ]]; then
target_size=$(get_file_size bin/fsnotifier64)
patchelf --set-interpreter "$interpreter" bin/fsnotifier64

@ -11,7 +11,7 @@ function get_pkg_out() {
echo "$(nix-build -E "$nixExp" --no-out-link)${suffix}"
}
interpreter="$(get_pkg_out "glibc" "/lib/ld-linux-x86-64.so.2")"
interpreter="$(get_pkg_out "stdenv.cc.libc" "/lib/ld-linux-x86-64.so.2")"
echo "interpreter='$interpreter'"
# For clangformat dep on 'libtinfo.so.5'.

@ -1,8 +1,8 @@
{ stdenv, lib, fetchurl, callPackage, patchelf, makeWrapper, libusb-compat-0_1, glibc }:
{ stdenv, lib, fetchurl, callPackage, patchelf, makeWrapper, libusb-compat-0_1 }:
let
myPatchElf = file: with lib; ''
patchelf --set-interpreter \
${glibc}/lib/ld-linux${optionalString stdenv.is64bit "-x86-64"}.so.2 \
${stdenv.cc.libc}/lib/ld-linux${optionalString stdenv.is64bit "-x86-64"}.so.2 \
${file}
'';

@ -1,8 +1,8 @@
{ stdenv, lib, fetchurl, callPackage, patchelf, makeWrapper, libusb1, avahi-compat, glib, libredirect, nixosTests, glibc }:
{ stdenv, lib, fetchurl, callPackage, patchelf, makeWrapper, libusb1, avahi-compat, glib, libredirect, nixosTests }:
let
myPatchElf = file: with lib; ''
patchelf --set-interpreter \
${glibc}/lib/ld-linux${optionalString stdenv.is64bit "-x86-64"}.so.2 \
${stdenv.cc.libc}/lib/ld-linux${optionalString stdenv.is64bit "-x86-64"}.so.2 \
${file}
'';
system = stdenv.hostPlatform.system;

@ -1,4 +1,4 @@
{ lib, stdenv, fetchurl, makeWrapper, patchelf, glibc
{ lib, stdenv, fetchurl, makeWrapper, patchelf
, fontconfig, freetype, glib, libICE, libSM
, libX11, libXext, libXrender, zlib
}:
@ -37,7 +37,7 @@ in stdenv.mkDerivation {
rm -f $out/opt/SpiderOakONE/lib/libz*
patchelf --set-interpreter ${glibc.out}/lib/ld-linux-x86-64.so.2 \
patchelf --set-interpreter ${stdenv.cc.libc}/lib/ld-linux-x86-64.so.2 \
"$out/opt/SpiderOakONE/lib/SpiderOakONE"
RPATH=$out/opt/SpiderOakONE/lib:${ldpath}

@ -1,4 +1,4 @@
{ lib, stdenv, makeWrapper, openjdk, gtk2, xorg, glibc, glibcLocales, releasePath ? null }:
{ lib, stdenv, makeWrapper, openjdk, gtk2, xorg, glibcLocales, releasePath ? null }:
# To use this package, you need to download your own cplex installer from IBM
# and override the releasePath attribute to point to the location of the file.
@ -53,7 +53,7 @@ stdenv.mkDerivation rec {
let
libraryPath = lib.makeLibraryPath [ stdenv.cc.cc gtk2 xorg.libXtst ];
in ''
interpreter=${glibc}/lib/ld-linux-x86-64.so.2
interpreter=${stdenv.cc.libc}/lib/ld-linux-x86-64.so.2
for pgm in $out/opl/bin/x86-64_linux/oplrun $out/opl/bin/x86-64_linux/oplrunjava $out/opl/oplide/oplide;
do

@ -1,4 +1,4 @@
{ lib, stdenv, fetchurl, ghostscript, glibc }:
{ lib, stdenv, fetchurl, ghostscript }:
stdenv.mkDerivation rec {
pname = "hmetis";
@ -16,8 +16,8 @@ stdenv.mkDerivation rec {
patchPhase = ''
for binaryfile in $binaryFiles; do
patchelf \
--set-interpreter ${glibc}/lib/ld-linux.so.2 \
--set-rpath ${glibc}/lib \
--set-interpreter ${stdenv.cc.libc}/lib/ld-linux.so.2 \
--set-rpath ${stdenv.cc.libc}/lib \
$binaryfile
done
'';

@ -1,5 +1,5 @@
{ config, stdenv, fetchurl, lib, acpica-tools, dev86, pam, libxslt, libxml2, wrapQtAppsHook
, libX11, xorgproto, libXext, libXcursor, libXmu, libIDL, SDL, libcap, libGL, glibc
, libX11, xorgproto, libXext, libXcursor, libXmu, libIDL, SDL, libcap, libGL
, libpng, glib, lvm2, libXrandr, libXinerama, libopus, qtbase, qtx11extras
, qttools, qtsvg, qtwayland, pkg-config, which, docbook_xsl, docbook_xml_dtd_43
, alsa-lib, curl, libvpx, nettools, dbus, substituteAll, gsoap, zlib
@ -62,8 +62,8 @@ in stdenv.mkDerivation {
${optionalString (!headless) ''
-e 's@TOOLQT5BIN=.*@TOOLQT5BIN="${getDev qtbase}/bin"@' \
''} -i configure
ls kBuild/bin/linux.x86/k* tools/linux.x86/bin/* | xargs -n 1 patchelf --set-interpreter ${glibc.out}/lib/ld-linux.so.2
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
ls kBuild/bin/linux.x86/k* tools/linux.x86/bin/* | xargs -n 1 patchelf --set-interpreter ${stdenv.cc.libc}/lib/ld-linux.so.2
ls kBuild/bin/linux.amd64/k* tools/linux.amd64/bin/* | xargs -n 1 patchelf --set-interpreter ${stdenv.cc.libc}/lib/ld-linux-x86-64.so.2
grep 'libpulse\.so\.0' src include -rI --files-with-match | xargs sed -i -e '
${optionalString pulseSupport

@ -35,10 +35,10 @@ rec {
mkdir -p $out/lib
# Copy what we need from Glibc.
cp -p ${pkgs.glibc.out}/lib/ld-linux*.so.? $out/lib
cp -p ${pkgs.glibc.out}/lib/libc.so.* $out/lib
cp -p ${pkgs.glibc.out}/lib/libm.so.* $out/lib
cp -p ${pkgs.glibc.out}/lib/libresolv.so.* $out/lib
cp -p ${pkgs.stdenv.cc.libc}/lib/ld-linux*.so.? $out/lib
cp -p ${pkgs.stdenv.cc.libc}/lib/libc.so.* $out/lib
cp -p ${pkgs.stdenv.cc.libc}/lib/libm.so.* $out/lib
cp -p ${pkgs.stdenv.cc.libc}/lib/libresolv.so.* $out/lib
# Copy BusyBox.
cp -pd ${pkgs.busybox}/bin/* $out/bin

@ -1,4 +1,4 @@
{ lib, stdenv, fetchurl, glibc }:
{ lib, stdenv, fetchurl }:
stdenv.mkDerivation rec {
version = "3.1";
@ -23,7 +23,7 @@ stdenv.mkDerivation rec {
installPhase = ''
for b in cgc cgfxcat cginfo
do
patchelf --set-interpreter ${glibc.out}/lib/ld-linux*.so.? "bin/$b"
patchelf --set-interpreter ${stdenv.cc.libc}/lib/ld-linux*.so.? "bin/$b"
done
# FIXME: cgfxcat and cginfo need more patchelf
mkdir -p "$out/bin/"

@ -3,7 +3,7 @@
deployAndroidPackage {
inherit package os;
nativeBuildInputs = [ autoPatchelfHook ];
buildInputs = lib.optional (os == "linux") [ pkgs.glibc pkgs.stdenv.cc.cc pkgs.ncurses5 ];
buildInputs = lib.optional (os == "linux") [ pkgs.stdenv.cc.libc pkgs.stdenv.cc.cc pkgs.ncurses5 ];
patchInstructions = lib.optionalString (os == "linux") ''
autoPatchelf $packageBaseDir/bin
'';

@ -202,7 +202,7 @@ final: prev: {
wrapProgram "$out/bin/makam" --prefix PATH : ${lib.makeBinPath [ nodejs ]}
${
if stdenv.isLinux
then "patchelf --set-interpreter ${stdenv.glibc}/lib/ld-linux-x86-64.so.2 \"$out/lib/node_modules/makam/makam-bin-linux64\""
then "patchelf --set-interpreter ${stdenv.cc.libc}/lib/ld-linux-x86-64.so.2 \"$out/lib/node_modules/makam/makam-bin-linux64\""
else ""
}
'';

@ -1,7 +1,6 @@
{ lib, stdenv
, buildPythonPackage
, fetchPypi
, glibc
}:
buildPythonPackage rec {
@ -17,7 +16,7 @@ buildPythonPackage rec {
patchPhase = lib.optionalString stdenv.isLinux ''
substituteInPlace monotonic.py --replace \
"ctypes.util.find_library('c')" "'${glibc.out}/lib/libc.so.6'"
"ctypes.util.find_library('c')" "'${stdenv.cc.libc}/lib/libc.so'"
'';
meta = with lib; {

@ -1,5 +1,4 @@
{ fetchurl
, glibc
, fontconfig
, freetype
, glib
@ -58,7 +57,7 @@ stdenv.mkDerivation rec {
mv mat $out
# Patch binaries.
interpreter=$(echo ${glibc.out}/lib/ld-linux*.so.2)
interpreter=$(echo ${stdenv.cc.libc}/lib/ld-linux*.so.2)
libCairo=$out/eclipse/libcairo-swt.so
patchelf --set-interpreter $interpreter $out/mat/MemoryAnalyzer
[ -f $libCairo ] && patchelf --set-rpath ${

@ -1,4 +1,4 @@
{ lib, stdenv, makeWrapper, requireFile, gcc, unzip, glibc }:
{ lib, stdenv, makeWrapper, requireFile, gcc, unzip }:
with lib;
# v2.1: last version with NHM/WSM arch support
@ -19,7 +19,7 @@ stdenv.mkDerivation rec {
'';
preFixup = let libPath = makeLibraryPath [ stdenv.cc.cc.lib gcc ]; in ''
patchelf \
--set-interpreter ${glibc}/lib/ld-linux-x86-64.so.2 \
--set-interpreter ${stdenv.cc.libc}/lib/ld-linux-x86-64.so.2 \
--set-rpath $out/lib:"${libPath}" \
$out/bin/iaca
'';

@ -1,4 +1,4 @@
{ lib, stdenv, requireFile, unzip, glibc }:
{ lib, stdenv, requireFile, unzip }:
with lib;
stdenv.mkDerivation rec {
@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
installPhase = ''
mkdir -p $out/bin
cp iaca $out/bin
patchelf --set-interpreter ${glibc}/lib/ld-linux-x86-64.so.2 $out/bin/iaca
patchelf --set-interpreter ${stdenv.cc.libc}/lib/ld-linux-x86-64.so.2 $out/bin/iaca
'';
meta = {
description = "Intel Architecture Code Analyzer";

@ -1,4 +1,4 @@
{ lib, stdenv, glibc, config, fetchurl, patchelf, makeWrapper, gtk2, glib, udev, alsa-lib, atk
{ lib, stdenv, config, fetchurl, patchelf, makeWrapper, gtk2, glib, udev, alsa-lib, atk
, nspr, fontconfig, cairo, pango, nss, freetype, gnome2, gdk-pixbuf, curl, systemd, xorg, requireFile }:
stdenv.mkDerivation rec {
@ -23,12 +23,12 @@ stdenv.mkDerivation rec {
ln -s ${systemd}/lib/libudev.so.1 $out/lib/libudev.so.0
patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" "$out/PA"
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"
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.cc.libc "$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.cc.libc}/lib64" "$out/host/CoherentUI_Host"
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"
wrapProgram $out/PA --prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath [ stdenv.cc.cc.lib stdenv.cc.libc xorg.libX11 xorg.libXcursor gtk2 glib curl "$out" ]}:${stdenv.cc.cc.lib}/lib64:${stdenv.cc.libc}/lib64"
for f in $out/lib/*; do
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
patchelf --set-rpath "${lib.makeLibraryPath [ stdenv.cc.cc.lib curl xorg.libX11 stdenv.cc.libc xorg.libXcursor "$out" ]}:${stdenv.cc.cc.lib}/lib64:${stdenv.cc.libc}/lib64" $f
done
'';

@ -1,4 +1,4 @@
{ lib, stdenv, fetchurl, unzip, patchelf, xorg, openal, glibc }:
{ lib, stdenv, fetchurl, unzip, patchelf, xorg, openal }:
let
urls = file:
@ -24,7 +24,7 @@ let
cd $out
unzip $src
interpreter=$(echo ${glibc.out}/lib/ld-linux*.so.2)
interpreter=$(echo ${stdenv.cc.libc}/lib/ld-linux*.so.2)
binary=$(find . -executable -type f)
patchelf \
--set-interpreter $interpreter \

@ -1,4 +1,4 @@
{ lib, stdenv, fetchurl, cups, perl, glibc, ghostscript, which, makeWrapper}:
{ lib, stdenv, fetchurl, cups, perl, ghostscript, which, makeWrapper}:
/*
[Setup instructions](http://support.brother.com/g/s/id/linux/en/instruction_prn1a.html).
@ -30,7 +30,7 @@
let
myPatchElf = file: with lib; ''
patchelf --set-interpreter \
${glibc}/lib/ld-linux${optionalString stdenv.is64bit "-x86-64"}.so.2 \
${stdenv.cc.libc}/lib/ld-linux${optionalString stdenv.is64bit "-x86-64"}.so.2 \
${file}
'';
in
@ -49,7 +49,7 @@ stdenv.mkDerivation rec {
'';
nativeBuildInputs = [ makeWrapper ];
buildInputs = [ cups perl glibc ghostscript which ];
buildInputs = [ cups perl stdenv.cc.libc ghostscript which ];
dontBuild = true;

@ -23,7 +23,6 @@
, ghostscript
, pkgs
, pkgsi686Linux
, glibc
, zlib
}:
@ -151,9 +150,9 @@ stdenv.mkDerivation rec {
ln -sf libufr2filterr.so.1.0.0 libufr2filterr.so
ln -sf libufr2filterr.so.1.0.0 libufr2filterr.so.1
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
patchelf --set-rpath "$(cat ${i686_NIX_GCC}/nix-support/orig-cc)/lib:${libs pkgsi686Linux}:${pkgsi686Linux.glibc.out}/lib" libcaepcmufr2.so.1.0
patchelf --set-rpath "$(cat ${i686_NIX_GCC}/nix-support/orig-cc)/lib:${libs pkgsi686Linux}:${pkgsi686Linux.glibc.out}/lib" libColorGearCufr2.so.2.0.0
patchelf --set-rpath "$(cat ${i686_NIX_GCC}/nix-support/orig-cc)/lib:${libs pkgsi686Linux}:${pkgsi686Linux.stdenv.cc.libc}/lib:${pkgsi686Linux.libxml2.out}/lib:$out/lib32" libcanonufr2r.so.1.0.0
patchelf --set-rpath "$(cat ${i686_NIX_GCC}/nix-support/orig-cc)/lib:${libs pkgsi686Linux}:${pkgsi686Linux.stdenv.cc.libc}/lib" libcaepcmufr2.so.1.0
patchelf --set-rpath "$(cat ${i686_NIX_GCC}/nix-support/orig-cc)/lib:${libs pkgsi686Linux}:${pkgsi686Linux.stdenv.cc.libc}/lib" libColorGearCufr2.so.2.0.0
)
(
@ -167,17 +166,17 @@ stdenv.mkDerivation rec {
ln -sf libufr2filterr.so.1.0.0 libufr2filterr.so
ln -sf libufr2filterr.so.1.0.0 libufr2filterr.so.1
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
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
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
patchelf --set-rpath "$(cat $NIX_CC/nix-support/orig-cc)/lib:${libs pkgs}:${stdenv.cc.cc.lib}/lib64:${stdenv.cc.libc}/lib64:$out/lib" libcanonufr2r.so.1.0.0
patchelf --set-rpath "$(cat $NIX_CC/nix-support/orig-cc)/lib:${libs pkgs}:${stdenv.cc.cc.lib}/lib64:${stdenv.cc.libc}/lib64" libcaepcmufr2.so.1.0
patchelf --set-rpath "$(cat $NIX_CC/nix-support/orig-cc)/lib:${libs pkgs}:${stdenv.cc.cc.lib}/lib64:${stdenv.cc.libc}/lib64" libColorGearCufr2.so.2.0.0
)
(
cd $out/bin
patchelf --set-interpreter "$(cat ${ld64})" --set-rpath "${lib.makeLibraryPath buildInputs}:${stdenv.cc.cc.lib}/lib64:${glibc.out}/lib64" cnsetuputil2
patchelf --set-interpreter "$(cat ${ld64})" --set-rpath "${lib.makeLibraryPath buildInputs}:${stdenv.cc.cc.lib}/lib64:${glibc.out}/lib64" cnpdfdrv
patchelf --set-interpreter "$(cat ${ld64})" --set-rpath "${lib.makeLibraryPath buildInputs}:${stdenv.cc.cc.lib}/lib64:${glibc.out}/lib64:$out/lib" cnpkbidir
patchelf --set-interpreter "$(cat ${ld64})" --set-rpath "${lib.makeLibraryPath buildInputs}:${stdenv.cc.cc.lib}/lib64:${glibc.out}/lib64:$out/lib" cnrsdrvufr2
patchelf --set-interpreter "$(cat ${ld64})" --set-rpath "${lib.makeLibraryPath buildInputs}:${stdenv.cc.cc.lib}/lib64:${stdenv.cc.libc}/lib64" cnsetuputil2
patchelf --set-interpreter "$(cat ${ld64})" --set-rpath "${lib.makeLibraryPath buildInputs}:${stdenv.cc.cc.lib}/lib64:${stdenv.cc.libc}/lib64" cnpdfdrv
patchelf --set-interpreter "$(cat ${ld64})" --set-rpath "${lib.makeLibraryPath buildInputs}:${stdenv.cc.cc.lib}/lib64:${stdenv.cc.libc}/lib64:$out/lib" cnpkbidir
patchelf --set-interpreter "$(cat ${ld64})" --set-rpath "${lib.makeLibraryPath buildInputs}:${stdenv.cc.cc.lib}/lib64:${stdenv.cc.libc}/lib64:$out/lib" cnrsdrvufr2
mv cnsetuputil2 cnsetuputil2.wrapped
echo "#!${runtimeShell} -e" > cnsetuputil2

@ -1,4 +1,4 @@
{lib, stdenv, fetchurl, cups, dpkg, gnused, makeWrapper, ghostscript, file, a2ps, coreutils, gawk, glibc }:
{lib, stdenv, fetchurl, cups, dpkg, gnused, makeWrapper, ghostscript, file, a2ps, coreutils, gawk }:
let
version = "3.0.1-1";
@ -38,9 +38,9 @@ stdenv.mkDerivation {
sed -i '/GHOST_SCRIPT=/c\GHOST_SCRIPT=gs' $out/opt/brother/Printers/HL1110/lpd/psconvert2
patchelf --set-interpreter ${glibc.out}/lib/ld-linux.so.2 $out/opt/brother/Printers/HL1110/lpd/brprintconflsr3
patchelf --set-interpreter ${glibc.out}/lib/ld-linux.so.2 $out/opt/brother/Printers/HL1110/lpd/rawtobr3
patchelf --set-interpreter ${glibc.out}/lib/ld-linux.so.2 $out/opt/brother/Printers/HL1110/inf/braddprinter
patchelf --set-interpreter ${stdenv.cc.libc}/lib/ld-linux.so.2 $out/opt/brother/Printers/HL1110/lpd/brprintconflsr3
patchelf --set-interpreter ${stdenv.cc.libc}/lib/ld-linux.so.2 $out/opt/brother/Printers/HL1110/lpd/rawtobr3
patchelf --set-interpreter ${stdenv.cc.libc}/lib/ld-linux.so.2 $out/opt/brother/Printers/HL1110/inf/braddprinter
wrapProgram $out/opt/brother/Printers/HL1110/lpd/psconvert2 \
--prefix PATH ":" ${ lib.makeBinPath [ gnused coreutils gawk ] }

@ -1,4 +1,4 @@
{lib, stdenv, fetchurl, cups, dpkg, gnused, makeWrapper, ghostscript, file, a2ps, coreutils, gawk, glibc}:
{lib, stdenv, fetchurl, cups, dpkg, gnused, makeWrapper, ghostscript, file, a2ps, coreutils, gawk }:
let
version = "1.1.4-0";
@ -41,8 +41,8 @@ stdenv.mkDerivation {
sed -i '/GHOST_SCRIPT=/c\GHOST_SCRIPT=gs' $out/opt/brother/Printers/hl3140cw/lpd/psconvertij2
patchelf --set-interpreter ${glibc.out}/lib/ld-linux.so.2 $out/opt/brother/Printers/hl3140cw/lpd/brhl3140cwfilter
patchelf --set-interpreter ${glibc.out}/lib/ld-linux.so.2 $out/usr/bin/brprintconf_hl3140cw
patchelf --set-interpreter ${stdenv.cc.libc}/lib/ld-linux.so.2 $out/opt/brother/Printers/hl3140cw/lpd/brhl3140cwfilter
patchelf --set-interpreter ${stdenv.cc.libc}/lib/ld-linux.so.2 $out/usr/bin/brprintconf_hl3140cw
wrapProgram $out/opt/brother/Printers/hl3140cw/lpd/psconvertij2 \
--prefix PATH ":" ${ lib.makeBinPath [ gnused coreutils gawk ] }

@ -1,4 +1,4 @@
{ lib, stdenv, fetchurl, cups, dpkg, ghostscript, a2ps, coreutils, gnused, gawk, file, makeWrapper, glibc }:
{ lib, stdenv, fetchurl, cups, dpkg, ghostscript, a2ps, coreutils, gnused, gawk, file, makeWrapper }:
stdenv.mkDerivation rec {
pname = "mfcj470dw-cupswrapper";
@ -22,7 +22,7 @@ stdenv.mkDerivation rec {
sed -i '/GHOST_SCRIPT=/c\GHOST_SCRIPT=gs' $out/opt/brother/Printers/mfcj470dw/lpd/psconvertij2
patchelf --set-interpreter ${glibc.out}/lib/ld-linux.so.2 $out/opt/brother/Printers/mfcj470dw/lpd/brmfcj470dwfilter
patchelf --set-interpreter ${stdenv.cc.libc}/lib/ld-linux.so.2 $out/opt/brother/Printers/mfcj470dw/lpd/brmfcj470dwfilter
mkdir -p $out/lib/cups/filter/
ln -s $out/opt/brother/Printers/mfcj470dw/lpd/filtermfcj470dw $out/lib/cups/filter/brother_lpdwrapper_mfcj470dw

@ -1,4 +1,4 @@
{ lib, stdenv, fetchurl, kernel, alsa-lib, glibc }:
{ lib, stdenv, fetchurl, kernel, alsa-lib }:
with lib;
@ -7,7 +7,7 @@ let
if stdenv.is64bit then "64"
else "32";
libpath = makeLibraryPath [ stdenv.cc.cc glibc alsa-lib ];
libpath = makeLibraryPath [ stdenv.cc.cc stdenv.cc.libc alsa-lib ];
in
stdenv.mkDerivation rec {

@ -1,5 +1,4 @@
{ stdenv
, glibc
, fetchFromGitHub
, fetchpatch
, fetchurl
@ -54,7 +53,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [
perl
sgx-sdk
glibc
stdenv.cc.libc
which
];

@ -1,4 +1,4 @@
{ lib, stdenv, fetchurl, glibc }:
{ lib, stdenv, fetchurl }:
stdenv.mkDerivation rec {
pname = "kzipmix";
@ -13,8 +13,8 @@ stdenv.mkDerivation rec {
mkdir -p $out/bin
cp amd64/{kzip,zipmix} $out/bin
patchelf --set-interpreter ${glibc.out}/lib/ld-linux.so.2 $out/bin/kzip
patchelf --set-interpreter ${glibc.out}/lib/ld-linux.so.2 $out/bin/zipmix
patchelf --set-interpreter ${stdenv.cc.libc}/lib/ld-linux.so.2 $out/bin/kzip
patchelf --set-interpreter ${stdenv.cc.libc}/lib/ld-linux.so.2 $out/bin/zipmix
'';
meta = with lib; {

@ -2,7 +2,6 @@
, stdenv
, fetchurl
, unzip
, glibc
}:
let
@ -37,7 +36,7 @@ stdenv.mkDerivation rec {
mkdir -p $out/bin
cp ${platform.folder}/pngout $out/bin
'' + lib.optionalString stdenv.isLinux ''
patchelf --set-interpreter ${glibc.out}/lib/${platform.ld-linux} $out/bin/pngout
patchelf --set-interpreter ${stdenv.cc.libc}/lib/${platform.ld-linux} $out/bin/pngout
'';
meta = {

@ -1,4 +1,4 @@
{ lib, stdenv, fetchurl, gettext, gawk, bash, glibc }:
{ lib, stdenv, fetchurl, gettext, gawk, bash }:
stdenv.mkDerivation rec {
pname = "m17n-db";
@ -14,7 +14,7 @@ stdenv.mkDerivation rec {
strictDeps = true;
configureFlags = [ "--with-charmaps=${glibc.out}/share/i18n/charmaps" ]
configureFlags = [ "--with-charmaps=${stdenv.cc.libc}/share/i18n/charmaps" ]
;
meta = {

@ -1,4 +1,4 @@
{ lib, stdenv, fetchurl, glibc }:
{ lib, stdenv, fetchurl }:
stdenv.mkDerivation rec {
pname = "nbench-byte";
@ -17,7 +17,7 @@ stdenv.mkDerivation rec {
'';
buildInputs = lib.optionals stdenv.hostPlatform.isGnu [
glibc.static
stdenv.cc.libc.static
];
makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ];

@ -1,4 +1,4 @@
{ stdenv, lib, fetchFromGitHub, libxslt, libaio, systemd, perl, glibc
{ stdenv, lib, fetchFromGitHub, libxslt, libaio, systemd, perl
, docbook_xsl, coreutils, lsof, rdma-core, makeWrapper, sg3_utils, util-linux
}:
@ -29,8 +29,8 @@ stdenv.mkDerivation rec {
preConfigure = ''
sed -i 's|/usr/bin/||' doc/Makefile
sed -i 's|/usr/include/libaio.h|${libaio}/include/libaio.h|' usr/Makefile
sed -i 's|/usr/include/sys/|${glibc.dev}/include/sys/|' usr/Makefile
sed -i 's|/usr/include/linux/|${glibc.dev}/include/linux/|' usr/Makefile
sed -i 's|/usr/include/sys/|${stdenv.cc.libc.dev}/include/sys/|' usr/Makefile
sed -i 's|/usr/include/linux/|${stdenv.cc.libc.dev}/include/linux/|' usr/Makefile
'';
postInstall = ''

@ -1,4 +1,4 @@
{lib, stdenv, fetchurl, gettext, glibc }:
{lib, stdenv, fetchurl, gettext }:
stdenv.mkDerivation rec {
pname = "checkinstall";
@ -52,7 +52,7 @@ stdenv.mkDerivation rec {
substituteInPlace checkinstallrc-dist --replace /usr/local $out
substituteInPlace installwatch/create-localdecls \
--replace /usr/include/unistd.h ${glibc.dev}/include/unistd.h
--replace /usr/include/unistd.h ${stdenv.cc.libc.dev}/include/unistd.h
'';
postInstall =

@ -1,4 +1,4 @@
{ lib, stdenv, fetchurl, which, pkg-config, gtk2, pcre, glib, libxml2, glibc
{ lib, stdenv, fetchurl, which, pkg-config, gtk2, pcre, glib, libxml2
, libsoup ? null
}:
@ -30,7 +30,7 @@ stdenv.mkDerivation rec {
sed -i -e "s/^CFLAGS = \(.*\)/CFLAGS = \1 -std=gnu89/" Makefile.in
substituteInPlace ./arch/linux/common/modules.h --replace /sbin/modinfo modinfo
substituteInPlace ./arch/linux/common/os.h --replace /lib/libc.so.6 ${glibc.out}/lib/libc.so.6
substituteInPlace ./arch/linux/common/os.h --replace /lib/libc.so.6 ${stdenv.cc.libc}/lib/libc.so
'';
# Makefile supports DESTDIR but not PREFIX (it hardcodes $DESTDIR/usr/).

Loading…
Cancel
Save