* 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";
|
||||
};
|
||||
|
||||
preConfigure = "
|
||||
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];
|
||||
buildInputs = [python perl ncurses x11 bzip2 zlib openssl spidermonkey guile];
|
||||
configureFlags = "--enable-finger --enable-html-highlight --with-guile
|
||||
--with-perl --with-python --enable-gopher --enable-cgi --enable-bittorrent
|
||||
--enable-nntp --with-openssl=${openssl}";
|
||||
|
@ -1,5 +1,7 @@
|
||||
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)
|
||||
|
@ -1,5 +1,8 @@
|
||||
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() {
|
||||
|
@ -1,5 +1,8 @@
|
||||
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() {
|
||||
|
@ -1,4 +1,4 @@
|
||||
args: with args; stdenv.mkDerivation {
|
||||
{stdenv, fetchurl, perl}: stdenv.mkDerivation {
|
||||
name = "openssl-0.9.8g";
|
||||
builder = ./builder.sh;
|
||||
src = fetchurl {
|
||||
@ -6,5 +6,4 @@ args: with args; stdenv.mkDerivation {
|
||||
sha256 = "1w0wj3pgg9ga0hay3jdxs9sl17bfw307b6qvkxn735fy8ml8h9hf";
|
||||
};
|
||||
buildInputs = [perl];
|
||||
propagatedBuildInputs = [gmp];
|
||||
}
|
||||
|
@ -1,16 +1,15 @@
|
||||
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()
|
||||
{
|
||||
addToSearchPath CMAKE_LIBRARY_PATH /lib "" $1
|
||||
}
|
||||
|
||||
addCMakeModulePath()
|
||||
{
|
||||
addToSearchPath CMAKE_MODULE_PATH /share/cmake-2.4/Modules "" $1
|
||||
if [ -d $1/lib ]; then
|
||||
export CMAKE_LIBRARY_PATH="${CMAKE_LIBRARY_PATH}${CMAKE_LIBRARY_PATH:+:}$1/lib"
|
||||
fi
|
||||
}
|
||||
|
||||
fixCmakeFiles()
|
||||
@ -46,4 +45,4 @@ if [ -z "$noCmakeTewaks" ]; then
|
||||
postUnpack="cmakePostUnpack${postUnpack:+; }${postUnpack}"
|
||||
fi;
|
||||
|
||||
envHooks=(${envHooks[@]} addCMakeParamsInclude addCMakeParamsLibs addCMakeModulePath)
|
||||
envHooks=(${envHooks[@]} addCMakeParamsInclude addCMakeParamsLibs)
|
||||
|
@ -1,5 +1,7 @@
|
||||
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)
|
||||
|
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.mkDerivation {
|
||||
name = "pkgconfig-0.22";
|
||||
name = "pkgconfig-0.21";
|
||||
builder = ./builder.sh;
|
||||
setupHook = ./setup-hook.sh;
|
||||
src = fetchurl {
|
||||
url = http://pkgconfig.freedesktop.org/releases/pkg-config-0.22.tar.gz;
|
||||
sha256 = "1rpb5wygmp0f8nal7y3ga4556i7hkjdslv3wdq04fj30gns621vy";
|
||||
url = http://nix.cs.uu.nl/dist/tarballs/pkg-config-0.21.tar.gz;
|
||||
md5 = "476f45fab1504aac6697aa7785f0ab91";
|
||||
};
|
||||
|
||||
postInstall = "
|
||||
ensureDir \$out/nix-support
|
||||
cp \$setupHook \$out/nix-support/setup-hook
|
||||
";
|
||||
|
||||
patches = [
|
||||
# Process Requires.private properly, see
|
||||
# http://bugs.freedesktop.org/show_bug.cgi?id=4738.
|
||||
|
@ -1,5 +1,7 @@
|
||||
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)
|
||||
|
@ -2146,7 +2146,7 @@ rec {
|
||||
};
|
||||
|
||||
openssl = import ../development/libraries/openssl {
|
||||
inherit fetchurl stdenv perl gmp;
|
||||
inherit fetchurl stdenv perl;
|
||||
};
|
||||
|
||||
pangoxsl = import ../development/libraries/pangoxsl {
|
||||
@ -3604,7 +3604,7 @@ rec {
|
||||
|
||||
elinks = import ../applications/networking/browsers/elinks {
|
||||
inherit stdenv fetchurl python perl ncurses x11 zlib openssl spidermonkey
|
||||
guile bzip2 libtool;
|
||||
guile bzip2;
|
||||
};
|
||||
|
||||
emacs = emacs22;
|
||||
|
Loading…
Reference in New Issue
Block a user