mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-24 03:43:53 +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}",
|
||||
# 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
|
||||
|
@ -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"
|
||||
}:
|
||||
@ -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 \
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
@ -125,7 +125,6 @@ in stdenv.mkDerivation rec {
|
||||
|
||||
CFLAGS = [
|
||||
"-DX_MODULE_APPENDS=\\\"${xmodules}\\\""
|
||||
"-DX_XKB_DIR=\\\"${xkeyboard_config}/etc/X11/xkb\\\""
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
|
@ -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
|
||||
|
@ -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 }:
|
||||
|
@ -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 }:
|
||||
|
||||
|
@ -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 {
|
||||
@ -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 \
|
||||
|
Loading…
Reference in New Issue
Block a user