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