···3434 preFixup = ''
3535 for f in `find $out/lib/sane/ -type f`; do
3636 # Make it possible to find libstdc++.so.6
3737- patchelf --set-rpath ${stdenv.cc.cc.lib}/lib:$out/lib/sane $f
3737+ patchelf --set-rpath ${lib.getLib stdenv.cc.cc}/lib:$out/lib/sane $f
38383939 # Horrible kludge: The driver hardcodes /usr/lib/sane/ as a dlopen path.
4040 # We can directly modify the binary to force a relative lookup instead.
+1-1
pkgs/applications/kde/kdevelop/kdevelop.nix
···3535 # https://cgit.kde.org/kdevelop.git/commit/?id=716372ae2e8dff9c51e94d33443536786e4bd85b
3636 # required as nixos seems to be unable to find CLANG_BUILTIN_DIR
3737 cmakeFlags = [
3838- "-DCLANG_BUILTIN_DIR=${llvmPackages.libclang.lib}/lib/clang/${lib.getVersion llvmPackages.clang}/include"
3838+ "-DCLANG_BUILTIN_DIR=${lib.getLib llvmPackages.libclang}/lib/clang/${lib.getVersion llvmPackages.clang}/include"
3939 ];
40404141 dontWrapQtApps = true;
···6464 # nix provide lib/clang headers in libclang, not in llvm.
6565 substituteInPlace casadi/interfaces/clang/CMakeLists.txt --replace-fail \
6666 '$'{CLANG_LLVM_LIB_DIR} \
6767- ${llvmPackages_17.libclang.lib}/lib
6767+ ${lib.getLib llvmPackages_17.libclang}/lib
68686969 # help casadi find its own libs
7070 substituteInPlace casadi/core/casadi_os.cpp --replace-fail \
+1-1
pkgs/by-name/cc/ccache/package.nix
···122122 isGNU = unwrappedCC.isGNU or false;
123123 isCcache = true;
124124 };
125125- inherit (unwrappedCC) lib;
125125+ lib = lib.getLib unwrappedCC;
126126 nativeBuildInputs = [ makeWrapper ];
127127 # Unwrapped clang does not have a targetPrefix because it is multi-target
128128 # target is decided with argv0.
+1-1
pkgs/by-name/ch/chatd/package.nix
···3737 ] ++ lib.optional stdenv.isLinux autoPatchelfHook; # for onnx libs
38383939 buildInputs = [
4040- stdenv.cc.cc.lib # for libstdc++.so, required by onnxruntime
4040+ (lib.getLib stdenv.cc.cc) # for libstdc++.so, required by onnxruntime
4141 vips # or it will try to download from the Internet
4242 ];
4343
+1-1
pkgs/by-name/dy/dyalog/package.nix
···7676 ];
77777878 buildInputs = [
7979- stdenv.cc.cc.lib # Used by Conga and .NET Bridge
7979+ (lib.getLib stdenv.cc.cc) # Used by Conga and .NET Bridge
8080 ncurses5 # Used by the dyalog binary to correctly display in the terminal
8181 ]
8282 ++ lib.optionals htmlRendererSupport [
···215215 # one that is compatible with the rest of nixpkgs, even when
216216 # nvcc forces us to use an older gcc
217217 # NB: We don't actually know if this is the right thing to do
218218- stdenv.cc.cc.lib
218218+ (lib.getLib stdenv.cc.cc)
219219 ];
220220221221 # Picked up by autoPatchelf
···1515 # $debugdir:$datadir/auto-load are whitelisted by default by GDB
1616 "$debugdir" "$datadir/auto-load"
1717 # targetPackages so we get the right libc when cross-compiling and using buildPackages.gdb
1818- targetPackages.stdenv.cc.cc.lib
1818+ (lib.getLib targetPackages.stdenv.cc.cc)
1919 ]
2020, writeScript
2121}:
···4343 mkdir -p $out/{opt/andyetitmoves,bin}
4444 cp -r * $out/opt/andyetitmoves/
45454646- fullPath=${stdenv.cc.cc.lib}/lib64
4646+ fullPath=${lib.getLib stdenv.cc.cc}/lib64
4747 for i in $nativeBuildInputs; do
4848 fullPath=$fullPath''${fullPath:+:}$i/lib
4949 done
+1-1
pkgs/games/arena/default.nix
···2121 };
22222323 # stdenv.cc.cc.lib is in that list to pick up libstdc++.so. Is there a better way?
2424- buildInputs = [gtk2-x11 glib pango cairo atk gdk-pixbuf libX11 stdenv.cc.cc.lib];
2424+ buildInputs = [gtk2-x11 glib pango cairo atk gdk-pixbuf libX11 (lib.getLib stdenv.cc.cc)];
25252626 unpackPhase = ''
2727 # This is is a tar bomb, i.e. it extract a dozen files and directories to
+1-1
pkgs/games/clonehero/default.nix
···3838 # Load-time libraries (loaded from DT_NEEDED section in ELF binary)
3939 alsa-lib
4040 gtk3
4141- stdenv.cc.cc.lib
4141+ (lib.getLib stdenv.cc.cc)
4242 zlib
43434444 # Run-time libraries (loaded with dlopen)