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