* Revert the setup hook changes on the trunk (but they remain on the
stdenv-updates branch). svn path=/nixpkgs/trunk/; revision=9652
This commit is contained in:
parent
93ce7c7a69
commit
7a424b47f6
@ -8,11 +8,7 @@ stdenv.mkDerivation {
|
|||||||
sha256 = "c10e657fbd884eae4f01b91b32407bbfcbcae0ad5017fb24ea365aebc71d2af1";
|
sha256 = "c10e657fbd884eae4f01b91b32407bbfcbcae0ad5017fb24ea365aebc71d2af1";
|
||||||
};
|
};
|
||||||
|
|
||||||
preConfigure = "
|
buildInputs = [python perl ncurses x11 bzip2 zlib openssl spidermonkey guile];
|
||||||
touch config.log ; rm /tmp/elinks.config.log; ln -f config.log /tmp/elinks.config.log";
|
|
||||||
|
|
||||||
buildInputs = [python perl ncurses x11 bzip2 zlib openssl spidermonkey guile
|
|
||||||
libtool];
|
|
||||||
configureFlags = "--enable-finger --enable-html-highlight --with-guile
|
configureFlags = "--enable-finger --enable-html-highlight --with-guile
|
||||||
--with-perl --with-python --enable-gopher --enable-cgi --enable-bittorrent
|
--with-perl --with-python --enable-gopher --enable-cgi --enable-bittorrent
|
||||||
--enable-nntp --with-openssl=${openssl}";
|
--enable-nntp --with-openssl=${openssl}";
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
addPerlLibPath () {
|
addPerlLibPath () {
|
||||||
addToSearchPath PERL5LIB /lib/site_perl "" $1
|
if test -d $1/lib/site_perl; then
|
||||||
|
export PERL5LIB="${PERL5LIB}${PERL5LIB:+:}$1/lib/site_perl"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
envHooks=(${envHooks[@]} addPerlLibPath)
|
envHooks=(${envHooks[@]} addPerlLibPath)
|
||||||
|
@ -1,5 +1,8 @@
|
|||||||
addPythonPath() {
|
addPythonPath() {
|
||||||
addToSearchPathWithCustomDelimiter : PYTHONPATH /lib/python2.5/site-packages "" $1
|
local p=$1/lib/python2.5/site-packages
|
||||||
|
if test -d $p; then
|
||||||
|
export PYTHONPATH="${PYTHONPATH}${PYTHONPATH:+:}$p"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
toPythonPath() {
|
toPythonPath() {
|
||||||
|
@ -1,5 +1,8 @@
|
|||||||
addPythonPath() {
|
addPythonPath() {
|
||||||
addToSearchPathWithCustomDelimiter : PYTHONPATH /lib/python2.4/site-packages "" $1
|
local p=$1/lib/python2.4/site-packages
|
||||||
|
if test -d $p; then
|
||||||
|
export PYTHONPATH="${PYTHONPATH}${PYTHONPATH:+:}$p"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
toPythonPath() {
|
toPythonPath() {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
args: with args; stdenv.mkDerivation {
|
{stdenv, fetchurl, perl}: stdenv.mkDerivation {
|
||||||
name = "openssl-0.9.8g";
|
name = "openssl-0.9.8g";
|
||||||
builder = ./builder.sh;
|
builder = ./builder.sh;
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
@ -6,5 +6,4 @@ args: with args; stdenv.mkDerivation {
|
|||||||
sha256 = "1w0wj3pgg9ga0hay3jdxs9sl17bfw307b6qvkxn735fy8ml8h9hf";
|
sha256 = "1w0wj3pgg9ga0hay3jdxs9sl17bfw307b6qvkxn735fy8ml8h9hf";
|
||||||
};
|
};
|
||||||
buildInputs = [perl];
|
buildInputs = [perl];
|
||||||
propagatedBuildInputs = [gmp];
|
|
||||||
}
|
}
|
||||||
|
@ -1,16 +1,15 @@
|
|||||||
addCMakeParamsInclude()
|
addCMakeParamsInclude()
|
||||||
{
|
{
|
||||||
addToSearchPath CMAKE_INCLUDE_PATH /include "" $1
|
if [ -d $1/include ]; then
|
||||||
|
export CMAKE_INCLUDE_PATH="${CMAKE_INCLUDE_PATH}${CMAKE_INCLUDE_PATH:+:}$1/include"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
addCMakeParamsLibs()
|
addCMakeParamsLibs()
|
||||||
{
|
{
|
||||||
addToSearchPath CMAKE_LIBRARY_PATH /lib "" $1
|
if [ -d $1/lib ]; then
|
||||||
}
|
export CMAKE_LIBRARY_PATH="${CMAKE_LIBRARY_PATH}${CMAKE_LIBRARY_PATH:+:}$1/lib"
|
||||||
|
fi
|
||||||
addCMakeModulePath()
|
|
||||||
{
|
|
||||||
addToSearchPath CMAKE_MODULE_PATH /share/cmake-2.4/Modules "" $1
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fixCmakeFiles()
|
fixCmakeFiles()
|
||||||
@ -46,4 +45,4 @@ if [ -z "$noCmakeTewaks" ]; then
|
|||||||
postUnpack="cmakePostUnpack${postUnpack:+; }${postUnpack}"
|
postUnpack="cmakePostUnpack${postUnpack:+; }${postUnpack}"
|
||||||
fi;
|
fi;
|
||||||
|
|
||||||
envHooks=(${envHooks[@]} addCMakeParamsInclude addCMakeParamsLibs addCMakeModulePath)
|
envHooks=(${envHooks[@]} addCMakeParamsInclude addCMakeParamsLibs)
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
addAclocals () {
|
addAclocals () {
|
||||||
addToSearchPathWithCustomDelimiter : ACLOCAL_PATH /share/aclocal "" $1
|
if test -d $1/share/aclocal; then
|
||||||
|
export ACLOCAL_PATH="$ACLOCAL_PATH${ACLOCAL_PATH:+:}$1/share/aclocal"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
envHooks=(${envHooks[@]} addAclocals)
|
envHooks=(${envHooks[@]} addAclocals)
|
||||||
|
10
pkgs/development/tools/misc/pkgconfig/builder.sh
Normal file
10
pkgs/development/tools/misc/pkgconfig/builder.sh
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
source $stdenv/setup
|
||||||
|
|
||||||
|
postInstall() {
|
||||||
|
test -x $out/nix-support || mkdir $out/nix-support
|
||||||
|
cp $setupHook $out/nix-support/setup-hook
|
||||||
|
}
|
||||||
|
postInstall=postInstall
|
||||||
|
|
||||||
|
genericBuild
|
||||||
|
|
@ -1,18 +1,14 @@
|
|||||||
{stdenv, fetchurl}:
|
{stdenv, fetchurl}:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "pkgconfig-0.22";
|
name = "pkgconfig-0.21";
|
||||||
|
builder = ./builder.sh;
|
||||||
setupHook = ./setup-hook.sh;
|
setupHook = ./setup-hook.sh;
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = http://pkgconfig.freedesktop.org/releases/pkg-config-0.22.tar.gz;
|
url = http://nix.cs.uu.nl/dist/tarballs/pkg-config-0.21.tar.gz;
|
||||||
sha256 = "1rpb5wygmp0f8nal7y3ga4556i7hkjdslv3wdq04fj30gns621vy";
|
md5 = "476f45fab1504aac6697aa7785f0ab91";
|
||||||
};
|
};
|
||||||
|
|
||||||
postInstall = "
|
|
||||||
ensureDir \$out/nix-support
|
|
||||||
cp \$setupHook \$out/nix-support/setup-hook
|
|
||||||
";
|
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
# Process Requires.private properly, see
|
# Process Requires.private properly, see
|
||||||
# http://bugs.freedesktop.org/show_bug.cgi?id=4738.
|
# http://bugs.freedesktop.org/show_bug.cgi?id=4738.
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
addPkgConfigPath () {
|
addPkgConfigPath () {
|
||||||
addToSearchPath PKG_CONFIG_PATH /lib/pkgconfig "" $1
|
if test -d $1/lib/pkgconfig; then
|
||||||
|
export PKG_CONFIG_PATH="${PKG_CONFIG_PATH}${PKG_CONFIG_PATH:+:}$1/lib/pkgconfig"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
envHooks=(${envHooks[@]} addPkgConfigPath)
|
envHooks=(${envHooks[@]} addPkgConfigPath)
|
||||||
|
@ -2146,7 +2146,7 @@ rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
openssl = import ../development/libraries/openssl {
|
openssl = import ../development/libraries/openssl {
|
||||||
inherit fetchurl stdenv perl gmp;
|
inherit fetchurl stdenv perl;
|
||||||
};
|
};
|
||||||
|
|
||||||
pangoxsl = import ../development/libraries/pangoxsl {
|
pangoxsl = import ../development/libraries/pangoxsl {
|
||||||
@ -3604,7 +3604,7 @@ rec {
|
|||||||
|
|
||||||
elinks = import ../applications/networking/browsers/elinks {
|
elinks = import ../applications/networking/browsers/elinks {
|
||||||
inherit stdenv fetchurl python perl ncurses x11 zlib openssl spidermonkey
|
inherit stdenv fetchurl python perl ncurses x11 zlib openssl spidermonkey
|
||||||
guile bzip2 libtool;
|
guile bzip2;
|
||||||
};
|
};
|
||||||
|
|
||||||
emacs = emacs22;
|
emacs = emacs22;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user