Made it easy to build custom xf86videoati version
svn path=/nixpkgs/trunk/; revision=13112
This commit is contained in:
parent
f3cb5427d4
commit
8c3f202c09
21
pkgs/servers/x11/xorg/replacements.nix
Normal file
21
pkgs/servers/x11/xorg/replacements.nix
Normal file
@ -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
|
||||
'';
|
||||
};
|
||||
}
|
@ -5678,6 +5678,10 @@ let
|
||||
xkeyboard_config dbus hal;
|
||||
});
|
||||
|
||||
xorgReplacements = composedArgsAndFun (import ../servers/x11/xorg/replacements.nix) {
|
||||
inherit fetchurl stdenv automake autoconf libtool xorg composedArgsAndFun;
|
||||
};
|
||||
|
||||
zabbixAgent = import ../servers/monitoring/zabbix {
|
||||
inherit fetchurl stdenv;
|
||||
enableServer = false;
|
||||
|
Loading…
Reference in New Issue
Block a user