Added pre release of stratego libraries, fixed support for configureFlags in MinGW, add binary pkg-config distribution for bootstrapping. Optionally use pkgconfig from the stdenv (again, for bootstrapping)

svn path=/nixpkgs/trunk/; revision=6253
This commit is contained in:
Martin Bravenboer
2006-08-26 20:11:31 +00:00
parent ea7977eb84
commit 961b20c1b7
6 changed files with 83 additions and 6 deletions

View File

@@ -0,0 +1,22 @@
{stdenv, fetchurl, pkgconfig, aterm}:
stdenv.mkDerivation {
name = "stratego-libraries-0.17";
src =
fetchurl {
url = http://www.cs.uu.nl/people/martin/stratego-libraries.tar.gz;
md5 = "e99ce18179400c8ef373e8e668a4c576";
};
buildInputs = [pkgconfig aterm];
configureFlags =
if stdenv ? isMinGW && stdenv.isMinGW then "--with-std=C99" else "";
# avoids loads of warnings about too big description fields because of a broken debug format
CFLAGS =
if stdenv ? isMinGW && stdenv.isMinGW then "-O2" else null;
# MinGW bootstrap pkg-config does not support the pkg-config setup-hook yet.
PKG_CONFIG_PATH = aterm + "/lib/pkgconfig";
}