diff options
author | Michael Raskin <7c6f434c@mail.ru> | 2008-10-25 07:19:07 +0000 |
---|---|---|
committer | Michael Raskin <7c6f434c@mail.ru> | 2008-10-25 07:19:07 +0000 |
commit | 8c3f202c09e234b02ff10edd03c27451722f9c54 (patch) | |
tree | 78f1ae8fc6b1ab335a47a539bc81ed3be99e3b8c /pkgs/servers | |
parent | f3cb5427d47dd67f170d39fffa46673b923dff3e (diff) |
Made it easy to build custom xf86videoati version
svn path=/nixpkgs/trunk/; revision=13112
Diffstat (limited to 'pkgs/servers')
-rw-r--r-- | pkgs/servers/x11/xorg/replacements.nix | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/pkgs/servers/x11/xorg/replacements.nix b/pkgs/servers/x11/xorg/replacements.nix new file mode 100644 index 0000000000000..bf8a78dfbb179 --- /dev/null +++ b/pkgs/servers/x11/xorg/replacements.nix @@ -0,0 +1,21 @@ +{stdenv, fetchurl, xorg, automake, autoconf, libtool, composedArgsAndFun, ...}: +{ + xf86videoati = {src, suffix, ...}: + composedArgsAndFun 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 + ''; + }; +} |