treewide: Mass replace 'zlib}/lib' to refer the 'out' output
This commit is contained in:
parent
0f4244f51f
commit
ed7dbb46a8
@ -29,7 +29,7 @@ stdenv.mkDerivation rec {
|
||||
'';
|
||||
|
||||
preBuild=''
|
||||
export CPATH=${zlib}/lib
|
||||
export CPATH=${zlib.out}/lib
|
||||
'';
|
||||
|
||||
buildInputs = [ SDL alsaLib autoconf automake libjack2 perl zlib zziplib ];
|
||||
|
@ -69,7 +69,7 @@ stdenv.mkDerivation rec {
|
||||
postFixup = ''
|
||||
bin="$out/libexec/TeXmacs/bin/texmacs.bin"
|
||||
rpath=$(patchelf --print-rpath "$bin")
|
||||
patchelf --set-rpath "$rpath:${zlib}/lib" "$bin"
|
||||
patchelf --set-rpath "$rpath:${zlib.out}/lib" "$bin"
|
||||
'';
|
||||
|
||||
meta = {
|
||||
|
@ -142,7 +142,7 @@ stdenv.mkDerivation ({
|
||||
} // (if langJava then {
|
||||
postConfigure = ''
|
||||
make configure-gcc
|
||||
sed -i gcc/Makefile -e 's@^CFLAGS = .*@& -I${zlib}/include@ ; s@^LDFLAGS = .*@& -L${zlib}/lib@'
|
||||
sed -i gcc/Makefile -e 's@^CFLAGS = .*@& -I${zlib}/include@ ; s@^LDFLAGS = .*@& -L${zlib.out}/lib@'
|
||||
sed -i gcc/Makefile -e 's@^CFLAGS = .*@& -I${boehmgc}/include@ ; s@^LDFLAGS = .*@& -L${boehmgc.out}/lib -lgc@'
|
||||
'';
|
||||
} else {})
|
||||
|
@ -12,7 +12,7 @@ stdenv.mkDerivation rec {
|
||||
|
||||
postInstall =
|
||||
'' sed -i "$out/lib/pkgconfig/tokyocabinet.pc" \
|
||||
-e 's|-lz|-L${zlib}/lib -lz|g;
|
||||
-e 's|-lz|-L${zlib.out}/lib -lz|g;
|
||||
s|-lbz2|-L${bzip2.out}/lib -lbz2|g'
|
||||
'';
|
||||
|
||||
|
@ -55,7 +55,7 @@ stdenv.mkDerivation rec {
|
||||
\( -type f -a -name "*.so*" \) -o \
|
||||
\( -type f -a -perm -0100 \) \
|
||||
\) -exec patchelf --set-interpreter ${stdenv.cc.libc.out}/lib/ld-*so.? \
|
||||
--set-rpath ${zlib}/lib:${ncurses.lib}/lib {} \;
|
||||
--set-rpath ${zlib.out}/lib:${ncurses.lib}/lib {} \;
|
||||
# fix ineffective PROGDIR / MYNDKDIR determination
|
||||
for i in ndk-build ndk-gdb ndk-gdb-py
|
||||
do
|
||||
|
@ -23,7 +23,7 @@ stdenv.mkDerivation {
|
||||
postPatch = ''
|
||||
substitute ${./META} META --subst-var-by VERSION "${version}"
|
||||
substituteInPlace Makefile \
|
||||
--subst-var-by ZLIB_LIBDIR "${zlib}/lib" \
|
||||
--subst-var-by ZLIB_LIBDIR "${zlib.out}/lib" \
|
||||
--subst-var-by ZLIB_INCLUDE "${zlib}/include"
|
||||
'';
|
||||
|
||||
|
@ -12,7 +12,7 @@ buildPerlPackage rec {
|
||||
cat > config.in <<EOF
|
||||
BUILD_ZLIB = False
|
||||
INCLUDE = ${zlib}/include
|
||||
LIB = ${zlib}/lib
|
||||
LIB = ${zlib.out}/lib
|
||||
OLD_ZLIB = False
|
||||
GZIP_OS_CODE = AUTO_DETECT
|
||||
EOF
|
||||
|
@ -39,7 +39,7 @@ stdenv.mkDerivation {
|
||||
./install.sh "--prefix=$out"
|
||||
'' + (if stdenv.isLinux then ''
|
||||
patchelf --interpreter "${stdenv.glibc.out}/lib/${stdenv.cc.dynamicLinker}" \
|
||||
--set-rpath "${stdenv.cc.cc}/lib/:${stdenv.cc.cc}/lib64/:${zlib}/lib" \
|
||||
--set-rpath "${stdenv.cc.cc}/lib/:${stdenv.cc.cc}/lib64/:${zlib.out}/lib" \
|
||||
"$out/bin/cargo"
|
||||
'' else "") + postInstall;
|
||||
}
|
||||
|
@ -34,7 +34,7 @@ stdenv.mkDerivation rec {
|
||||
prefixKey = "--prefix-dir=";
|
||||
|
||||
configureFlags = [
|
||||
"--with-zlib=${zlib}/lib/libz.a"
|
||||
"--with-zlib=${zlib.out}/lib/libz.a"
|
||||
"--without-liblzo2"
|
||||
];
|
||||
|
||||
|
@ -40,7 +40,7 @@ stdenv.mkDerivation rec {
|
||||
popd
|
||||
substituteInPlace $out/tools/cli/main.js \
|
||||
--replace "@INTERPRETER@" "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
||||
--replace "@RPATH@" "${stdenv.cc.cc}/lib:${zlib}/lib" \
|
||||
--replace "@RPATH@" "${stdenv.cc.cc}/lib:${zlib.out}/lib" \
|
||||
--replace "@PATCHELF@" "${patchelf}/bin/patchelf"
|
||||
|
||||
# Patch node.
|
||||
@ -54,7 +54,7 @@ stdenv.mkDerivation rec {
|
||||
for p in $devBundle/mongodb/bin/mongo{,d}; do
|
||||
patchelf \
|
||||
--set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) \
|
||||
--set-rpath "$(patchelf --print-rpath $p):${stdenv.cc.cc}/lib:${zlib}/lib" \
|
||||
--set-rpath "$(patchelf --print-rpath $p):${stdenv.cc.cc}/lib:${zlib.out}/lib" \
|
||||
$p
|
||||
done
|
||||
|
||||
|
@ -201,7 +201,7 @@ rec {
|
||||
cp -d ${gmpxx}/lib/libgmp*.so* $out/lib
|
||||
cp -d ${mpfr.out}/lib/libmpfr*.so* $out/lib
|
||||
cp -d ${libmpc}/lib/libmpc*.so* $out/lib
|
||||
cp -d ${zlib}/lib/libz.so* $out/lib
|
||||
cp -d ${zlib.out}/lib/libz.so* $out/lib
|
||||
cp -d ${libelf}/lib/libelf.so* $out/lib
|
||||
|
||||
# TBD: Why are these needed for cross but not native tools?
|
||||
|
@ -114,7 +114,7 @@ rec {
|
||||
cp -d ${gmpxx}/lib/libgmp*.so* $out/lib
|
||||
cp -d ${mpfr.out}/lib/libmpfr*.so* $out/lib
|
||||
cp -d ${libmpc}/lib/libmpc*.so* $out/lib
|
||||
cp -d ${zlib}/lib/libz.so* $out/lib
|
||||
cp -d ${zlib.out}/lib/libz.so* $out/lib
|
||||
cp -d ${libelf}/lib/libelf.so* $out/lib
|
||||
|
||||
# Copy binutils.
|
||||
|
@ -43,7 +43,7 @@ stdenv.mkDerivation rec {
|
||||
|
||||
${patchelf}/bin/patchelf \
|
||||
--set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
||||
--set-rpath "${zlib}/lib:${p.gcclib}" \
|
||||
--set-rpath "${zlib.out}/lib:${p.gcclib}" \
|
||||
$out/bin/yandex-disk
|
||||
'';
|
||||
|
||||
|
@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
|
||||
# '';
|
||||
|
||||
makefile = "Makefile.unx";
|
||||
makeFlags = "ZPATH=${zlib}/lib";
|
||||
makeFlags = "ZPATH=${zlib.out}/lib";
|
||||
|
||||
buildInputs = [ zlib ];
|
||||
|
||||
|
@ -16,7 +16,7 @@ stdenv.mkDerivation {
|
||||
nativeBuildInputs = [ bison pkgconfig ];
|
||||
buildInputs = [ glib gtk libxml2 gettext zlib ];
|
||||
|
||||
NIX_LDFLAGS = "-rpath ${zlib}/lib";
|
||||
NIX_LDFLAGS = "-rpath ${zlib.out}/lib";
|
||||
configureScript = "./Configure";
|
||||
dontAddPrefix = true;
|
||||
configureFlags = "-d -e -D prefix=$out -D gtkversion=2 -D official=true";
|
||||
|
Loading…
Reference in New Issue
Block a user