mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-21 22:43:01 +00:00
treewide: use getLib when accessing clang / libclang / stdenv.cc.cc
In preparation to eliminate the lib output for the unwrapped clang, use `lib.getLib` to access the `lib` output.
This commit is contained in:
parent
75ba685920
commit
52bf1163fa
@ -28,7 +28,7 @@ in {
|
|||||||
networking.interfaces.eth1.ipv4.addresses = [ { address = serverAddress; prefixLength = 24; } ];
|
networking.interfaces.eth1.ipv4.addresses = [ { address = serverAddress; prefixLength = 24; } ];
|
||||||
services.openssh.enable = true;
|
services.openssh.enable = true;
|
||||||
users.users.root.openssh.authorizedKeys.keys = [ snakeOilPublicKey ];
|
users.users.root.openssh.authorizedKeys.keys = [ snakeOilPublicKey ];
|
||||||
virtualisation.additionalPaths = with pkgs; [ patchelf bintools stdenv.cc.cc.lib ];
|
virtualisation.additionalPaths = with pkgs; [ patchelf bintools (lib.getLib stdenv.cc.cc) ];
|
||||||
};
|
};
|
||||||
client = { ... }: {
|
client = { ... }: {
|
||||||
imports = [ ./common/x11.nix ./common/user-account.nix ];
|
imports = [ ./common/x11.nix ./common/user-account.nix ];
|
||||||
|
@ -24,7 +24,7 @@ stdenv.mkDerivation rec {
|
|||||||
dontWrapGApps = true; # we only want $gappsWrapperArgs here
|
dontWrapGApps = true; # we only want $gappsWrapperArgs here
|
||||||
|
|
||||||
buildInputs = with xorg; [
|
buildInputs = with xorg; [
|
||||||
alsa-lib cairo freetype gdk-pixbuf glib gtk3 libxcb xcbutil xcbutilwm zlib libXtst libxkbcommon pulseaudio libjack2 libX11 libglvnd libXcursor stdenv.cc.cc.lib
|
alsa-lib cairo freetype gdk-pixbuf glib gtk3 libxcb xcbutil xcbutilwm zlib libXtst libxkbcommon pulseaudio libjack2 libX11 libglvnd libXcursor (lib.getLib stdenv.cc.cc)
|
||||||
];
|
];
|
||||||
|
|
||||||
ldLibraryPath = lib.strings.makeLibraryPath buildInputs;
|
ldLibraryPath = lib.strings.makeLibraryPath buildInputs;
|
||||||
|
@ -59,7 +59,7 @@ stdenv.mkDerivation rec {
|
|||||||
libxkbcommon
|
libxkbcommon
|
||||||
pipewire
|
pipewire
|
||||||
pulseaudio
|
pulseaudio
|
||||||
stdenv.cc.cc.lib
|
(lib.getLib stdenv.cc.cc)
|
||||||
xcbutil
|
xcbutil
|
||||||
xcbutilwm
|
xcbutilwm
|
||||||
zlib
|
zlib
|
||||||
|
@ -67,7 +67,7 @@ stdenv.mkDerivation rec {
|
|||||||
pango
|
pango
|
||||||
pipewire
|
pipewire
|
||||||
pulseaudio
|
pulseaudio
|
||||||
stdenv.cc.cc.lib
|
(lib.getLib stdenv.cc.cc)
|
||||||
vulkan-loader
|
vulkan-loader
|
||||||
xcb-imdkit
|
xcb-imdkit
|
||||||
xcbutil
|
xcbutil
|
||||||
|
@ -30,7 +30,7 @@ buildDotnetModule rec {
|
|||||||
graphicsmagick
|
graphicsmagick
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [ stdenv.cc.cc.lib fontconfig ];
|
buildInputs = [ (lib.getLib stdenv.cc.cc) fontconfig ];
|
||||||
|
|
||||||
runtimeDeps = [
|
runtimeDeps = [
|
||||||
libglvnd
|
libglvnd
|
||||||
|
@ -23,7 +23,7 @@ stdenv.mkDerivation rec {
|
|||||||
libXext # libXext.so.6
|
libXext # libXext.so.6
|
||||||
alsa-lib # libasound.so.2
|
alsa-lib # libasound.so.2
|
||||||
freetype # libfreetype.so.6
|
freetype # libfreetype.so.6
|
||||||
stdenv.cc.cc.lib # libstdc++.so.6
|
(lib.getLib stdenv.cc.cc) # libstdc++.so.6
|
||||||
];
|
];
|
||||||
in ''
|
in ''
|
||||||
patchelf \
|
patchelf \
|
||||||
|
@ -45,7 +45,7 @@ let
|
|||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
stdenv.cc.cc.lib
|
(lib.getLib stdenv.cc.cc)
|
||||||
xorg.libX11 # libX11.so.6
|
xorg.libX11 # libX11.so.6
|
||||||
xorg.libXext # libXext.so.6
|
xorg.libXext # libXext.so.6
|
||||||
alsa-lib # libasound.so.2
|
alsa-lib # libasound.so.2
|
||||||
|
@ -51,7 +51,7 @@ stdenv.mkDerivation rec {
|
|||||||
sourceRoot = lib.optionalString stdenv.hostPlatform.isDarwin "Reaper.app";
|
sourceRoot = lib.optionalString stdenv.hostPlatform.isDarwin "Reaper.app";
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
stdenv.cc.cc.lib # reaper and libSwell need libstdc++.so.6
|
(lib.getLib stdenv.cc.cc) # reaper and libSwell need libstdc++.so.6
|
||||||
] ++ lib.optionals stdenv.hostPlatform.isLinux [
|
] ++ lib.optionals stdenv.hostPlatform.isLinux [
|
||||||
gtk3
|
gtk3
|
||||||
alsa-lib
|
alsa-lib
|
||||||
@ -88,7 +88,7 @@ stdenv.mkDerivation rec {
|
|||||||
# We opt for wrapping the executable with LD_LIBRARY_PATH prefix.
|
# We opt for wrapping the executable with LD_LIBRARY_PATH prefix.
|
||||||
# Note that libcurl and libxml2 are needed for ReaPack to run.
|
# Note that libcurl and libxml2 are needed for ReaPack to run.
|
||||||
wrapProgram $out/opt/REAPER/reaper \
|
wrapProgram $out/opt/REAPER/reaper \
|
||||||
--prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath [ curl lame libxml2 ffmpeg vlc xdotool stdenv.cc.cc.lib ]}"
|
--prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath [ curl lame libxml2 ffmpeg vlc xdotool stdenv.cc.cc ]}"
|
||||||
|
|
||||||
mkdir $out/bin
|
mkdir $out/bin
|
||||||
ln -s $out/opt/REAPER/reaper $out/bin/
|
ln -s $out/opt/REAPER/reaper $out/bin/
|
||||||
|
@ -36,7 +36,7 @@ stdenv.mkDerivation rec {
|
|||||||
libX11
|
libX11
|
||||||
libXext
|
libXext
|
||||||
alsa-lib
|
alsa-lib
|
||||||
stdenv.cc.cc.lib
|
(lib.getLib stdenv.cc.cc)
|
||||||
];
|
];
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
@ -73,7 +73,7 @@ in stdenv.mkDerivation rec {
|
|||||||
ln -s $path/lib/*.so* $out/lib/
|
ln -s $path/lib/*.so* $out/lib/
|
||||||
done
|
done
|
||||||
|
|
||||||
ln -s ${stdenv.cc.cc.lib}/lib/libstdc++.so.6 $out/lib/
|
ln -s ${lib.getLib stdenv.cc.cc}/lib/libstdc++.so.6 $out/lib/
|
||||||
|
|
||||||
mkdir $out/bin
|
mkdir $out/bin
|
||||||
ln -s $out/renoise $out/bin/renoise
|
ln -s $out/renoise $out/bin/renoise
|
||||||
|
@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
nativeBuildInputs = [ autoPatchelfHook makeWrapper ];
|
nativeBuildInputs = [ autoPatchelfHook makeWrapper ];
|
||||||
|
|
||||||
buildInputs = [ alsa-lib curl gtk3 stdenv.cc.cc.lib webkitgtk_4_0 zenity ];
|
buildInputs = [ alsa-lib curl gtk3 (lib.getLib stdenv.cc.cc) webkitgtk_4_0 zenity ];
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p "$out/bin"
|
mkdir -p "$out/bin"
|
||||||
|
@ -30,7 +30,7 @@ stdenv.mkDerivation rec {
|
|||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
stdenv.cc.cc.lib
|
(lib.getLib stdenv.cc.cc)
|
||||||
alsa-lib
|
alsa-lib
|
||||||
freetype
|
freetype
|
||||||
libglvnd
|
libglvnd
|
||||||
|
@ -29,7 +29,7 @@ stdenv.mkDerivation rec {
|
|||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
stdenv.cc.cc.lib
|
(lib.getLib stdenv.cc.cc)
|
||||||
alsa-lib
|
alsa-lib
|
||||||
freetype
|
freetype
|
||||||
libglvnd
|
libglvnd
|
||||||
|
@ -27,7 +27,7 @@ stdenv.mkDerivation rec {
|
|||||||
nativeBuildInputs = [ autoPatchelfHook dpkg ];
|
nativeBuildInputs = [ autoPatchelfHook dpkg ];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
stdenv.cc.cc.lib
|
(lib.getLib stdenv.cc.cc)
|
||||||
alsa-lib
|
alsa-lib
|
||||||
freetype
|
freetype
|
||||||
libglvnd
|
libglvnd
|
||||||
|
@ -27,7 +27,7 @@ stdenv.mkDerivation rec {
|
|||||||
nativeBuildInputs = [ autoPatchelfHook dpkg ];
|
nativeBuildInputs = [ autoPatchelfHook dpkg ];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
stdenv.cc.cc.lib
|
(lib.getLib stdenv.cc.cc)
|
||||||
alsa-lib
|
alsa-lib
|
||||||
freetype
|
freetype
|
||||||
libglvnd
|
libglvnd
|
||||||
|
@ -30,7 +30,7 @@ stdenv.mkDerivation rec {
|
|||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
stdenv.cc.cc.lib
|
(lib.getLib stdenv.cc.cc)
|
||||||
alsa-lib
|
alsa-lib
|
||||||
freetype
|
freetype
|
||||||
libglvnd
|
libglvnd
|
||||||
|
@ -71,7 +71,7 @@ stdenv.mkDerivation rec {
|
|||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
stdenv.cc.cc.lib
|
(lib.getLib stdenv.cc.cc)
|
||||||
alsa-lib
|
alsa-lib
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@ stdenv.mkDerivation rec {
|
|||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
stdenv.cc.cc.lib
|
(lib.getLib stdenv.cc.cc)
|
||||||
libX11
|
libX11
|
||||||
libXi
|
libXi
|
||||||
libGL
|
libGL
|
||||||
|
@ -28,7 +28,7 @@ stdenv.mkDerivation (finalAttrs: {
|
|||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
alsa-lib
|
alsa-lib
|
||||||
stdenv.cc.cc.lib
|
(lib.getLib stdenv.cc.cc)
|
||||||
libGL
|
libGL
|
||||||
xorg.libSM
|
xorg.libSM
|
||||||
xorg.libICE
|
xorg.libICE
|
||||||
|
@ -136,7 +136,7 @@ let
|
|||||||
sparrow-modules = stdenvNoCC.mkDerivation {
|
sparrow-modules = stdenvNoCC.mkDerivation {
|
||||||
pname = "sparrow-modules";
|
pname = "sparrow-modules";
|
||||||
inherit version src;
|
inherit version src;
|
||||||
nativeBuildInputs = [ makeWrapper gzip gnugrep openjdk autoPatchelfHook stdenv.cc.cc.lib zlib ];
|
nativeBuildInputs = [ makeWrapper gzip gnugrep openjdk autoPatchelfHook (lib.getLib stdenv.cc.cc) zlib ];
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
# Extract Sparrow's JIMAGE and generate a list of them.
|
# Extract Sparrow's JIMAGE and generate a list of them.
|
||||||
|
@ -50,7 +50,7 @@ stdenv.mkDerivation rec {
|
|||||||
# patch pre-built node modules
|
# patch pre-built node modules
|
||||||
asar e $out/share/${pname}/resources/app.asar asar-unpacked
|
asar e $out/share/${pname}/resources/app.asar asar-unpacked
|
||||||
find asar-unpacked -name '*.node' -exec patchelf \
|
find asar-unpacked -name '*.node' -exec patchelf \
|
||||||
--add-rpath "${lib.makeLibraryPath [ stdenv.cc.cc.lib ]}" \
|
--add-rpath "${lib.makeLibraryPath [ stdenv.cc.cc ]}" \
|
||||||
{} \;
|
{} \;
|
||||||
asar p asar-unpacked $out/share/${pname}/resources/app.asar
|
asar p asar-unpacked $out/share/${pname}/resources/app.asar
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@ buildDotnetModule rec {
|
|||||||
dotnet-sdk = dotnetCorePackages.sdk_7_0;
|
dotnet-sdk = dotnetCorePackages.sdk_7_0;
|
||||||
dotnet-runtime = dotnetCorePackages.aspnetcore_7_0;
|
dotnet-runtime = dotnetCorePackages.aspnetcore_7_0;
|
||||||
|
|
||||||
buildInputs = [stdenv.cc.cc.lib zlib];
|
buildInputs = [(lib.getLib stdenv.cc.cc) zlib];
|
||||||
|
|
||||||
runtimeDeps = [openssl zlib];
|
runtimeDeps = [openssl zlib];
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@ let
|
|||||||
runtimeLibs = [
|
runtimeLibs = [
|
||||||
fontconfig.lib
|
fontconfig.lib
|
||||||
openssl
|
openssl
|
||||||
stdenv.cc.cc.lib
|
(lib.getLib stdenv.cc.cc)
|
||||||
xorg.libX11
|
xorg.libX11
|
||||||
xorg.libICE
|
xorg.libICE
|
||||||
xorg.libSM
|
xorg.libSM
|
||||||
|
@ -137,7 +137,7 @@ let
|
|||||||
e2fsprogs
|
e2fsprogs
|
||||||
|
|
||||||
# Gradle wants libstdc++.so.6
|
# Gradle wants libstdc++.so.6
|
||||||
stdenv.cc.cc.lib
|
(lib.getLib stdenv.cc.cc)
|
||||||
# mksdcard wants 32 bit libstdc++.so.6
|
# mksdcard wants 32 bit libstdc++.so.6
|
||||||
pkgsi686Linux.stdenv.cc.cc.lib
|
pkgsi686Linux.stdenv.cc.cc.lib
|
||||||
|
|
||||||
|
@ -153,8 +153,8 @@ let
|
|||||||
# https://github.com/Golevka/emacs-clang-complete-async/issues/90
|
# https://github.com/Golevka/emacs-clang-complete-async/issues/90
|
||||||
auto-complete-clang-async = (addPackageRequires super.auto-complete-clang-async [ self.auto-complete ]).overrideAttrs (old: {
|
auto-complete-clang-async = (addPackageRequires super.auto-complete-clang-async [ self.auto-complete ]).overrideAttrs (old: {
|
||||||
buildInputs = old.buildInputs ++ [ pkgs.llvmPackages.llvm ];
|
buildInputs = old.buildInputs ++ [ pkgs.llvmPackages.llvm ];
|
||||||
CFLAGS = "-I${pkgs.llvmPackages.libclang.lib}/include";
|
CFLAGS = "-I${lib.getLib pkgs.llvmPackages.libclang}/include";
|
||||||
LDFLAGS = "-L${pkgs.llvmPackages.libclang.lib}/lib";
|
LDFLAGS = "-L${lib.getLib pkgs.llvmPackages.libclang}/lib";
|
||||||
});
|
});
|
||||||
|
|
||||||
# part of a larger package
|
# part of a larger package
|
||||||
|
@ -5,17 +5,17 @@
|
|||||||
"631" = {
|
"631" = {
|
||||||
# Python
|
# Python
|
||||||
nativeBuildInputs = lib.optional stdenv.hostPlatform.isLinux autoPatchelfHook;
|
nativeBuildInputs = lib.optional stdenv.hostPlatform.isLinux autoPatchelfHook;
|
||||||
buildInputs = [ stdenv.cc.cc.lib ];
|
buildInputs = [ (lib.getLib stdenv.cc.cc) ];
|
||||||
};
|
};
|
||||||
"7322" = {
|
"7322" = {
|
||||||
# Python community edition
|
# Python community edition
|
||||||
nativeBuildInputs = lib.optional stdenv.hostPlatform.isLinux autoPatchelfHook;
|
nativeBuildInputs = lib.optional stdenv.hostPlatform.isLinux autoPatchelfHook;
|
||||||
buildInputs = [ stdenv.cc.cc.lib ];
|
buildInputs = [ (lib.getLib stdenv.cc.cc) ];
|
||||||
};
|
};
|
||||||
"8182" = {
|
"8182" = {
|
||||||
# Rust (deprecated)
|
# Rust (deprecated)
|
||||||
nativeBuildInputs = lib.optional stdenv.hostPlatform.isLinux autoPatchelfHook;
|
nativeBuildInputs = lib.optional stdenv.hostPlatform.isLinux autoPatchelfHook;
|
||||||
buildInputs = [ stdenv.cc.cc.lib ];
|
buildInputs = [ (lib.getLib stdenv.cc.cc) ];
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
runHook preBuild
|
runHook preBuild
|
||||||
chmod +x -R bin
|
chmod +x -R bin
|
||||||
@ -66,7 +66,7 @@
|
|||||||
"22407" = {
|
"22407" = {
|
||||||
# Rust
|
# Rust
|
||||||
nativeBuildInputs = lib.optional stdenv.hostPlatform.isLinux autoPatchelfHook;
|
nativeBuildInputs = lib.optional stdenv.hostPlatform.isLinux autoPatchelfHook;
|
||||||
buildInputs = [ stdenv.cc.cc.lib ];
|
buildInputs = [ (lib.getLib stdenv.cc.cc) ];
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
runHook preBuild
|
runHook preBuild
|
||||||
chmod +x -R bin
|
chmod +x -R bin
|
||||||
|
@ -146,8 +146,8 @@ in
|
|||||||
--replace-fail '@node@' ${nodejs}
|
--replace-fail '@node@' ${nodejs}
|
||||||
|
|
||||||
substituteInPlace src/cpp/core/libclang/LibClang.cpp \
|
substituteInPlace src/cpp/core/libclang/LibClang.cpp \
|
||||||
--replace-fail '@libclang@' ${llvmPackages.libclang.lib} \
|
--replace-fail '@libclang@' ${lib.getLib llvmPackages.libclang} \
|
||||||
--replace-fail '@libclang.so@' ${llvmPackages.libclang.lib}/lib/libclang.so
|
--replace-fail '@libclang.so@' ${lib.getLib llvmPackages.libclang}/lib/libclang.so
|
||||||
|
|
||||||
substituteInPlace src/cpp/session/CMakeLists.txt \
|
substituteInPlace src/cpp/session/CMakeLists.txt \
|
||||||
--replace-fail '@pandoc@' ${pandoc} \
|
--replace-fail '@pandoc@' ${pandoc} \
|
||||||
|
@ -39,7 +39,7 @@ stdenv.mkDerivation rec {
|
|||||||
libPath = lib.makeLibraryPath [
|
libPath = lib.makeLibraryPath [
|
||||||
libsecret
|
libsecret
|
||||||
glib
|
glib
|
||||||
stdenv.cc.cc.lib
|
(lib.getLib stdenv.cc.cc)
|
||||||
];
|
];
|
||||||
in
|
in
|
||||||
''
|
''
|
||||||
|
@ -36,7 +36,7 @@ stdenv.mkDerivation rec {
|
|||||||
echo ${libPath}
|
echo ${libPath}
|
||||||
patchelf \
|
patchelf \
|
||||||
--interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
--interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
||||||
--set-rpath ${libPath}:${stdenv.cc.cc.lib}/lib${lib.optionalString stdenv.hostPlatform.is64bit "64"} \
|
--set-rpath ${libPath}:${lib.getLib stdenv.cc.cc}/lib${lib.optionalString stdenv.hostPlatform.is64bit "64"} \
|
||||||
$out/sublime/sublime_text
|
$out/sublime/sublime_text
|
||||||
|
|
||||||
mkdir -p $out/share/icons
|
mkdir -p $out/share/icons
|
||||||
|
@ -65,7 +65,7 @@ let
|
|||||||
for binary in ${ builtins.concatStringsSep " " binaries }; do
|
for binary in ${ builtins.concatStringsSep " " binaries }; do
|
||||||
patchelf \
|
patchelf \
|
||||||
--interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
--interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
||||||
--set-rpath ${libPath}:${stdenv.cc.cc.lib}/lib${lib.optionalString stdenv.hostPlatform.is64bit "64"} \
|
--set-rpath ${libPath}:${lib.getLib stdenv.cc.cc}/lib${lib.optionalString stdenv.hostPlatform.is64bit "64"} \
|
||||||
$binary
|
$binary
|
||||||
done
|
done
|
||||||
|
|
||||||
@ -92,7 +92,7 @@ let
|
|||||||
|
|
||||||
postFixup = ''
|
postFixup = ''
|
||||||
wrapProgram $out/sublime_bash \
|
wrapProgram $out/sublime_bash \
|
||||||
--set LD_PRELOAD "${stdenv.cc.cc.lib}/lib${lib.optionalString stdenv.hostPlatform.is64bit "64"}/libgcc_s.so.1"
|
--set LD_PRELOAD "${lib.getLib stdenv.cc.cc}/lib${lib.optionalString stdenv.hostPlatform.is64bit "64"}/libgcc_s.so.1"
|
||||||
|
|
||||||
wrapProgram $out/${primaryBinary} \
|
wrapProgram $out/${primaryBinary} \
|
||||||
--set LD_PRELOAD "${libredirect}/lib/libredirect.so" \
|
--set LD_PRELOAD "${libredirect}/lib/libredirect.so" \
|
||||||
@ -101,7 +101,7 @@ let
|
|||||||
"''${gappsWrapperArgs[@]}"
|
"''${gappsWrapperArgs[@]}"
|
||||||
|
|
||||||
# Without this, plugin_host crashes, even though it has the rpath
|
# Without this, plugin_host crashes, even though it has the rpath
|
||||||
wrapProgram $out/plugin_host --prefix LD_PRELOAD : ${stdenv.cc.cc.lib}/lib${lib.optionalString stdenv.hostPlatform.is64bit "64"}/libgcc_s.so.1:${lib.getLib openssl}/lib/libssl.so:${bzip2.out}/lib/libbz2.so
|
wrapProgram $out/plugin_host --prefix LD_PRELOAD : ${lib.getLib stdenv.cc.cc}/lib${lib.optionalString stdenv.hostPlatform.is64bit "64"}/libgcc_s.so.1:${lib.getLib openssl}/lib/libssl.so:${bzip2.out}/lib/libbz2.so
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
in stdenv.mkDerivation (rec {
|
in stdenv.mkDerivation (rec {
|
||||||
|
@ -88,7 +88,7 @@ let
|
|||||||
for binary in ${builtins.concatStringsSep " " binaries}; do
|
for binary in ${builtins.concatStringsSep " " binaries}; do
|
||||||
patchelf \
|
patchelf \
|
||||||
--interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
--interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
||||||
--set-rpath ${lib.makeLibraryPath neededLibraries}:${stdenv.cc.cc.lib}/lib${lib.optionalString stdenv.hostPlatform.is64bit "64"} \
|
--set-rpath ${lib.makeLibraryPath neededLibraries}:${lib.getLib stdenv.cc.cc}/lib${lib.optionalString stdenv.hostPlatform.is64bit "64"} \
|
||||||
$binary
|
$binary
|
||||||
done
|
done
|
||||||
|
|
||||||
|
@ -293,7 +293,7 @@ in
|
|||||||
--replace "let g:clang_library_path = ''
|
--replace "let g:clang_library_path = ''
|
||||||
+ "''"
|
+ "''"
|
||||||
+ ''
|
+ ''
|
||||||
" "let g:clang_library_path='${llvmPackages.libclang.lib}/lib/libclang.so'"
|
" "let g:clang_library_path='${lib.getLib llvmPackages.libclang}/lib/libclang.so'"
|
||||||
|
|
||||||
substituteInPlace "$out"/plugin/libclang.py \
|
substituteInPlace "$out"/plugin/libclang.py \
|
||||||
--replace "/usr/lib/clang" "${llvmPackages.clang.cc}/lib/clang"
|
--replace "/usr/lib/clang" "${llvmPackages.clang.cc}/lib/clang"
|
||||||
@ -302,7 +302,7 @@ in
|
|||||||
|
|
||||||
clighter8 = super.clighter8.overrideAttrs {
|
clighter8 = super.clighter8.overrideAttrs {
|
||||||
preFixup = ''
|
preFixup = ''
|
||||||
sed "/^let g:clighter8_libclang_path/s|')$|${llvmPackages.clang.cc.lib}/lib/libclang.so')|" \
|
sed "/^let g:clighter8_libclang_path/s|')$|${lib.getLib llvmPackages.clang.cc}/lib/libclang.so')|" \
|
||||||
-i "$out"/plugin/clighter8.vim
|
-i "$out"/plugin/clighter8.vim
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
@ -1072,7 +1072,7 @@ let
|
|||||||
}
|
}
|
||||||
// sources.${stdenv.system};
|
// sources.${stdenv.system};
|
||||||
nativeBuildInputs = lib.optionals stdenv.hostPlatform.isLinux [ autoPatchelfHook ];
|
nativeBuildInputs = lib.optionals stdenv.hostPlatform.isLinux [ autoPatchelfHook ];
|
||||||
buildInputs = [ stdenv.cc.cc.lib ];
|
buildInputs = [ (lib.getLib stdenv.cc.cc) ];
|
||||||
meta = {
|
meta = {
|
||||||
description = "Open-source autopilot for software development - bring the power of ChatGPT to your IDE";
|
description = "Open-source autopilot for software development - bring the power of ChatGPT to your IDE";
|
||||||
downloadPage = "https://marketplace.visualstudio.com/items?itemName=Continue.continue";
|
downloadPage = "https://marketplace.visualstudio.com/items?itemName=Continue.continue";
|
||||||
@ -1349,7 +1349,7 @@ let
|
|||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
zlib
|
zlib
|
||||||
stdenv.cc.cc.lib
|
(lib.getLib stdenv.cc.cc)
|
||||||
];
|
];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
@ -3245,7 +3245,7 @@ let
|
|||||||
// sources.${stdenv.system};
|
// sources.${stdenv.system};
|
||||||
nativeBuildInputs = lib.optionals stdenv.hostPlatform.isLinux [ autoPatchelfHook ];
|
nativeBuildInputs = lib.optionals stdenv.hostPlatform.isLinux [ autoPatchelfHook ];
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
stdenv.cc.cc.lib
|
(lib.getLib stdenv.cc.cc)
|
||||||
zlib
|
zlib
|
||||||
];
|
];
|
||||||
meta = {
|
meta = {
|
||||||
|
@ -71,7 +71,7 @@ vscode-utils.buildVscodeMarketplaceExtension {
|
|||||||
lttng-ust
|
lttng-ust
|
||||||
libkrb5
|
libkrb5
|
||||||
zlib
|
zlib
|
||||||
stdenv.cc.cc.lib
|
(lib.getLib stdenv.cc.cc)
|
||||||
];
|
];
|
||||||
|
|
||||||
dontAutoPatchelf = isx86Linux;
|
dontAutoPatchelf = isx86Linux;
|
||||||
|
@ -23,7 +23,7 @@ vscode-utils.buildVscodeMarketplaceExtension {
|
|||||||
nativeBuildInputs = lib.optionals stdenv.hostPlatform.isLinux [ autoPatchelfHook ];
|
nativeBuildInputs = lib.optionals stdenv.hostPlatform.isLinux [ autoPatchelfHook ];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
stdenv.cc.cc.lib
|
(lib.getLib stdenv.cc.cc)
|
||||||
zlib
|
zlib
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
libPath = lib.makeLibraryPath (with xorg; [
|
libPath = lib.makeLibraryPath (with xorg; [
|
||||||
stdenv.cc.cc.lib
|
stdenv.cc.cc
|
||||||
at-spi2-core.out
|
at-spi2-core.out
|
||||||
gdk-pixbuf
|
gdk-pixbuf
|
||||||
glib
|
glib
|
||||||
|
@ -22,7 +22,7 @@ stdenv.mkDerivation rec {
|
|||||||
dontBuild = true;
|
dontBuild = true;
|
||||||
|
|
||||||
nativeBuildInputs = [ autoPatchelfHook makeWrapper copyDesktopItems unzip ];
|
nativeBuildInputs = [ autoPatchelfHook makeWrapper copyDesktopItems unzip ];
|
||||||
buildInputs = [ stdenv.cc.cc.lib ];
|
buildInputs = [ (lib.getLib stdenv.cc.cc) ];
|
||||||
|
|
||||||
desktopItems = [
|
desktopItems = [
|
||||||
(makeDesktopItem {
|
(makeDesktopItem {
|
||||||
|
@ -71,7 +71,7 @@ stdenv.mkDerivation rec {
|
|||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
stdenv.cc.cc.lib
|
(lib.getLib stdenv.cc.cc)
|
||||||
alsa-lib
|
alsa-lib
|
||||||
gstreamer
|
gstreamer
|
||||||
gst-plugins-base
|
gst-plugins-base
|
||||||
|
@ -37,7 +37,7 @@ let
|
|||||||
xorg.libXrandr
|
xorg.libXrandr
|
||||||
xorg.libXrender
|
xorg.libXrender
|
||||||
xorg.libXtst
|
xorg.libXtst
|
||||||
stdenv.cc.cc.lib
|
(lib.getLib stdenv.cc.cc)
|
||||||
stdenv.cc.cc
|
stdenv.cc.cc
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -75,7 +75,7 @@ stdenv.mkDerivation (finalAttrs: {
|
|||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
stdenv.cc.cc.lib
|
(lib.getLib stdenv.cc.cc)
|
||||||
stdenv.cc
|
stdenv.cc
|
||||||
libGL
|
libGL
|
||||||
libpulseaudio
|
libpulseaudio
|
||||||
@ -129,7 +129,7 @@ stdenv.mkDerivation (finalAttrs: {
|
|||||||
postPatch = ''
|
postPatch = ''
|
||||||
patchelf ./installer \
|
patchelf ./installer \
|
||||||
--set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
--set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
||||||
--set-rpath ${stdenv.cc.cc.lib}/lib
|
--set-rpath ${lib.getLib stdenv.cc.cc}/lib
|
||||||
'';
|
'';
|
||||||
|
|
||||||
dontConfigure = true;
|
dontConfigure = true;
|
||||||
|
@ -34,7 +34,7 @@ stdenv.mkDerivation rec {
|
|||||||
preFixup = ''
|
preFixup = ''
|
||||||
for f in `find $out/lib/sane/ -type f`; do
|
for f in `find $out/lib/sane/ -type f`; do
|
||||||
# Make it possible to find libstdc++.so.6
|
# Make it possible to find libstdc++.so.6
|
||||||
patchelf --set-rpath ${stdenv.cc.cc.lib}/lib:$out/lib/sane $f
|
patchelf --set-rpath ${lib.getLib stdenv.cc.cc}/lib:$out/lib/sane $f
|
||||||
|
|
||||||
# Horrible kludge: The driver hardcodes /usr/lib/sane/ as a dlopen path.
|
# Horrible kludge: The driver hardcodes /usr/lib/sane/ as a dlopen path.
|
||||||
# We can directly modify the binary to force a relative lookup instead.
|
# We can directly modify the binary to force a relative lookup instead.
|
||||||
|
@ -35,7 +35,7 @@ mkDerivation rec {
|
|||||||
# https://cgit.kde.org/kdevelop.git/commit/?id=716372ae2e8dff9c51e94d33443536786e4bd85b
|
# https://cgit.kde.org/kdevelop.git/commit/?id=716372ae2e8dff9c51e94d33443536786e4bd85b
|
||||||
# required as nixos seems to be unable to find CLANG_BUILTIN_DIR
|
# required as nixos seems to be unable to find CLANG_BUILTIN_DIR
|
||||||
cmakeFlags = [
|
cmakeFlags = [
|
||||||
"-DCLANG_BUILTIN_DIR=${llvmPackages.libclang.lib}/lib/clang/${lib.getVersion llvmPackages.clang}/include"
|
"-DCLANG_BUILTIN_DIR=${lib.getLib llvmPackages.libclang}/lib/clang/${lib.getVersion llvmPackages.clang}/include"
|
||||||
];
|
];
|
||||||
|
|
||||||
dontWrapQtApps = true;
|
dontWrapQtApps = true;
|
||||||
|
@ -100,7 +100,7 @@ stdenv.mkDerivation {
|
|||||||
pango
|
pango
|
||||||
systemd
|
systemd
|
||||||
]
|
]
|
||||||
+ ":${stdenv.cc.cc.lib}/lib64";
|
+ ":${lib.getLib stdenv.cc.cc}/lib64";
|
||||||
in
|
in
|
||||||
''
|
''
|
||||||
runHook preInstall
|
runHook preInstall
|
||||||
|
@ -44,7 +44,7 @@ buildDotnetModule rec {
|
|||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
# Dependencies of nuget packages w/ native binaries
|
# Dependencies of nuget packages w/ native binaries
|
||||||
stdenv.cc.cc.lib
|
(lib.getLib stdenv.cc.cc)
|
||||||
fontconfig
|
fontconfig
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -155,7 +155,7 @@ stdenv.mkDerivation rec {
|
|||||||
libxkbcommon
|
libxkbcommon
|
||||||
xorg.libxkbfile
|
xorg.libxkbfile
|
||||||
pango
|
pango
|
||||||
stdenv.cc.cc.lib
|
stdenv.cc.cc
|
||||||
systemd
|
systemd
|
||||||
])
|
])
|
||||||
targetPath
|
targetPath
|
||||||
|
@ -70,7 +70,7 @@ stdenv.mkDerivation (finalAttrs: {
|
|||||||
nss
|
nss
|
||||||
pango
|
pango
|
||||||
systemd
|
systemd
|
||||||
stdenv.cc.cc.lib
|
(lib.getLib stdenv.cc.cc)
|
||||||
udev
|
udev
|
||||||
xorg.libX11
|
xorg.libX11
|
||||||
xorg.libXScrnSaver
|
xorg.libXScrnSaver
|
||||||
|
@ -10,7 +10,7 @@ let
|
|||||||
|
|
||||||
rpath = lib.makeLibraryPath
|
rpath = lib.makeLibraryPath
|
||||||
[ libX11 zlib libSM libICE libXext freetype libXrender fontconfig libXft
|
[ libX11 zlib libSM libICE libXext freetype libXrender fontconfig libXft
|
||||||
libXinerama stdenv.cc.cc.lib libnotify glib gtk3 libappindicator-gtk3
|
libXinerama stdenv.cc.cc libnotify glib gtk3 libappindicator-gtk3
|
||||||
curl libXfixes libXScrnSaver ];
|
curl libXfixes libXScrnSaver ];
|
||||||
|
|
||||||
in
|
in
|
||||||
|
@ -64,7 +64,7 @@ stdenv.mkDerivation rec {
|
|||||||
find ${src_repo}/resources/fonts -type d -execdir cp -r '{}' $out/lib/koreader/fonts \;
|
find ${src_repo}/resources/fonts -type d -execdir cp -r '{}' $out/lib/koreader/fonts \;
|
||||||
find $out -xtype l -print -delete
|
find $out -xtype l -print -delete
|
||||||
wrapProgram $out/bin/koreader --prefix LD_LIBRARY_PATH : ${
|
wrapProgram $out/bin/koreader --prefix LD_LIBRARY_PATH : ${
|
||||||
lib.makeLibraryPath [ gtk3-x11 SDL2 glib stdenv.cc.cc.lib ]
|
lib.makeLibraryPath [ gtk3-x11 SDL2 glib stdenv.cc.cc ]
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
@ -82,7 +82,7 @@
|
|||||||
libxkbcommon
|
libxkbcommon
|
||||||
xorg.libxkbfile
|
xorg.libxkbfile
|
||||||
pango
|
pango
|
||||||
stdenv.cc.cc.lib
|
(lib.getLib stdenv.cc.cc)
|
||||||
systemd
|
systemd
|
||||||
];
|
];
|
||||||
in ''
|
in ''
|
||||||
|
@ -384,7 +384,7 @@ buildStdenv.mkDerivation {
|
|||||||
"--enable-default-toolkit=cairo-gtk3${lib.optionalString waylandSupport "-wayland"}"
|
"--enable-default-toolkit=cairo-gtk3${lib.optionalString waylandSupport "-wayland"}"
|
||||||
"--enable-system-pixman"
|
"--enable-system-pixman"
|
||||||
"--with-distribution-id=org.nixos"
|
"--with-distribution-id=org.nixos"
|
||||||
"--with-libclang-path=${llvmPackagesBuildBuild.libclang.lib}/lib"
|
"--with-libclang-path=${lib.getLib llvmPackagesBuildBuild.libclang}/lib"
|
||||||
"--with-system-ffi"
|
"--with-system-ffi"
|
||||||
"--with-system-icu"
|
"--with-system-icu"
|
||||||
"--with-system-jpeg"
|
"--with-system-jpeg"
|
||||||
|
@ -102,7 +102,7 @@ stdenv.mkDerivation rec {
|
|||||||
nspr
|
nspr
|
||||||
nss
|
nss
|
||||||
pango
|
pango
|
||||||
stdenv.cc.cc.lib
|
(lib.getLib stdenv.cc.cc)
|
||||||
qt6.qtbase
|
qt6.qtbase
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -39,7 +39,7 @@ stdenv.mkDerivation (finalAttrs: {
|
|||||||
dbus-glib
|
dbus-glib
|
||||||
gtk2-x11
|
gtk2-x11
|
||||||
libXt
|
libXt
|
||||||
stdenv.cc.cc.lib
|
(lib.getLib stdenv.cc.cc)
|
||||||
] ++ lib.optionals withGTK3 [
|
] ++ lib.optionals withGTK3 [
|
||||||
gtk3
|
gtk3
|
||||||
];
|
];
|
||||||
|
@ -129,7 +129,7 @@ in stdenv.mkDerivation rec {
|
|||||||
nspr
|
nspr
|
||||||
nss
|
nss
|
||||||
pango
|
pango
|
||||||
stdenv.cc.cc.lib
|
(lib.getLib stdenv.cc.cc)
|
||||||
libqt5pas
|
libqt5pas
|
||||||
qt6.qtbase
|
qt6.qtbase
|
||||||
];
|
];
|
||||||
|
@ -45,7 +45,7 @@ let
|
|||||||
|
|
||||||
nativeBuildInputs = [ makeWrapper ]
|
nativeBuildInputs = [ makeWrapper ]
|
||||||
++ lib.optionals stdenv.hostPlatform.isLinux [ autoPatchelfHook ];
|
++ lib.optionals stdenv.hostPlatform.isLinux [ autoPatchelfHook ];
|
||||||
buildInputs = lib.optionals stdenv.hostPlatform.isLinux [ stdenv.cc.cc.lib openssl protobuf zlib snappy libtirpc ];
|
buildInputs = lib.optionals stdenv.hostPlatform.isLinux [ (lib.getLib stdenv.cc.cc) openssl protobuf zlib snappy libtirpc ];
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir $out
|
mkdir $out
|
||||||
|
@ -72,7 +72,7 @@ stdenv.mkDerivation rec {
|
|||||||
freetype
|
freetype
|
||||||
nspr
|
nspr
|
||||||
glib
|
glib
|
||||||
stdenv.cc.cc.lib
|
stdenv.cc.cc
|
||||||
nss
|
nss
|
||||||
libX11
|
libX11
|
||||||
libXrandr
|
libXrandr
|
||||||
|
@ -69,7 +69,7 @@ in stdenv.mkDerivation (rec {
|
|||||||
expat
|
expat
|
||||||
stdenv.cc.cc
|
stdenv.cc.cc
|
||||||
];
|
];
|
||||||
runtimeDependencies = [ libglvnd stdenv.cc.cc.lib (lib.getLib udev) libnotify libappindicator-gtk3 ];
|
runtimeDependencies = [ libglvnd (lib.getLib stdenv.cc.cc) (lib.getLib udev) libnotify libappindicator-gtk3 ];
|
||||||
|
|
||||||
unpackPhase = "dpkg-deb -x $src .";
|
unpackPhase = "dpkg-deb -x $src .";
|
||||||
|
|
||||||
|
@ -138,7 +138,7 @@ let
|
|||||||
xorg.libXtst
|
xorg.libXtst
|
||||||
xorg.libxkbfile
|
xorg.libxkbfile
|
||||||
xorg.libxshmfence
|
xorg.libxshmfence
|
||||||
] + ":${stdenv.cc.cc.lib}/lib64";
|
] + ":${lib.getLib stdenv.cc.cc}/lib64";
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
gtk3 # needed for GSETTINGS_SCHEMAS_PATH
|
gtk3 # needed for GSETTINGS_SCHEMAS_PATH
|
||||||
|
@ -20,7 +20,7 @@ stdenv.mkDerivation rec {
|
|||||||
];
|
];
|
||||||
|
|
||||||
NIX_LDFLAGS = ''
|
NIX_LDFLAGS = ''
|
||||||
-L${stdenv.cc.cc.lib}/lib -lX11 -lglib-2.0 -lgtk-x11-2.0
|
-L${lib.getLib stdenv.cc.cc}/lib -lX11 -lglib-2.0 -lgtk-x11-2.0
|
||||||
-lgdk-x11-2.0 -lgdk_pixbuf-2.0 -lpango-1.0 -latk-1.0 -lcairo
|
-lgdk-x11-2.0 -lgdk_pixbuf-2.0 -lpango-1.0 -latk-1.0 -lcairo
|
||||||
-lc -lcrypto
|
-lc -lcrypto
|
||||||
'';
|
'';
|
||||||
|
@ -14,7 +14,7 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
libPath =
|
libPath =
|
||||||
lib.makeLibraryPath
|
lib.makeLibraryPath
|
||||||
[ stdenv.cc stdenv.cc.cc.lib ];
|
[ stdenv.cc stdenv.cc.cc ];
|
||||||
|
|
||||||
buildCommand = ''
|
buildCommand = ''
|
||||||
mkdir -p $out/bin/
|
mkdir -p $out/bin/
|
||||||
|
@ -31,7 +31,7 @@ stdenv.mkDerivation {
|
|||||||
e2fsprogs
|
e2fsprogs
|
||||||
gmp
|
gmp
|
||||||
gtk3
|
gtk3
|
||||||
stdenv.cc.cc.lib
|
(lib.getLib stdenv.cc.cc)
|
||||||
libGL
|
libGL
|
||||||
libX11
|
libX11
|
||||||
libgcrypt
|
libgcrypt
|
||||||
|
@ -39,7 +39,7 @@ in stdenv.mkDerivation {
|
|||||||
libXmu
|
libXmu
|
||||||
libXrandr
|
libXrandr
|
||||||
libXrender
|
libXrender
|
||||||
stdenv.cc.cc.lib
|
(lib.getLib stdenv.cc.cc)
|
||||||
];
|
];
|
||||||
|
|
||||||
dontBuild = true;
|
dontBuild = true;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, autoPatchelfHook, fetchurl, nixosTests
|
{ lib, stdenv, autoPatchelfHook, fetchurl, nixosTests
|
||||||
, metaCommon }:
|
, metaCommon }:
|
||||||
|
|
||||||
let
|
let
|
||||||
@ -19,7 +19,7 @@ in stdenv.mkDerivation {
|
|||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
stdenv.cc.cc.lib
|
(lib.getLib stdenv.cc.cc)
|
||||||
];
|
];
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
|
@ -30,7 +30,7 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
nativeBuildInputs = [ autoPatchelfHook ];
|
nativeBuildInputs = [ autoPatchelfHook ];
|
||||||
|
|
||||||
buildInputs = [ libusb1 udev stdenv.cc.cc.lib ];
|
buildInputs = [ libusb1 udev (lib.getLib stdenv.cc.cc) ];
|
||||||
|
|
||||||
unpackPhase = ''
|
unpackPhase = ''
|
||||||
sh "$src" --noexec --target source
|
sh "$src" --noexec --target source
|
||||||
|
@ -35,7 +35,7 @@ pythonPackages.buildPythonApplication rec {
|
|||||||
postFixup = ''
|
postFixup = ''
|
||||||
for file in $(find $out -type f -type f -perm /0111); do
|
for file in $(find $out -type f -type f -perm /0111); do
|
||||||
old_rpath=$(patchelf --print-rpath $file) && \
|
old_rpath=$(patchelf --print-rpath $file) && \
|
||||||
patchelf --set-rpath $old_rpath:${stdenv.cc.cc.lib}/lib $file || true
|
patchelf --set-rpath $old_rpath:${lib.getLib stdenv.cc.cc}/lib $file || true
|
||||||
done
|
done
|
||||||
# Link to the master program
|
# Link to the master program
|
||||||
ln -s $out/bin/quast.py $out/bin/quast
|
ln -s $out/bin/quast.py $out/bin/quast
|
||||||
|
@ -47,7 +47,7 @@ let
|
|||||||
|
|
||||||
patchelf \
|
patchelf \
|
||||||
--set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
--set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
||||||
--set-rpath "${libPath}:$out/eagle-${version}/lib:${stdenv.cc.cc.lib}/lib" \
|
--set-rpath "${libPath}:$out/eagle-${version}/lib:${lib.getLib stdenv.cc.cc}/lib" \
|
||||||
"$out"/eagle-${version}/eagle
|
"$out"/eagle-${version}/eagle
|
||||||
|
|
||||||
mkdir -p "$out"/bin
|
mkdir -p "$out"/bin
|
||||||
|
@ -28,7 +28,7 @@ let
|
|||||||
inherit (sources.libpicoipp) version;
|
inherit (sources.libpicoipp) version;
|
||||||
src = fetchurl { inherit (sources.libpicoipp) url sha256; };
|
src = fetchurl { inherit (sources.libpicoipp) url sha256; };
|
||||||
nativeBuildInputs = [ dpkg autoPatchelfHook ];
|
nativeBuildInputs = [ dpkg autoPatchelfHook ];
|
||||||
buildInputs = [ stdenv.cc.cc.lib ];
|
buildInputs = [ (lib.getLib stdenv.cc.cc) ];
|
||||||
sourceRoot = ".";
|
sourceRoot = ".";
|
||||||
unpackCmd = "dpkg-deb -x $src .";
|
unpackCmd = "dpkg-deb -x $src .";
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
@ -7,7 +7,7 @@ let
|
|||||||
gmp4
|
gmp4
|
||||||
ncurses
|
ncurses
|
||||||
zlib
|
zlib
|
||||||
] + ":${stdenv.cc.cc.lib}/lib64";
|
] + ":${lib.getLib stdenv.cc.cc}/lib64";
|
||||||
|
|
||||||
url = "https://github.com/GaloisInc/saw-script/releases/download";
|
url = "https://github.com/GaloisInc/saw-script/releases/download";
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ let
|
|||||||
libPath = lib.makeLibraryPath
|
libPath = lib.makeLibraryPath
|
||||||
[ stdenv.cc.libc stdenv.cc.cc gtk2 gdk-pixbuf atk pango glib cairo
|
[ stdenv.cc.libc stdenv.cc.cc gtk2 gdk-pixbuf atk pango glib cairo
|
||||||
freetype fontconfig libxml2 gnome2.gtksourceview
|
freetype fontconfig libxml2 gnome2.gtksourceview
|
||||||
] + ":${stdenv.cc.cc.lib}/lib64:$out/libexec";
|
] + ":${lib.getLib stdenv.cc.cc}/lib64:$out/libexec";
|
||||||
|
|
||||||
patchExe = x: ''
|
patchExe = x: ''
|
||||||
patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
||||||
|
@ -54,7 +54,7 @@ stdenv.mkDerivation rec {
|
|||||||
ncurses
|
ncurses
|
||||||
opencv4
|
opencv4
|
||||||
openssl
|
openssl
|
||||||
stdenv.cc.cc.lib
|
(lib.getLib stdenv.cc.cc)
|
||||||
unixODBC
|
unixODBC
|
||||||
xkeyboard_config
|
xkeyboard_config
|
||||||
libxml2
|
libxml2
|
||||||
@ -113,15 +113,15 @@ stdenv.mkDerivation rec {
|
|||||||
# Fix library paths
|
# Fix library paths
|
||||||
cd $out/libexec/${dirName}/Executables
|
cd $out/libexec/${dirName}/Executables
|
||||||
for path in MathKernel math mcc wolfram; do
|
for path in MathKernel math mcc wolfram; do
|
||||||
makeWrapper $out/libexec/${dirName}/Executables/$path $out/bin/$path --set LD_LIBRARY_PATH "${zlib}/lib:${stdenv.cc.cc.lib}/lib:${libssh2}/lib:\''${LD_LIBRARY_PATH}"
|
makeWrapper $out/libexec/${dirName}/Executables/$path $out/bin/$path --set LD_LIBRARY_PATH "${zlib}/lib:${lib.getLib stdenv.cc.cc}/lib:${libssh2}/lib:\''${LD_LIBRARY_PATH}"
|
||||||
done
|
done
|
||||||
|
|
||||||
for path in WolframKernel wolframscript; do
|
for path in WolframKernel wolframscript; do
|
||||||
makeWrapper $out/libexec/${dirName}/SystemFiles/Kernel/Binaries/Linux-x86-64/$path $out/bin/$path --set LD_LIBRARY_PATH "${zlib}/lib:${stdenv.cc.cc.lib}/lib:${libssh2}/lib:\''${LD_LIBRARY_PATH}"
|
makeWrapper $out/libexec/${dirName}/SystemFiles/Kernel/Binaries/Linux-x86-64/$path $out/bin/$path --set LD_LIBRARY_PATH "${zlib}/lib:${lib.getLib stdenv.cc.cc}/lib:${libssh2}/lib:\''${LD_LIBRARY_PATH}"
|
||||||
done
|
done
|
||||||
|
|
||||||
wrapQtApp "$out/libexec/${dirName}/SystemFiles/FrontEnd/Binaries/Linux-x86-64/WolframPlayer" \
|
wrapQtApp "$out/libexec/${dirName}/SystemFiles/FrontEnd/Binaries/Linux-x86-64/WolframPlayer" \
|
||||||
--set LD_LIBRARY_PATH "${zlib}/lib:${stdenv.cc.cc.lib}/lib:${libssh2}/lib:\''${LD_LIBRARY_PATH}" \
|
--set LD_LIBRARY_PATH "${zlib}/lib:${lib.getLib stdenv.cc.cc}/lib:${libssh2}/lib:\''${LD_LIBRARY_PATH}" \
|
||||||
--set QT_XKB_CONFIG_ROOT "${xkeyboard_config}/share/X11/xkb"
|
--set QT_XKB_CONFIG_ROOT "${xkeyboard_config}/share/X11/xkb"
|
||||||
if ! isELF "$out/libexec/${dirName}/SystemFiles/FrontEnd/Binaries/Linux-x86-64/WolframPlayer"; then
|
if ! isELF "$out/libexec/${dirName}/SystemFiles/FrontEnd/Binaries/Linux-x86-64/WolframPlayer"; then
|
||||||
substituteInPlace $out/libexec/${dirName}/SystemFiles/FrontEnd/Binaries/Linux-x86-64/WolframPlayer \
|
substituteInPlace $out/libexec/${dirName}/SystemFiles/FrontEnd/Binaries/Linux-x86-64/WolframPlayer \
|
||||||
|
@ -51,7 +51,7 @@ let
|
|||||||
nativeBuildInputs = [ autoPatchelfHook ];
|
nativeBuildInputs = [ autoPatchelfHook ];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
stdenv.cc.cc.lib
|
(lib.getLib stdenv.cc.cc)
|
||||||
gtk2
|
gtk2
|
||||||
pango
|
pango
|
||||||
cairo
|
cairo
|
||||||
|
@ -107,7 +107,7 @@ let
|
|||||||
dontConfigure = true;
|
dontConfigure = true;
|
||||||
|
|
||||||
libPath = lib.makeLibraryPath [
|
libPath = lib.makeLibraryPath [
|
||||||
stdenv.cc.cc.lib
|
stdenv.cc.cc
|
||||||
curlWithGnuTls
|
curlWithGnuTls
|
||||||
udev
|
udev
|
||||||
libX11
|
libX11
|
||||||
|
@ -85,7 +85,7 @@ let
|
|||||||
for binary in ${builtins.concatStringsSep " " binaries}; do
|
for binary in ${builtins.concatStringsSep " " binaries}; do
|
||||||
patchelf \
|
patchelf \
|
||||||
--interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
--interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
||||||
--set-rpath ${lib.makeLibraryPath neededLibraries}:${libGL}/lib:${stdenv.cc.cc.lib}/lib${lib.optionalString stdenv.hostPlatform.is64bit "64"} \
|
--set-rpath ${lib.makeLibraryPath neededLibraries}:${libGL}/lib:${lib.getLib stdenv.cc.cc}/lib${lib.optionalString stdenv.hostPlatform.is64bit "64"} \
|
||||||
$binary
|
$binary
|
||||||
done
|
done
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@ buildKodiBinaryAddon rec {
|
|||||||
|
|
||||||
extraBuildInputs = [ pugixml rapidjson ];
|
extraBuildInputs = [ pugixml rapidjson ];
|
||||||
|
|
||||||
extraRuntimeDependencies = [ glib nspr nss stdenv.cc.cc.lib ];
|
extraRuntimeDependencies = [ glib nspr nss (lib.getLib stdenv.cc.cc) ];
|
||||||
|
|
||||||
extraInstallPhase = let n = namespace; in ''
|
extraInstallPhase = let n = namespace; in ''
|
||||||
ln -s $out/lib/addons/${n}/libssd_wv.so $out/${addonDir}/${n}/libssd_wv.so
|
ln -s $out/lib/addons/${n}/libssd_wv.so $out/${addonDir}/${n}/libssd_wv.so
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
substitutions = {
|
substitutions = {
|
||||||
dynamicLinker = "${stdenv.cc}/nix-support/dynamic-linker";
|
dynamicLinker = "${stdenv.cc}/nix-support/dynamic-linker";
|
||||||
libPath = lib.makeLibraryPath [
|
libPath = lib.makeLibraryPath [
|
||||||
stdenv.cc.cc.lib
|
stdenv.cc.cc
|
||||||
stdenv.cc.libc
|
stdenv.cc.libc
|
||||||
dotnet-sdk.passthru.icu
|
dotnet-sdk.passthru.icu
|
||||||
zlib
|
zlib
|
||||||
|
@ -42,7 +42,7 @@ else stdenv.mkDerivation rec {
|
|||||||
PATH=${bintools-unwrapped}/bin:${llvmPackages.clang-unwrapped}/bin:$PATH \
|
PATH=${bintools-unwrapped}/bin:${llvmPackages.clang-unwrapped}/bin:$PATH \
|
||||||
clang -arch x86_64 -arch arm64 -arch arm64e \
|
clang -arch x86_64 -arch arm64 -arch arm64e \
|
||||||
-isystem "$SDKROOT/usr/include" \
|
-isystem "$SDKROOT/usr/include" \
|
||||||
-isystem ${llvmPackages.libclang.lib}/lib/clang/*/include \
|
-isystem ${lib.getLib llvmPackages.libclang}/lib/clang/*/include \
|
||||||
"-L$SDKROOT/usr/lib" \
|
"-L$SDKROOT/usr/lib" \
|
||||||
-Wl,-install_name,$out/lib/$libName \
|
-Wl,-install_name,$out/lib/$libName \
|
||||||
-Wall -std=c99 -O3 -fPIC libredirect.c \
|
-Wall -std=c99 -O3 -fPIC libredirect.c \
|
||||||
|
@ -232,7 +232,7 @@ in
|
|||||||
nettle-sys = attrs: {
|
nettle-sys = attrs: {
|
||||||
nativeBuildInputs = [ pkg-config ];
|
nativeBuildInputs = [ pkg-config ];
|
||||||
buildInputs = [ nettle clang ];
|
buildInputs = [ nettle clang ];
|
||||||
LIBCLANG_PATH = "${llvmPackages.libclang.lib}/lib";
|
LIBCLANG_PATH = "${lib.getLib llvmPackages.libclang}/lib";
|
||||||
};
|
};
|
||||||
|
|
||||||
openssl = attrs: {
|
openssl = attrs: {
|
||||||
|
@ -92,7 +92,7 @@
|
|||||||
bindgenHook = callPackage ({}: makeSetupHook {
|
bindgenHook = callPackage ({}: makeSetupHook {
|
||||||
name = "rust-bindgen-hook";
|
name = "rust-bindgen-hook";
|
||||||
substitutions = {
|
substitutions = {
|
||||||
libclang = clang.cc.lib;
|
libclang = (lib.getLib clang.cc);
|
||||||
inherit clang;
|
inherit clang;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -26,7 +26,7 @@ let
|
|||||||
multiArch = true;
|
multiArch = true;
|
||||||
|
|
||||||
multiPkgs = pkgs: with pkgs; [
|
multiPkgs = pkgs: with pkgs; [
|
||||||
stdenv.cc.cc.lib
|
(lib.getLib stdenv.cc.cc)
|
||||||
xorg.libX11
|
xorg.libX11
|
||||||
xorg.libXext
|
xorg.libXext
|
||||||
xorg.libXrandr
|
xorg.libXrandr
|
||||||
|
@ -24,7 +24,7 @@ stdenv.mkDerivation (finalAttrs: {
|
|||||||
autoPatchelfHook
|
autoPatchelfHook
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [ stdenv.cc.cc.lib ];
|
buildInputs = [ (lib.getLib stdenv.cc.cc) ];
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
runHook preInstall
|
runHook preInstall
|
||||||
|
@ -77,7 +77,7 @@ stdenv.mkDerivation (finalAttrs: {
|
|||||||
[
|
[
|
||||||
libdrm
|
libdrm
|
||||||
openssl
|
openssl
|
||||||
stdenv.cc.cc.lib
|
stdenv.cc.cc
|
||||||
zlib
|
zlib
|
||||||
]
|
]
|
||||||
++ (with xorg; [
|
++ (with xorg; [
|
||||||
|
@ -26,7 +26,7 @@ rustPlatform.buildRustPackage rec {
|
|||||||
# No tests exist
|
# No tests exist
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
buildInputs = [ stdenv.cc.cc.lib ];
|
buildInputs = [ (lib.getLib stdenv.cc.cc) ];
|
||||||
nativeBuildInputs = [ autoPatchelfHook ];
|
nativeBuildInputs = [ autoPatchelfHook ];
|
||||||
|
|
||||||
runtimeDependencies = [
|
runtimeDependencies = [
|
||||||
|
@ -46,7 +46,7 @@ stdenv.mkDerivation (finalAttrs: {
|
|||||||
dontStrip = true;
|
dontStrip = true;
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
stdenv.cc.cc.lib
|
(lib.getLib stdenv.cc.cc)
|
||||||
libkrb5
|
libkrb5
|
||||||
curl
|
curl
|
||||||
lttng-ust
|
lttng-ust
|
||||||
|
@ -64,7 +64,7 @@ buildDotnetModule rec {
|
|||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
stdenv.cc.cc.lib
|
(lib.getLib stdenv.cc.cc)
|
||||||
fontconfig
|
fontconfig
|
||||||
openssl
|
openssl
|
||||||
libkrb5
|
libkrb5
|
||||||
|
@ -20,7 +20,7 @@ rustPlatform.buildRustPackage rec {
|
|||||||
cargoHash = "sha256-ma7JVbWSiKfkCXCDwA8DFm2+KPrWR+8nSdgGSqehNg8=";
|
cargoHash = "sha256-ma7JVbWSiKfkCXCDwA8DFm2+KPrWR+8nSdgGSqehNg8=";
|
||||||
|
|
||||||
env = {
|
env = {
|
||||||
LIBCLANG_PATH = "${llvmPackages.libclang.lib}/lib";
|
LIBCLANG_PATH = "${lib.getLib llvmPackages.libclang}/lib";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@ -64,7 +64,7 @@ stdenv.mkDerivation (finalAttrs: {
|
|||||||
# nix provide lib/clang headers in libclang, not in llvm.
|
# nix provide lib/clang headers in libclang, not in llvm.
|
||||||
substituteInPlace casadi/interfaces/clang/CMakeLists.txt --replace-fail \
|
substituteInPlace casadi/interfaces/clang/CMakeLists.txt --replace-fail \
|
||||||
'$'{CLANG_LLVM_LIB_DIR} \
|
'$'{CLANG_LLVM_LIB_DIR} \
|
||||||
${llvmPackages_17.libclang.lib}/lib
|
${lib.getLib llvmPackages_17.libclang}/lib
|
||||||
|
|
||||||
# help casadi find its own libs
|
# help casadi find its own libs
|
||||||
substituteInPlace casadi/core/casadi_os.cpp --replace-fail \
|
substituteInPlace casadi/core/casadi_os.cpp --replace-fail \
|
||||||
|
@ -122,7 +122,7 @@ stdenv.mkDerivation (finalAttrs: {
|
|||||||
isGNU = unwrappedCC.isGNU or false;
|
isGNU = unwrappedCC.isGNU or false;
|
||||||
isCcache = true;
|
isCcache = true;
|
||||||
};
|
};
|
||||||
inherit (unwrappedCC) lib;
|
lib = lib.getLib unwrappedCC;
|
||||||
nativeBuildInputs = [ makeWrapper ];
|
nativeBuildInputs = [ makeWrapper ];
|
||||||
# Unwrapped clang does not have a targetPrefix because it is multi-target
|
# Unwrapped clang does not have a targetPrefix because it is multi-target
|
||||||
# target is decided with argv0.
|
# target is decided with argv0.
|
||||||
|
@ -37,7 +37,7 @@ buildNpmPackage rec {
|
|||||||
] ++ lib.optional stdenv.isLinux autoPatchelfHook; # for onnx libs
|
] ++ lib.optional stdenv.isLinux autoPatchelfHook; # for onnx libs
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
stdenv.cc.cc.lib # for libstdc++.so, required by onnxruntime
|
(lib.getLib stdenv.cc.cc) # for libstdc++.so, required by onnxruntime
|
||||||
vips # or it will try to download from the Internet
|
vips # or it will try to download from the Internet
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -76,7 +76,7 @@ stdenv.mkDerivation (finalAttrs: {
|
|||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
stdenv.cc.cc.lib # Used by Conga and .NET Bridge
|
(lib.getLib stdenv.cc.cc) # Used by Conga and .NET Bridge
|
||||||
ncurses5 # Used by the dyalog binary to correctly display in the terminal
|
ncurses5 # Used by the dyalog binary to correctly display in the terminal
|
||||||
]
|
]
|
||||||
++ lib.optionals htmlRendererSupport [
|
++ lib.optionals htmlRendererSupport [
|
||||||
|
@ -110,7 +110,7 @@ rustPlatform.buildRustPackage rec {
|
|||||||
|
|
||||||
postFixup = ''
|
postFixup = ''
|
||||||
wrapProgram $out/bin/ecc-rs \
|
wrapProgram $out/bin/ecc-rs \
|
||||||
--prefix LIBCLANG_PATH : ${llvmPackages.libclang.lib}/lib \
|
--prefix LIBCLANG_PATH : ${lib.getLib llvmPackages.libclang}/lib \
|
||||||
--prefix PATH : ${lib.makeBinPath (with llvmPackages; [clang bintools-unwrapped])}
|
--prefix PATH : ${lib.makeBinPath (with llvmPackages; [clang bintools-unwrapped])}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
@ -59,7 +59,7 @@ stdenv.mkDerivation (finalAttrs: {
|
|||||||
buildInputs = [
|
buildInputs = [
|
||||||
libpulseaudio
|
libpulseaudio
|
||||||
pipewire
|
pipewire
|
||||||
stdenv.cc.cc.lib
|
(lib.getLib stdenv.cc.cc)
|
||||||
];
|
];
|
||||||
|
|
||||||
patches =
|
patches =
|
||||||
|
@ -27,7 +27,7 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
nativeBuildInputs = [ autoPatchelfHook ];
|
nativeBuildInputs = [ autoPatchelfHook ];
|
||||||
|
|
||||||
buildInputs = [ stdenv.cc.cc.lib ];
|
buildInputs = [ (lib.getLib stdenv.cc.cc) ];
|
||||||
|
|
||||||
sourceRoot = ".";
|
sourceRoot = ".";
|
||||||
|
|
||||||
|
@ -39,7 +39,7 @@ buildRustPackage rec {
|
|||||||
protobuf
|
protobuf
|
||||||
pkg-config
|
pkg-config
|
||||||
clang
|
clang
|
||||||
libclang.lib
|
(lib.getLib libclang)
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
@ -79,7 +79,7 @@ buildRustPackage rec {
|
|||||||
PROTOC = "${buildPackages.protobuf}/bin/protoc";
|
PROTOC = "${buildPackages.protobuf}/bin/protoc";
|
||||||
PROTOC_INCLUDE = "${protobuf}/include";
|
PROTOC_INCLUDE = "${protobuf}/include";
|
||||||
OPENSSL_DIR = openssl.dev;
|
OPENSSL_DIR = openssl.dev;
|
||||||
LIBCLANG_PATH = "${libclang.lib}/lib";
|
LIBCLANG_PATH = "${lib.getLib libclang}/lib";
|
||||||
|
|
||||||
FEDIMINT_BUILD_FORCE_GIT_HASH = "0000000000000000000000000000000000000000";
|
FEDIMINT_BUILD_FORCE_GIT_HASH = "0000000000000000000000000000000000000000";
|
||||||
|
|
||||||
|
@ -119,7 +119,7 @@ buildDotnetModule rec {
|
|||||||
darwin.autoSignDarwinBinariesHook
|
darwin.autoSignDarwinBinariesHook
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [ stdenv.cc.cc.lib ];
|
buildInputs = [ (lib.getLib stdenv.cc.cc) ];
|
||||||
|
|
||||||
dotnet-sdk = dotnetCorePackages.sdk_6_0;
|
dotnet-sdk = dotnetCorePackages.sdk_6_0;
|
||||||
dotnet-runtime = dotnetCorePackages.runtime_6_0;
|
dotnet-runtime = dotnetCorePackages.runtime_6_0;
|
||||||
|
@ -37,7 +37,7 @@ stdenv.mkDerivation (finalAttrs: {
|
|||||||
buildInputs = lib.optionals stdenv.hostPlatform.isLinux [
|
buildInputs = lib.optionals stdenv.hostPlatform.isLinux [
|
||||||
libpulseaudio
|
libpulseaudio
|
||||||
pipewire
|
pipewire
|
||||||
stdenv.cc.cc.lib
|
(lib.getLib stdenv.cc.cc)
|
||||||
];
|
];
|
||||||
|
|
||||||
pnpmDeps = pnpm'.fetchDeps {
|
pnpmDeps = pnpm'.fetchDeps {
|
||||||
|
@ -40,7 +40,7 @@ stdenv.mkDerivation rec {
|
|||||||
preCheck = ''
|
preCheck = ''
|
||||||
# Make `libgcc_s.so' visible for `pthread_cancel'.
|
# Make `libgcc_s.so' visible for `pthread_cancel'.
|
||||||
export LD_LIBRARY_PATH=\
|
export LD_LIBRARY_PATH=\
|
||||||
"$(dirname $(echo ${stdenv.cc.cc.lib}/lib*/libgcc_s.so))''${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH"
|
"$(dirname $(echo ${lib.getLib stdenv.cc.cc}/lib*/libgcc_s.so))''${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
@ -28,7 +28,7 @@ buildNpmPackage rec {
|
|||||||
|
|
||||||
nativeBuildInputs = [ autoPatchelfHook ];
|
nativeBuildInputs = [ autoPatchelfHook ];
|
||||||
|
|
||||||
buildInputs = [ stdenv.cc.cc.lib ];
|
buildInputs = [ (lib.getLib stdenv.cc.cc) ];
|
||||||
|
|
||||||
# from lib/node_modules/igir/node_modules/@node-rs/crc32-linux-x64-musl/crc32.linux-x64-musl.node
|
# from lib/node_modules/igir/node_modules/@node-rs/crc32-linux-x64-musl/crc32.linux-x64-musl.node
|
||||||
# Irrelevant to our use
|
# Irrelevant to our use
|
||||||
|
@ -29,7 +29,7 @@ rustPlatform.buildRustPackage rec {
|
|||||||
libz
|
libz
|
||||||
libxml2
|
libxml2
|
||||||
ncurses
|
ncurses
|
||||||
stdenv.cc.cc.lib
|
(lib.getLib stdenv.cc.cc)
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
|
@ -36,7 +36,7 @@ stdenv.mkDerivation rec {
|
|||||||
let
|
let
|
||||||
libPath = {
|
libPath = {
|
||||||
intune = lib.makeLibraryPath [
|
intune = lib.makeLibraryPath [
|
||||||
stdenv.cc.cc.lib
|
stdenv.cc.cc
|
||||||
libuuid
|
libuuid
|
||||||
xorg.libX11
|
xorg.libX11
|
||||||
curlMinimal
|
curlMinimal
|
||||||
|
@ -151,10 +151,10 @@ in stdenv.mkDerivation (finalAttrs: rec {
|
|||||||
done
|
done
|
||||||
patchelf --set-interpreter $(cat ${stdenv.cc}/nix-support/dynamic-linker) contrib/bash_process-*/$arch/bash_process
|
patchelf --set-interpreter $(cat ${stdenv.cc}/nix-support/dynamic-linker) contrib/bash_process-*/$arch/bash_process
|
||||||
for d in contrib/kodkodi-*/jni/$arch; do
|
for d in contrib/kodkodi-*/jni/$arch; do
|
||||||
patchelf --set-rpath "${lib.concatStringsSep ":" [ "${java}/lib/openjdk/lib/server" "${stdenv.cc.cc.lib}/lib" ]}" $d/*.so
|
patchelf --set-rpath "${lib.concatStringsSep ":" [ "${java}/lib/openjdk/lib/server" "${lib.getLib stdenv.cc.cc}/lib" ]}" $d/*.so
|
||||||
done
|
done
|
||||||
'' + lib.optionalString (stdenv.hostPlatform.system == "x86_64-linux") ''
|
'' + lib.optionalString (stdenv.hostPlatform.system == "x86_64-linux") ''
|
||||||
patchelf --set-rpath "${stdenv.cc.cc.lib}/lib" contrib/z3-*/$arch/z3
|
patchelf --set-rpath "${lib.getLib stdenv.cc.cc}/lib" contrib/z3-*/$arch/z3
|
||||||
'';
|
'';
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
|
@ -25,7 +25,7 @@ rustPlatform.buildRustPackage rec {
|
|||||||
cargoHash = "sha256-EP3fS4lAGOaXJXAM22ZCn4+9Ah8TM1+wvNerKCKByo0=";
|
cargoHash = "sha256-EP3fS4lAGOaXJXAM22ZCn4+9Ah8TM1+wvNerKCKByo0=";
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
stdenv.cc.cc.lib
|
(lib.getLib stdenv.cc.cc)
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user