1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-25 07:00:43 +00:00
nixpkgs/pkgs/servers/x11/xorg/replacements.nix
Eelco Dolstra ba498d4a43 * composedArgsAndFun -> makeOverridable for consistency.
* Rename a few single-version packages to "default.nix".

svn path=/nixpkgs/trunk/; revision=22803
2010-07-29 08:21:21 +00:00

22 lines
760 B
Nix

{stdenv, fetchurl, xorg, automake, autoconf, libtool, makeOverridable}:
{
xf86videoati = {src, suffix}:
makeOverridable stdenv.mkDerivation {
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
'';
};
}