xorg.xorgserver: enable glamor support

This commit is contained in:
Gabriel Ebner 2016-07-30 10:40:30 +02:00
parent 40b838b94d
commit 5c9309c231
5 changed files with 9 additions and 24 deletions

View File

@ -14,8 +14,8 @@ let
# Map video driver names to driver packages. FIXME: move into card-specific modules. # Map video driver names to driver packages. FIXME: move into card-specific modules.
knownVideoDrivers = { knownVideoDrivers = {
virtualbox = { modules = [ kernelPackages.virtualboxGuestAdditions ]; driverName = "vboxvideo"; }; virtualbox = { modules = [ kernelPackages.virtualboxGuestAdditions ]; driverName = "vboxvideo"; };
ati = { modules = with pkgs.xorg; [ xf86videoati glamoregl ]; }; ati = { modules = with pkgs.xorg; [ xf86videoati ]; };
intel = { modules = with pkgs.xorg; [ xf86videointel glamoregl ]; }; intel = { modules = with pkgs.xorg; [ xf86videointel ]; };
modesetting = { modules = []; }; modesetting = { modules = []; };
}; };
@ -512,7 +512,7 @@ in
XKB_BINDIR = "${xorg.xkbcomp}/bin"; # Needed for the Xkb extension. XKB_BINDIR = "${xorg.xkbcomp}/bin"; # Needed for the Xkb extension.
XORG_DRI_DRIVER_PATH = "/run/opengl-driver/lib/dri"; # !!! Depends on the driver selected at runtime. XORG_DRI_DRIVER_PATH = "/run/opengl-driver/lib/dri"; # !!! Depends on the driver selected at runtime.
LD_LIBRARY_PATH = concatStringsSep ":" ( LD_LIBRARY_PATH = concatStringsSep ":" (
[ "${xorg.libX11.out}/lib" "${xorg.libXext.out}/lib" ] [ "${xorg.libX11.out}/lib" "${xorg.libXext.out}/lib" "/run/opengl-driver/lib" ]
++ concatLists (catAttrs "libPath" cfg.drivers)); ++ concatLists (catAttrs "libPath" cfg.drivers));
} // cfg.displayManager.job.environment; } // cfg.displayManager.job.environment;

View File

@ -556,17 +556,6 @@ let
meta.platforms = stdenv.lib.platforms.unix; meta.platforms = stdenv.lib.platforms.unix;
}) // {inherit ;}; }) // {inherit ;};
glamoregl = (mkDerivation "glamoregl" {
name = "glamor-egl-0.6.0";
builder = ./builder.sh;
src = fetchurl {
url = mirror://xorg/individual/driver/glamor-egl-0.6.0.tar.bz2;
sha256 = "1jg5clihklb9drh1jd7nhhdsszla6nv7xmbvm8yvakh5wrb1nlv6";
};
buildInputs = [pkgconfig dri2proto xorgserver ];
meta.platforms = stdenv.lib.platforms.unix;
}) // {inherit dri2proto xorgserver ;};
glproto = (mkDerivation "glproto" { glproto = (mkDerivation "glproto" {
name = "glproto-1.4.17"; name = "glproto-1.4.17";
builder = ./builder.sh; builder = ./builder.sh;
@ -1718,9 +1707,9 @@ let
url = mirror://xorg/individual/driver/xf86-video-ati-7.7.0.tar.bz2; url = mirror://xorg/individual/driver/xf86-video-ati-7.7.0.tar.bz2;
sha256 = "1hy1n8an98mflfbdcb3q7wv59x971j7nf9zhivf90p0lgdbiqkc4"; sha256 = "1hy1n8an98mflfbdcb3q7wv59x971j7nf9zhivf90p0lgdbiqkc4";
}; };
buildInputs = [pkgconfig fontsproto glamoregl libdrm udev libpciaccess randrproto renderproto videoproto xextproto xf86driproto xorgserver xproto ]; buildInputs = [pkgconfig fontsproto libdrm udev libpciaccess randrproto renderproto videoproto xextproto xf86driproto xorgserver xproto ];
meta.platforms = stdenv.lib.platforms.unix; meta.platforms = stdenv.lib.platforms.unix;
}) // {inherit fontsproto glamoregl libdrm udev libpciaccess randrproto renderproto videoproto xextproto xf86driproto xorgserver xproto ;}; }) // {inherit fontsproto libdrm udev libpciaccess randrproto renderproto videoproto xextproto xf86driproto xorgserver xproto ;};
xf86videochips = (mkDerivation "xf86videochips" { xf86videochips = (mkDerivation "xf86videochips" {
name = "xf86-video-chips-1.2.6"; name = "xf86-video-chips-1.2.6";

View File

@ -41,10 +41,6 @@ in
''; '';
}; };
glamoregl = attrs: attrs // {
installFlags = "sdkdir=\${out}/include/xorg configdir=\${out}/share/X11/xorg.conf.d";
};
imake = attrs: attrs // { imake = attrs: attrs // {
inherit (xorg) xorgcffiles; inherit (xorg) xorgcffiles;
x11BuildHook = ./imake.sh; x11BuildHook = ./imake.sh;
@ -324,7 +320,7 @@ in
}; };
xf86videoati = attrs: attrs // { xf86videoati = attrs: attrs // {
NIX_CFLAGS_COMPILE = "-I${xorg.glamoregl}/include/xorg"; NIX_CFLAGS_COMPILE = "-I${xorg.xorgserver}/include/xorg";
}; };
xf86videonv = attrs: attrs // { xf86videonv = attrs: attrs // {
@ -418,7 +414,7 @@ in
then { then {
outputs = [ "dev" "out" ]; outputs = [ "dev" "out" ];
buildInputs = [ makeWrapper ] ++ commonBuildInputs; buildInputs = [ makeWrapper ] ++ commonBuildInputs;
propagatedBuildInputs = [ libpciaccess ] ++ commonPropagatedBuildInputs ++ lib.optionals stdenv.isLinux [ propagatedBuildInputs = [ libpciaccess args.epoxy ] ++ commonPropagatedBuildInputs ++ lib.optionals stdenv.isLinux [
args.udev args.udev
]; ];
patches = commonPatches; patches = commonPatches;
@ -428,6 +424,7 @@ in
"--enable-xcsecurity" # enable SECURITY extension "--enable-xcsecurity" # enable SECURITY extension
"--with-default-font-path=" # there were only paths containing "${prefix}", "--with-default-font-path=" # there were only paths containing "${prefix}",
# and there are no fonts in this package anyway # and there are no fonts in this package anyway
"--enable-glamor"
]; ];
postInstall = '' postInstall = ''
rm -fr $out/share/X11/xkb/compiled rm -fr $out/share/X11/xkb/compiled

