* Use a setup hook to set PKG_CONFIG_PATH.
svn path=/nixpkgs/trunk/; revision=822
This commit is contained in:
parent
5c5db47443
commit
c8455be838
@ -1,10 +1,13 @@
|
|||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
|
|
||||||
. $stdenv/setup || exit 1
|
. $stdenv/setup
|
||||||
|
|
||||||
tar xvfz $src || exit 1
|
tar xvfz $src
|
||||||
cd pkgconfig-* || exit 1
|
cd pkgconfig-*
|
||||||
./configure --prefix=$out || exit 1
|
./configure --prefix=$out
|
||||||
make || exit 1
|
make
|
||||||
mkdir $out || exit 1
|
mkdir $out
|
||||||
make install || exit 1
|
make install
|
||||||
|
|
||||||
|
mkdir $out/nix-support
|
||||||
|
cp $setupHook $out/nix-support/setup-hook
|
@ -1,10 +1,13 @@
|
|||||||
{stdenv, fetchurl}: derivation {
|
{stdenv, fetchurl}:
|
||||||
|
|
||||||
|
derivation {
|
||||||
name = "pkgconfig-0.15.0";
|
name = "pkgconfig-0.15.0";
|
||||||
system = stdenv.system;
|
system = stdenv.system;
|
||||||
builder = ./builder.sh;
|
builder = ./builder.sh;
|
||||||
|
setupHook = ./setup-hook.sh;
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = http://www.freedesktop.org/software/pkgconfig/releases/pkgconfig-0.15.0.tar.gz;
|
url = http://www.freedesktop.org/software/pkgconfig/releases/pkgconfig-0.15.0.tar.gz;
|
||||||
md5 = "a7e4f60a6657dbc434334deb594cc242";
|
md5 = "a7e4f60a6657dbc434334deb594cc242";
|
||||||
};
|
};
|
||||||
stdenv = stdenv;
|
inherit stdenv;
|
||||||
}
|
}
|
||||||
|
7
pkgs/development/tools/misc/pkgconfig/setup-hook.sh
Normal file
7
pkgs/development/tools/misc/pkgconfig/setup-hook.sh
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
addPkgConfigPath () {
|
||||||
|
if test -d $1/lib/pkgconfig; then
|
||||||
|
export PKG_CONFIG_PATH="${PKG_CONFIG_PATH}${PKG_CONFIG_PATH:+:}$1/lib/pkgconfig"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
envHooks=(${envHooks[@]} addPkgConfigPath)
|
Loading…
Reference in New Issue
Block a user