mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-25 04:12:44 +03:00
xorg.xserver: configure --with-xkb-path= (#21653)
This commit is contained in:
parent
9fc3ce73d1
commit
69ed58d88f
@ -456,15 +456,14 @@ in
|
|||||||
"--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
|
||||||
"--with-xkb-bin-directory=${xorg.xkbcomp}/bin"
|
"--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"
|
"--enable-glamor"
|
||||||
];
|
];
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
rm -fr $out/share/X11/xkb/compiled # otherwise X will try to write in it
|
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 \
|
wrapProgram $out/bin/Xvfb \
|
||||||
--set XORG_DRI_DRIVER_PATH ${args.mesa}/lib/dri \
|
--set XORG_DRI_DRIVER_PATH ${args.mesa}/lib/dri
|
||||||
--add-flags "-xkbdir ${xorg.xkeyboardconfig}/share/X11/xkb"
|
|
||||||
( # assert() keeps runtime reference xorgserver-dev in xf86-video-intel and others
|
( # assert() keeps runtime reference xorgserver-dev in xf86-video-intel and others
|
||||||
cd "$dev"
|
cd "$dev"
|
||||||
for f in include/xorg/*.h; do
|
for f in include/xorg/*.h; do
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{ stdenv, lib, buildEnv, makeFontsConf, gnused, writeScript, xorg, bashInteractive, substituteAll, xterm, makeWrapper, ruby
|
{ 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
|
, ttf_bitstream_vera, freefont_ttf, liberation_ttf_binary
|
||||||
, shell ? "${bashInteractive}/bin/bash"
|
, shell ? "${bashInteractive}/bin/bash"
|
||||||
}:
|
}:
|
||||||
@ -126,7 +126,6 @@ in stdenv.mkDerivation {
|
|||||||
--replace "@DEFAULT_CLIENT@" "${xterm}/bin/xterm" \
|
--replace "@DEFAULT_CLIENT@" "${xterm}/bin/xterm" \
|
||||||
--replace "@XINIT@" "$out/bin/xinit" \
|
--replace "@XINIT@" "$out/bin/xinit" \
|
||||||
--replace "@XINITRC@" "$out/etc/X11/xinit/xinitrc" \
|
--replace "@XINITRC@" "$out/etc/X11/xinit/xinitrc" \
|
||||||
--replace "@XKEYBOARD_CONFIG@" "${xkeyboard_config}/etc/X11/xkb" \
|
|
||||||
--replace "@FONTCONFIG_FILE@" "$fontsConfPath"
|
--replace "@FONTCONFIG_FILE@" "$fontsConfPath"
|
||||||
|
|
||||||
wrapProgram $out/bin/Xquartz \
|
wrapProgram $out/bin/Xquartz \
|
||||||
|
@ -217,7 +217,7 @@ EOF
|
|||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
eval @XINIT@ \"$client\" $clientargs -- \"$server\" $display $serverargs "-xkbdir" "@XKEYBOARD_CONFIG@"
|
eval @XINIT@ \"$client\" $clientargs -- \"$server\" $display $serverargs
|
||||||
retval=$?
|
retval=$?
|
||||||
|
|
||||||
if [ x"$enable_xauth" = x1 ] ; then
|
if [ x"$enable_xauth" = x1 ] ; then
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
{ stdenv, lib, fetchurl, fetchpatch, pkgconfig, help2man, makeWrapper
|
{ stdenv, lib, fetchurl, fetchpatch, pkgconfig, help2man, makeWrapper
|
||||||
, glib, libbsd
|
, glib, libbsd
|
||||||
, libX11, libXext, xorgserver, xkbcomp, kmod, xkeyboard_config, xf86videonouveau
|
, libX11, libXext, xorgserver, xkbcomp, kmod, xf86videonouveau
|
||||||
, nvidia_x11, virtualgl, primusLib
|
, nvidia_x11, virtualgl, primusLib
|
||||||
, automake111x, autoconf
|
, automake111x, autoconf
|
||||||
# The below should only be non-null in a x86_64 system. On a i686
|
# The below should only be non-null in a x86_64 system. On a i686
|
||||||
@ -125,7 +125,6 @@ in stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
CFLAGS = [
|
CFLAGS = [
|
||||||
"-DX_MODULE_APPENDS=\\\"${xmodules}\\\""
|
"-DX_MODULE_APPENDS=\\\"${xmodules}\\\""
|
||||||
"-DX_XKB_DIR=\\\"${xkeyboard_config}/etc/X11/xkb\\\""
|
|
||||||
];
|
];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
|
@ -49,12 +49,11 @@ index 71a6b73..a682d8a 100644
|
|||||||
char *x_argv[] = {
|
char *x_argv[] = {
|
||||||
XORG_BINARY,
|
XORG_BINARY,
|
||||||
bb_config.x_display,
|
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",
|
"-sharevts",
|
||||||
"-nolisten", "tcp",
|
"-nolisten", "tcp",
|
||||||
"-noreset",
|
"-noreset",
|
||||||
+ "-logfile", "/var/log/X.bumblebee.log",
|
+ "-logfile", "/var/log/X.bumblebee.log",
|
||||||
+ "-xkbdir", X_XKB_DIR,
|
|
||||||
"-verbose", "3",
|
"-verbose", "3",
|
||||||
"-isolateDevice", pci_id,
|
"-isolateDevice", pci_id,
|
||||||
- "-modulepath", bb_config.mod_path, // keep last
|
- "-modulepath", bb_config.mod_path, // keep last
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{ stdenv, lib, fetchurl, python2Packages, pkgconfig
|
{ stdenv, lib, fetchurl, python2Packages, pkgconfig
|
||||||
, xorg, gtk2, glib, pango, cairo, gdk_pixbuf, atk
|
, 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
|
, ffmpeg, x264, libvpx, libwebp
|
||||||
, libfakeXinerama
|
, libfakeXinerama
|
||||||
, gst_all_1, pulseaudioLight, gobjectIntrospection }:
|
, gst_all_1, pulseaudioLight, gobjectIntrospection }:
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{ stdenv, fetchurl, buildPythonApplication
|
{ stdenv, fetchurl, buildPythonApplication
|
||||||
, python, cython, pkgconfig
|
, python, cython, pkgconfig
|
||||||
, xorg, gtk3, glib, pango, cairo, gdk_pixbuf, atk, pygobject3, pycairo, gobjectIntrospection
|
, 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
|
, ffmpeg, x264, libvpx, libwebp
|
||||||
, libfakeXinerama }:
|
, libfakeXinerama }:
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchurl, makeWrapper, xkbcomp, xorgserver, getopt, xkeyboard_config
|
{ stdenv, fetchurl, makeWrapper, xkbcomp, xorgserver, getopt
|
||||||
, xauth, utillinux, which, fontsConf, gawk, coreutils }:
|
, xauth, utillinux, which, fontsConf, gawk, coreutils }:
|
||||||
let
|
let
|
||||||
xvfb_run = fetchurl {
|
xvfb_run = fetchurl {
|
||||||
@ -12,7 +12,6 @@ stdenv.mkDerivation {
|
|||||||
buildCommand = ''
|
buildCommand = ''
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
cp ${xvfb_run} $out/bin/xvfb-run
|
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
|
chmod a+x $out/bin/xvfb-run
|
||||||
wrapProgram $out/bin/xvfb-run \
|
wrapProgram $out/bin/xvfb-run \
|
||||||
|
Loading…
Reference in New Issue
Block a user