2012-06-13 09:09:10 +02:00
|
|
|
{stdenv, fetchurl, automake, vanilla ? false}:
|
2004-03-09 11:45:01 +01:00
|
|
|
|
2012-01-21 02:29:17 +01:00
|
|
|
stdenv.mkDerivation (rec {
|
2008-10-12 21:15:29 +02:00
|
|
|
name = "pkg-config-0.23";
|
2008-03-06 17:22:24 +01:00
|
|
|
|
2004-03-09 11:45:01 +01:00
|
|
|
setupHook = ./setup-hook.sh;
|
2008-03-06 17:22:24 +01:00
|
|
|
|
2003-11-06 16:24:19 +01:00
|
|
|
src = fetchurl {
|
2008-10-12 21:15:29 +02:00
|
|
|
url = "http://pkgconfig.freedesktop.org/releases/${name}.tar.gz";
|
|
|
|
sha256 = "0lrvk17724mc2nzpaa0vwybarrl50r7qdnr4h6jijm50srrf1808";
|
2003-11-06 16:24:19 +01:00
|
|
|
};
|
2007-12-01 21:29:42 +01:00
|
|
|
|
2012-06-13 09:09:10 +02:00
|
|
|
patches = if vanilla then [] else [
|
2008-10-13 14:51:04 +02:00
|
|
|
# Process Requires.private properly, see
|
|
|
|
# http://bugs.freedesktop.org/show_bug.cgi?id=4738.
|
|
|
|
./requires-private.patch
|
|
|
|
];
|
|
|
|
|
2008-03-06 17:22:24 +01:00
|
|
|
meta = {
|
|
|
|
description = "A tool that allows packages to find out information about other packages";
|
|
|
|
homepage = http://pkg-config.freedesktop.org/wiki/;
|
2012-01-28 15:39:56 +01:00
|
|
|
platforms = stdenv.lib.platforms.all;
|
2008-03-07 16:40:07 +01:00
|
|
|
};
|
|
|
|
|
2012-01-21 02:29:17 +01:00
|
|
|
} // (if stdenv.system == "mips64el-linux" then
|
|
|
|
{
|
|
|
|
preConfigure = ''
|
|
|
|
cp -v ${automake}/share/automake*/config.{sub,guess} .
|
|
|
|
'';
|
|
|
|
} else {}))
|