View File

@ -130,7 +130,6 @@ mirror://xorg/individual/driver/xf86-input-void-1.4.1.tar.bz2
mirror://xorg/individual/driver/xf86-video-ark-0.7.5.tar.bz2 mirror://xorg/individual/driver/xf86-video-ark-0.7.5.tar.bz2
mirror://xorg/individual/driver/xf86-video-ast-1.1.5.tar.bz2 mirror://xorg/individual/driver/xf86-video-ast-1.1.5.tar.bz2
mirror://xorg/individual/driver/xf86-video-ati-7.7.0.tar.bz2 mirror://xorg/individual/driver/xf86-video-ati-7.7.0.tar.bz2
mirror://xorg/individual/driver/glamor-egl-0.6.0.tar.bz2
mirror://xorg/individual/driver/xf86-video-nouveau-1.0.12.tar.bz2 mirror://xorg/individual/driver/xf86-video-nouveau-1.0.12.tar.bz2
mirror://xorg/individual/driver/xf86-video-chips-1.2.6.tar.bz2 mirror://xorg/individual/driver/xf86-video-chips-1.2.6.tar.bz2
mirror://xorg/individual/driver/xf86-video-cirrus-1.5.3.tar.bz2 mirror://xorg/individual/driver/xf86-video-cirrus-1.5.3.tar.bz2

View File

@ -10667,7 +10667,7 @@ in
libxslt expat libpng zlib perl mesa_drivers spice_protocol libunwind libxslt expat libpng zlib perl mesa_drivers spice_protocol libunwind
dbus libuuid openssl gperf m4 libevdev tradcpp libinput mcpp makeWrapper autoreconfHook dbus libuuid openssl gperf m4 libevdev tradcpp libinput mcpp makeWrapper autoreconfHook
autoconf automake libtool xmlto asciidoc flex bison python mtdev pixman autoconf automake libtool xmlto asciidoc flex bison python mtdev pixman
cairo; cairo epoxy;
inherit (darwin) apple_sdk cf-private libobjc; inherit (darwin) apple_sdk cf-private libobjc;
bootstrap_cmds = if stdenv.isDarwin then darwin.bootstrap_cmds else null; bootstrap_cmds = if stdenv.isDarwin then darwin.bootstrap_cmds else null;
mesa = mesa_noglu; mesa = mesa_noglu;