2010-07-29 09:21:21 +01:00
|
|
|
{stdenv, fetchurl, xorg, automake, autoconf, libtool, makeOverridable}:
|
2008-10-25 08:19:07 +01:00
|
|
|
{
|
2008-10-29 09:42:11 +00:00
|
|
|
xf86videoati = {src, suffix}:
|
2010-07-29 09:21:21 +01:00
|
|
|
makeOverridable stdenv.mkDerivation {
|
2008-10-25 08:19:07 +01:00
|
|
|
name = "xf86-video-ati-${suffix}";
|
|
|
|
buildInputs = xorg.xf86videoati.buildInputs ++
|
|
|
|
[autoconf automake libtool];
|
|
|
|
builder = ./builder.sh;
|
|
|
|
inherit src;
|
|
|
|
preConfigure = ''
|
|
|
|
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -DPACKAGE_VERSION_MAJOR=6"
|
|
|
|
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -DPACKAGE_VERSION_MINOR=9"
|
|
|
|
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -DPACKAGE_VERSION_PATCHLEVEL=999"
|
|
|
|
|
|
|
|
sed -e 's/@DRIVER_MAN_SUFFIX@/man/g' -i man/Makefile.am
|
|
|
|
export DRIVER_MAN_DIR=$out/share/man/man5
|
|
|
|
|
|
|
|
./autogen.sh
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|