mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-10 08:39:08 +03:00
* No longer need this.
svn path=/nixpkgs/trunk/; revision=306
This commit is contained in:
parent
40bc2cc9b6
commit
5cf73363ea
@ -1,31 +0,0 @@
|
||||
addtoenv()
|
||||
{
|
||||
envpkgs="$envpkgs $1"
|
||||
|
||||
if test -d $1/bin; then
|
||||
export PATH=$1/bin:$PATH
|
||||
fi
|
||||
|
||||
if test -d $1/lib; then
|
||||
export NIX_LDFLAGS="-L $1/lib -Wl,-rpath,$1/lib $NIX_LDFLAGS"
|
||||
fi
|
||||
|
||||
if test -d $1/lib/pkgconfig; then
|
||||
export PKG_CONFIG_PATH=$1/lib/pkgconfig:$PKG_CONFIG_PATH
|
||||
fi
|
||||
|
||||
if test -f $1/envpkgs; then
|
||||
for i in $(cat $1/envpkgs); do
|
||||
addtoenv $i
|
||||
done
|
||||
fi
|
||||
}
|
||||
|
||||
oldenvpkgs=$envpkgs
|
||||
envpkgs=
|
||||
|
||||
for i in $oldenvpkgs; do
|
||||
addtoenv $i
|
||||
done
|
||||
|
||||
export NIX_LDFLAGS="-Wl,-rpath,$out/lib $NIX_LDFLAGS"
|
Loading…
Reference in New Issue
Block a user