setup-hooks using addToSearchPath
I've accidentially reverted setup-hooks while merging with trunk. Correcting it. svn path=/nixpkgs/branches/stdenv-updates/; revision=9821
This commit is contained in:
parent
c4640d5f49
commit
62676e09eb
8 changed files with 17 additions and 38 deletions
|
@ -1,7 +1,5 @@
|
|||
addPerlLibPath () {
|
||||
if test -d $1/lib/site_perl; then
|
||||
export PERL5LIB="${PERL5LIB}${PERL5LIB:+:}$1/lib/site_perl"
|
||||
fi
|
||||
addToSearchPath PERL5LIB /lib/site_perl "" $1
|
||||
}
|
||||
|
||||
envHooks=(${envHooks[@]} addPerlLibPath)
|
||||
|
|
|
@ -1,8 +1,5 @@
|
|||
addPythonPath() {
|
||||
local p=$1/lib/python2.5/site-packages
|
||||
if test -d $p; then
|
||||
export PYTHONPATH="${PYTHONPATH}${PYTHONPATH:+:}$p"
|
||||
fi
|
||||
addToSearchPathWithCustomDelimiter : PYTHONPATH /lib/python2.5/site-packages "" $1
|
||||
}
|
||||
|
||||
toPythonPath() {
|
||||
|
|
|
@ -1,8 +1,5 @@
|
|||
addPythonPath() {
|
||||
local p=$1/lib/python2.4/site-packages
|
||||
if test -d $p; then
|
||||
export PYTHONPATH="${PYTHONPATH}${PYTHONPATH:+:}$p"
|
||||
fi
|
||||
addToSearchPathWithCustomDelimiter : PYTHONPATH /lib/python2.4/site-packages "" $1
|
||||
}
|
||||
|
||||
toPythonPath() {
|
||||
|
|
|
@ -1,15 +1,16 @@
|
|||
addCMakeParamsInclude()
|
||||
{
|
||||
if [ -d $1/include ]; then
|
||||
export CMAKE_INCLUDE_PATH="${CMAKE_INCLUDE_PATH}${CMAKE_INCLUDE_PATH:+:}$1/include"
|
||||
fi
|
||||
addToSearchPath CMAKE_INCLUDE_PATH /include "" $1
|
||||
}
|
||||
|
||||
addCMakeParamsLibs()
|
||||
{
|
||||
if [ -d $1/lib ]; then
|
||||
export CMAKE_LIBRARY_PATH="${CMAKE_LIBRARY_PATH}${CMAKE_LIBRARY_PATH:+:}$1/lib"
|
||||
fi
|
||||
addToSearchPath CMAKE_LIBRARY_PATH /lib "" $1
|
||||
}
|
||||
|
||||
addCMakeModulePath()
|
||||
{
|
||||
addToSearchPath CMAKE_MODULE_PATH /share/cmake-2.4/Modules "" $1
|
||||
}
|
||||
|
||||
fixCmakeFiles()
|
||||
|
@ -45,4 +46,4 @@ if [ -z "$noCmakeTewaks" ]; then
|
|||
postUnpack="cmakePostUnpack${postUnpack:+; }${postUnpack}"
|
||||
fi;
|
||||
|
||||
envHooks=(${envHooks[@]} addCMakeParamsInclude addCMakeParamsLibs)
|
||||
envHooks=(${envHooks[@]} addCMakeParamsInclude addCMakeParamsLibs addCMakeModulePath)
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
addAclocals () {
|
||||
if test -d $1/share/aclocal; then
|
||||
export ACLOCAL_PATH="$ACLOCAL_PATH${ACLOCAL_PATH:+:}$1/share/aclocal"
|
||||
fi
|
||||
addToSearchPathWithCustomDelimiter : ACLOCAL_PATH /share/aclocal "" $1
|
||||
}
|
||||
|
||||
envHooks=(${envHooks[@]} addAclocals)
|
||||
|
|
|
@ -1,10 +0,0 @@
|
|||
source $stdenv/setup
|
||||
|
||||
postInstall() {
|
||||
test -x $out/nix-support || mkdir $out/nix-support
|
||||
cp $setupHook $out/nix-support/setup-hook
|
||||
}
|
||||
postInstall=postInstall
|
||||
|
||||
genericBuild
|
||||
|
|
@ -1,12 +1,11 @@
|
|||
{stdenv, fetchurl}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "pkgconfig-0.21";
|
||||
builder = ./builder.sh;
|
||||
name = "pkgconfig-0.22";
|
||||
setupHook = ./setup-hook.sh;
|
||||
src = fetchurl {
|
||||
url = http://nix.cs.uu.nl/dist/tarballs/pkg-config-0.21.tar.gz;
|
||||
md5 = "476f45fab1504aac6697aa7785f0ab91";
|
||||
url = http://pkgconfig.freedesktop.org/releases/pkg-config-0.22.tar.gz;
|
||||
sha256 = "1rpb5wygmp0f8nal7y3ga4556i7hkjdslv3wdq04fj30gns621vy";
|
||||
};
|
||||
|
||||
patches = [
|
||||
|
@ -19,3 +18,4 @@ stdenv.mkDerivation {
|
|||
})
|
||||
];
|
||||
}
|
||||
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
addPkgConfigPath () {
|
||||
if test -d $1/lib/pkgconfig; then
|
||||
export PKG_CONFIG_PATH="${PKG_CONFIG_PATH}${PKG_CONFIG_PATH:+:}$1/lib/pkgconfig"
|
||||
fi
|
||||
addToSearchPath PKG_CONFIG_PATH /lib/pkgconfig "" $1
|
||||
}
|
||||
|
||||
envHooks=(${envHooks[@]} addPkgConfigPath)
|
||||
|
|
Loading…
Reference in a new issue