2009-11-05 21:34:31 +00:00
|
|
|
{stdenv, fetchgit, pkgconfig, fontsproto, libdrm, libpciaccess, randrproto, renderproto,
|
|
|
|
videoproto, libX11,
|
|
|
|
xextproto, xf86driproto, xorgserver, xproto, libXvMC, glproto, mesa, automake,
|
2012-07-16 03:40:52 +01:00
|
|
|
autoconf, libtool, libXext, utilmacros, pixman}:
|
2009-11-05 21:34:31 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "xf86-video-unichrome-git";
|
|
|
|
src = fetchgit {
|
2012-07-16 03:40:52 +01:00
|
|
|
url = "git://people.freedesktop.org/~libv/xf86-video-unichrome";
|
2009-11-05 21:34:31 +00:00
|
|
|
md5 = "6e5e0f8ee204af2385a02e502d1ca8f1";
|
|
|
|
rev = "6260e0fc9f0754d101dda014a8f4b5f76f58e978";
|
|
|
|
};
|
|
|
|
buildInputs = [pkgconfig fontsproto libdrm libpciaccess randrproto renderproto
|
|
|
|
videoproto libX11 libXext xextproto xf86driproto xorgserver xproto libXvMC
|
2012-07-16 03:40:52 +01:00
|
|
|
glproto mesa automake autoconf libtool libXext utilmacros pixman ];
|
2009-11-05 21:34:31 +00:00
|
|
|
preConfigure = "chmod +x autogen.sh";
|
|
|
|
prePatch = ''
|
|
|
|
sed s,/bin/bash,/bin/sh, -i git_version.sh
|
|
|
|
'';
|
|
|
|
patches = [ ./configure.patch ];
|
|
|
|
configureScript = "./autogen.sh";
|
2012-07-16 03:40:52 +01:00
|
|
|
CFLAGS="-I${pixman}/include/pixman-1";
|
2009-11-05 21:34:31 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "http://unichrome.sourceforge.net/";
|
|
|
|
description = "Xorg video driver for the S3 Unichrome family of integrated graphics devices";
|
|
|
|
license = "free";
|
|
|
|
maintainers = with stdenv.lib.maintainers; [viric];
|
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
|
|
|
};
|
|
|
|
}
|