diff options
author | William A. Kennington III <william@wkennington.com> | 2015-10-30 17:16:07 -0700 |
---|---|---|
committer | William A. Kennington III <william@wkennington.com> | 2015-10-30 17:16:07 -0700 |
commit | dd2de66d614e58a8b89046e2de73f2305df4b23f (patch) | |
tree | f89847bb63642613f543a44e4e270643f6c1c4b7 /pkgs/servers/x11 | |
parent | 99fe4f97c55185d3f51b759cbd5f8e3ab029eadb (diff) | |
parent | a7d573f224707185c44c92b8a35eb6a7ad62c552 (diff) | |
download | nixlib-dd2de66d614e58a8b89046e2de73f2305df4b23f.tar nixlib-dd2de66d614e58a8b89046e2de73f2305df4b23f.tar.gz nixlib-dd2de66d614e58a8b89046e2de73f2305df4b23f.tar.bz2 nixlib-dd2de66d614e58a8b89046e2de73f2305df4b23f.tar.lz nixlib-dd2de66d614e58a8b89046e2de73f2305df4b23f.tar.xz nixlib-dd2de66d614e58a8b89046e2de73f2305df4b23f.tar.zst nixlib-dd2de66d614e58a8b89046e2de73f2305df4b23f.zip |
Merge branch 'master.upstream' into staging.upstream
Diffstat (limited to 'pkgs/servers/x11')
-rw-r--r-- | pkgs/servers/x11/quartz-wm/default.nix | 3 | ||||
-rw-r--r-- | pkgs/servers/x11/xorg/overrides.nix | 12 | ||||
-rw-r--r-- | pkgs/servers/x11/xorg/xkeyboard-config-eo.patch | 71 | ||||
-rw-r--r-- | pkgs/servers/x11/xquartz/default.nix | 7 |
4 files changed, 90 insertions, 3 deletions
diff --git a/pkgs/servers/x11/quartz-wm/default.nix b/pkgs/servers/x11/quartz-wm/default.nix index de30fc2a5840..45e4df2bb8b9 100644 --- a/pkgs/servers/x11/quartz-wm/default.nix +++ b/pkgs/servers/x11/quartz-wm/default.nix @@ -1,4 +1,4 @@ -{ stdenv, lib, fetchurl, xorg, pixman, pkgconfig }: +{ stdenv, lib, fetchurl, xorg, pixman, pkgconfig, AppKit, Xplugin }: let version = "1.3.1"; in stdenv.mkDerivation { @@ -19,6 +19,7 @@ in stdenv.mkDerivation { xorg.libXext pixman pkgconfig + AppKit Xplugin ]; NIX_CFLAGS_COMPILE = "-F/System/Library/Frameworks -I/usr/include"; NIX_LDFLAGS = stdenv.lib.optional stdenv.isDarwin diff --git a/pkgs/servers/x11/xorg/overrides.nix b/pkgs/servers/x11/xorg/overrides.nix index 801b37ea73ad..1339e51eb232 100644 --- a/pkgs/servers/x11/xorg/overrides.nix +++ b/pkgs/servers/x11/xorg/overrides.nix @@ -94,7 +94,10 @@ in }; libAppleWM = attrs: attrs // { - propagatedBuildInputs = [ args.apple_sdk.frameworks.ApplicationServices ]; + buildInputs = attrs.buildInputs ++ [ args.apple_sdk.frameworks.ApplicationServices ]; + preConfigure = '' + substituteInPlace src/Makefile.in --replace -F/System -F${args.apple_sdk.frameworks.ApplicationServices} + ''; }; libXfont = attrs: attrs // { @@ -261,7 +264,8 @@ in buildInputs = attrs.buildInputs ++ [args.intltool]; - #TODO: resurrect patches for US_intl or Esperanto? + #TODO: resurrect patches for US_intl? + patches = [ ./xkeyboard-config-eo.patch ]; # 1: compatibility for X11/xkb location # 2: I think pkgconfig/ is supposed to be in /lib/ @@ -326,6 +330,9 @@ in } else { buildInputs = commonBuildInputs ++ [ args.bootstrap_cmds args.automake args.autoconf + args.apple_sdk.libs.Xplugin + args.apple_sdk.frameworks.Carbon + args.apple_sdk.frameworks.Cocoa ]; propagatedBuildInputs = commonPropagatedBuildInputs ++ [ libAppleWM applewmproto @@ -359,6 +366,7 @@ in preConfigure = '' ensureDir $out/Applications export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -Wno-error" + substituteInPlace hw/xquartz/pbproxy/Makefile.in --replace -F/System -F${args.apple_sdk.frameworks.ApplicationServices} ''; postInstall = '' rm -fr $out/share/X11/xkb/compiled diff --git a/pkgs/servers/x11/xorg/xkeyboard-config-eo.patch b/pkgs/servers/x11/xorg/xkeyboard-config-eo.patch new file mode 100644 index 000000000000..360768774db9 --- /dev/null +++ b/pkgs/servers/x11/xorg/xkeyboard-config-eo.patch @@ -0,0 +1,71 @@ +diff --git a/rules/base.xml.in b/rules/base.xml.in +index ec321f8..e9c3546 100644 +--- a/rules/base.xml.in ++++ b/rules/base.xml.in +@@ -1786,6 +1786,13 @@ + </layout> + <layout> + <configItem> ++ <name>eo</name> ++ <_shortDescription>Esp</_shortDescription> ++ <_description>Esperanto</_description> ++ </configItem> ++ </layout> ++ <layout> ++ <configItem> + <name>ir</name> + <_shortDescription>Irn</_shortDescription> + <_description>Iran</_description> +diff --git a/symbols/Makefile.am b/symbols/Makefile.am +index 97c816d..d7e3a4e 100644 +--- a/symbols/Makefile.am ++++ b/symbols/Makefile.am +@@ -10,7 +10,7 @@ bt by braille \ + ca cd \ + ch cn cz \ + de dk \ +-ee es et epo eu \ ++ee eo es et epo eu \ + fi fo fr \ + gb ge gh gn \ + gr hr hu \ +diff --git a/symbols/Makefile.in b/symbols/Makefile.in +index b5be077..5cddcc7 100644 +--- a/symbols/Makefile.in ++++ b/symbols/Makefile.in +@@ -222,7 +222,7 @@ bt by braille \ + ca cd \ + ch cn cz \ + de dk \ +-ee es et epo eu \ ++ee eo es et epo eu \ + fi fo fr \ + gb ge gh gn \ + gr hr hu \ +diff --git a/symbols/eo b/symbols/eo +new file mode 100644 +index 0000000..d6358c9 +--- /dev/null ++++ b/symbols/eo +@@ -0,0 +1,21 @@ ++// $XFree86$ ++ ++partial alphanumeric_keys ++xkb_symbols "basic" { ++ ++ // Describes the differences between a very simple en_US ++ // keyboard and a simple Esperanto keyboard ++ // Press AltGr or Windows Menu key together with C, H, J, S, U ++ // to get accented letters. ++ // 2001 by Radovan Garabik <garabik@melkor.dnp.fmph.uniba.sk> ++ ++ key.type = "FOUR_LEVEL"; ++ ++ key <AD02> { [w,W, ubreve,Ubreve ] }; ++ key <AD07> { [u,U, ubreve, Ubreve ] }; ++ key <AC02> { [s,S, scircumflex, Scircumflex ] }; ++ key <AC05> { [g,G, gcircumflex,Gcircumflex ] }; ++ key <AC06> { [h,H, hcircumflex,Hcircumflex ] }; ++ key <AC07> { [j,J, jcircumflex,Jcircumflex ] }; ++ key <AB03> { [c,C, ccircumflex,Ccircumflex ] }; ++}; diff --git a/pkgs/servers/x11/xquartz/default.nix b/pkgs/servers/x11/xquartz/default.nix index 178e7a59d831..920b66147f26 100644 --- a/pkgs/servers/x11/xquartz/default.nix +++ b/pkgs/servers/x11/xquartz/default.nix @@ -146,6 +146,13 @@ in stdenv.mkDerivation { --replace "@STARTX@" "$defaultStartX" \ --replace "@FONTCONFIG_FILE@" "$fontsConfPath" + mkdir -p $out/lib/X11/xinit/privileged_startx.d + cp ${./privileged} $out/lib/X11/xinit/privileged_startx.d/privileged + substituteInPlace $out/lib/X11/xinit/privileged_startx.d/privileged \ + --replace "@PATH@" "$out/bin:${env}" \ + --replace "@FONTCONFIG_FILE@" "$fontsConfPath" \ + --replace "@FONT_CACHE@" "$out/bin/font_cache" + cp ${./font_cache} $out/bin/font_cache substituteInPlace $out/bin/font_cache \ --replace "@PATH@" "$out/bin:${env}" \ |