Skip to content

Commit

Permalink
xorg.xserver: configure --with-xkb-path= (#21653)
Browse files Browse the repository at this point in the history
  • Loading branch information
volth authored and abbradar committed Jan 17, 2017
1 parent 9fc3ce7 commit 69ed58d
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 15 deletions.
7 changes: 3 additions & 4 deletions pkgs/servers/x11/xorg/overrides.nix
Expand Up @@ -456,15 +456,14 @@ in
"--with-default-font-path=" # there were only paths containing "${prefix}",
# and there are no fonts in this package anyway
"--with-xkb-bin-directory=${xorg.xkbcomp}/bin"
"--with-xkb-path=${xorg.xkeyboardconfig}/share/X11/xkb"
"--with-xkb-output=$out/share/X11/xkb/compiled"
"--enable-glamor"
];
postInstall = ''
rm -fr $out/share/X11/xkb/compiled # otherwise X will try to write in it
wrapProgram $out/bin/Xephyr \
--add-flags "-xkbdir ${xorg.xkeyboardconfig}/share/X11/xkb"
wrapProgram $out/bin/Xvfb \
--set XORG_DRI_DRIVER_PATH ${args.mesa}/lib/dri \
--add-flags "-xkbdir ${xorg.xkeyboardconfig}/share/X11/xkb"
--set XORG_DRI_DRIVER_PATH ${args.mesa}/lib/dri
( # assert() keeps runtime reference xorgserver-dev in xf86-video-intel and others
cd "$dev"
for f in include/xorg/*.h; do
Expand Down
3 changes: 1 addition & 2 deletions pkgs/servers/x11/xquartz/default.nix
@@ -1,5 +1,5 @@
{ stdenv, lib, buildEnv, makeFontsConf, gnused, writeScript, xorg, bashInteractive, substituteAll, xterm, makeWrapper, ruby
, openssl, quartz-wm, fontconfig, xkeyboard_config, xlsfonts, xfontsel
, openssl, quartz-wm, fontconfig, xlsfonts, xfontsel
, ttf_bitstream_vera, freefont_ttf, liberation_ttf_binary
, shell ? "${bashInteractive}/bin/bash"
}:
Expand Down Expand Up @@ -126,7 +126,6 @@ in stdenv.mkDerivation {
--replace "@DEFAULT_CLIENT@" "${xterm}/bin/xterm" \
--replace "@XINIT@" "$out/bin/xinit" \
--replace "@XINITRC@" "$out/etc/X11/xinit/xinitrc" \
--replace "@XKEYBOARD_CONFIG@" "${xkeyboard_config}/etc/X11/xkb" \
--replace "@FONTCONFIG_FILE@" "$fontsConfPath"
wrapProgram $out/bin/Xquartz \
Expand Down
2 changes: 1 addition & 1 deletion pkgs/servers/x11/xquartz/startx
Expand Up @@ -217,7 +217,7 @@ EOF
done
fi

eval @XINIT@ \"$client\" $clientargs -- \"$server\" $display $serverargs "-xkbdir" "@XKEYBOARD_CONFIG@"
eval @XINIT@ \"$client\" $clientargs -- \"$server\" $display $serverargs
retval=$?

if [ x"$enable_xauth" = x1 ] ; then
Expand Down
3 changes: 1 addition & 2 deletions pkgs/tools/X11/bumblebee/default.nix
Expand Up @@ -18,7 +18,7 @@

{ stdenv, lib, fetchurl, fetchpatch, pkgconfig, help2man, makeWrapper
, glib, libbsd
, libX11, libXext, xorgserver, xkbcomp, kmod, xkeyboard_config, xf86videonouveau
, libX11, libXext, xorgserver, xkbcomp, kmod, xf86videonouveau
, nvidia_x11, virtualgl, primusLib
, automake111x, autoconf
# The below should only be non-null in a x86_64 system. On a i686
Expand Down Expand Up @@ -125,7 +125,6 @@ in stdenv.mkDerivation rec {

CFLAGS = [
"-DX_MODULE_APPENDS=\\\"${xmodules}\\\""
"-DX_XKB_DIR=\\\"${xkeyboard_config}/etc/X11/xkb\\\""
];

postInstall = ''
Expand Down
3 changes: 1 addition & 2 deletions pkgs/tools/X11/bumblebee/nixos.patch
Expand Up @@ -49,12 +49,11 @@ index 71a6b73..a682d8a 100644
char *x_argv[] = {
XORG_BINARY,
bb_config.x_display,
@@ -153,24 +170,25 @@ bool start_secondary(bool need_secondary) {
@@ -153,24 +170,24 @@ bool start_secondary(bool need_secondary) {
"-sharevts",
"-nolisten", "tcp",
"-noreset",
+ "-logfile", "/var/log/X.bumblebee.log",
+ "-xkbdir", X_XKB_DIR,
"-verbose", "3",
"-isolateDevice", pci_id,
- "-modulepath", bb_config.mod_path, // keep last
Expand Down
2 changes: 1 addition & 1 deletion pkgs/tools/X11/xpra/default.nix
@@ -1,6 +1,6 @@
{ stdenv, lib, fetchurl, python2Packages, pkgconfig
, xorg, gtk2, glib, pango, cairo, gdk_pixbuf, atk
, makeWrapper, xkbcomp, xorgserver, getopt, xauth, utillinux, which, fontsConf, xkeyboard_config
, makeWrapper, xkbcomp, xorgserver, getopt, xauth, utillinux, which, fontsConf
, ffmpeg, x264, libvpx, libwebp
, libfakeXinerama
, gst_all_1, pulseaudioLight, gobjectIntrospection }:
Expand Down
2 changes: 1 addition & 1 deletion pkgs/tools/X11/xpra/gtk3.nix
@@ -1,7 +1,7 @@
{ stdenv, fetchurl, buildPythonApplication
, python, cython, pkgconfig
, xorg, gtk3, glib, pango, cairo, gdk_pixbuf, atk, pygobject3, pycairo, gobjectIntrospection
, makeWrapper, xkbcomp, xorgserver, getopt, xauth, utillinux, which, fontsConf, xkeyboard_config
, makeWrapper, xkbcomp, xorgserver, getopt, xauth, utillinux, which, fontsConf
, ffmpeg, x264, libvpx, libwebp
, libfakeXinerama }:

Expand Down
3 changes: 1 addition & 2 deletions pkgs/tools/misc/xvfb-run/default.nix
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, makeWrapper, xkbcomp, xorgserver, getopt, xkeyboard_config
{ stdenv, fetchurl, makeWrapper, xkbcomp, xorgserver, getopt
, xauth, utillinux, which, fontsConf, gawk, coreutils }:
let
xvfb_run = fetchurl {
Expand All @@ -12,7 +12,6 @@ stdenv.mkDerivation {
buildCommand = ''
mkdir -p $out/bin
cp ${xvfb_run} $out/bin/xvfb-run
sed -i 's|XVFBARGS="|XVFBARGS="-xkbdir ${xkeyboard_config}/etc/X11/xkb |' $out/bin/xvfb-run
chmod a+x $out/bin/xvfb-run
wrapProgram $out/bin/xvfb-run \
Expand Down

0 comments on commit 69ed58d

Please sign in to comment.