xorg: use top-level xorg instead of self in overrides.nix

the packages will be spliced correctly

Artturin 7e00495e d6a9e826

+42 -41
+42 -41
pkgs/servers/x11/xorg/overrides.nix
··· 5 libGL, spice-protocol, zlib, libGLU, dbus, libunwind, libdrm, 6 mesa, udev, bootstrap_cmds, bison, flex, clangStdenv, autoreconfHook, 7 mcpp, libepoxy, openssl, pkg-config, llvm, libxslt, libxcrypt, 8 - ApplicationServices, Carbon, Cocoa, Xplugin 9 }: 10 11 let ··· 23 self: super: 24 { 25 bdftopcf = super.bdftopcf.overrideAttrs (attrs: { 26 - buildInputs = attrs.buildInputs ++ [ self.xorgproto ]; 27 }); 28 29 bitmap = super.bitmap.overrideAttrs (attrs: { ··· 32 paths=( 33 "$out/share/X11/%T/%N" 34 "$out/include/X11/%T/%N" 35 - "${self.xbitmaps}/include/X11/%T/%N" 36 ) 37 wrapProgram "$out/bin/bitmap" \ 38 --suffix XFILESEARCHPATH : $(IFS=:; echo "''${paths[*]}") ··· 48 fontmiscmisc = super.fontmiscmisc.overrideAttrs (attrs: { 49 postInstall = 50 '' 51 - ALIASFILE=${self.fontalias}/share/fonts/X11/misc/fonts.alias 52 test -f $ALIASFILE 53 cp $ALIASFILE $out/lib/X11/fonts/misc/fonts.alias 54 ''; ··· 59 }); 60 61 imake = super.imake.overrideAttrs (attrs: { 62 - inherit (self) xorgcffiles; 63 x11BuildHook = ./imake.sh; 64 patches = [./imake.patch ./imake-cc-wrapper-uberhack.patch]; 65 setupHook = ./imake-setup-hook.sh; ··· 70 inherit tradcpp; 71 }); 72 73 - mkfontdir = self.mkfontscale; 74 75 libxcb = super.libxcb.overrideAttrs (attrs: { 76 configureFlags = [ "--enable-xkb" "--enable-xinput" ] ··· 85 depsBuildBuild = [ 86 buildPackages.stdenv.cc 87 ] ++ lib.optionals stdenv.hostPlatform.isStatic [ 88 - (self.buildPackages.stdenv.cc.libc.static or null) 89 ]; 90 preConfigure = '' 91 sed 's,^as_dummy.*,as_dummy="\$PATH",' -i configure ··· 95 rm -rf $out/share/doc 96 ''; 97 CPP = lib.optionalString stdenv.isDarwin "clang -E -"; 98 - propagatedBuildInputs = attrs.propagatedBuildInputs or [] ++ [ self.xorgproto ]; 99 }); 100 101 libAppleWM = super.libAppleWM.overrideAttrs (attrs: { ··· 107 108 libXau = super.libXau.overrideAttrs (attrs: { 109 outputs = [ "out" "dev" ]; 110 - propagatedBuildInputs = attrs.propagatedBuildInputs or [] ++ [ self.xorgproto ]; 111 }); 112 113 libXdmcp = super.libXdmcp.overrideAttrs (attrs: { ··· 161 ''; 162 configureFlags = attrs.configureFlags or [] 163 ++ malloc0ReturnsNullCrossFlag; 164 - propagatedBuildInputs = attrs.propagatedBuildInputs or [] ++ [ self.libSM ]; 165 depsBuildBuild = [ buildPackages.stdenv.cc ]; 166 CPP = if stdenv.isDarwin then "clang -E -" else "${stdenv.cc.targetPrefix}cc -E -"; 167 outputs = [ "out" "dev" "devdoc" ]; ··· 181 182 libXcomposite = super.libXcomposite.overrideAttrs (attrs: { 183 outputs = [ "out" "dev" ]; 184 - propagatedBuildInputs = attrs.propagatedBuildInputs or [] ++ [ self.libXfixes ]; 185 }); 186 187 libXaw = super.libXaw.overrideAttrs (attrs: { 188 outputs = [ "out" "dev" "devdoc" ]; 189 - propagatedBuildInputs = attrs.propagatedBuildInputs or [] ++ [ self.libXmu ]; 190 }); 191 192 libXcursor = super.libXcursor.overrideAttrs (attrs: { ··· 199 200 libXft = super.libXft.overrideAttrs (attrs: { 201 outputs = [ "out" "dev" ]; 202 - propagatedBuildInputs = attrs.propagatedBuildInputs or [] ++ [ self.libXrender freetype fontconfig ]; 203 configureFlags = attrs.configureFlags or [] 204 ++ malloc0ReturnsNullCrossFlag; 205 ··· 214 215 libXext = super.libXext.overrideAttrs (attrs: { 216 outputs = [ "out" "dev" "man" "doc" ]; 217 - propagatedBuildInputs = attrs.propagatedBuildInputs or [] ++ [ self.xorgproto self.libXau ]; 218 configureFlags = attrs.configureFlags or [] 219 ++ malloc0ReturnsNullCrossFlag; 220 }); ··· 225 226 libXi = super.libXi.overrideAttrs (attrs: { 227 outputs = [ "out" "dev" "man" "doc" ]; 228 - propagatedBuildInputs = attrs.propagatedBuildInputs or [] ++ [ self.libXfixes self.libXext ]; 229 configureFlags = lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [ 230 "xorg_cv_malloc0_returns_null=no" 231 ] ++ lib.optional stdenv.hostPlatform.isStatic "--disable-shared"; ··· 246 outputs = [ "out" "dev" ]; 247 configureFlags = attrs.configureFlags or [] 248 ++ malloc0ReturnsNullCrossFlag; 249 - propagatedBuildInputs = attrs.propagatedBuildInputs or [] ++ [ self.libXrender ]; 250 }); 251 252 libSM = super.libSM.overrideAttrs (attrs: { 253 outputs = [ "out" "dev" "doc" ]; 254 - propagatedBuildInputs = attrs.propagatedBuildInputs or [] ++ [ self.libICE ]; 255 }); 256 257 libXrender = super.libXrender.overrideAttrs (attrs: { 258 outputs = [ "out" "dev" "doc" ]; 259 configureFlags = attrs.configureFlags or [] 260 ++ malloc0ReturnsNullCrossFlag; 261 - propagatedBuildInputs = attrs.propagatedBuildInputs or [] ++ [ self.xorgproto ]; 262 }); 263 264 libXres = super.libXres.overrideAttrs (attrs: { 265 outputs = [ "out" "dev" "devdoc" ]; 266 - buildInputs = with self; attrs.buildInputs ++ [ utilmacros ]; 267 configureFlags = attrs.configureFlags or [] 268 ++ malloc0ReturnsNullCrossFlag; 269 }); 270 271 libXScrnSaver = super.libXScrnSaver.overrideAttrs (attrs: { 272 - buildInputs = with self; attrs.buildInputs ++ [ utilmacros ]; 273 configureFlags = attrs.configureFlags or [] 274 ++ malloc0ReturnsNullCrossFlag; 275 }); ··· 284 outputs = [ "out" "dev" "doc" ]; 285 configureFlags = attrs.configureFlags or [] 286 ++ malloc0ReturnsNullCrossFlag; 287 - buildInputs = attrs.buildInputs ++ [self.xorgproto]; 288 }); 289 290 libXp = super.libXp.overrideAttrs (attrs: { ··· 297 }); 298 299 libXpresent = super.libXpresent.overrideAttrs (attrs: { 300 - buildInputs = with self; attrs.buildInputs ++ [ libXext libXfixes libXrandr ]; 301 }); 302 303 libxkbfile = super.libxkbfile.overrideAttrs (attrs: { ··· 321 postInstall = 322 '' 323 mkdir -p $out/share/man/man7 324 - ln -sfn ${self.xkeyboardconfig}/etc/X11 $out/share/X11 325 - ln -sfn ${self.xkeyboardconfig}/share/man/man7/xkeyboard-config.7.gz $out/share/man/man7 326 ''; 327 }); 328 ··· 444 445 xf86videoati = super.xf86videoati.overrideAttrs (attrs: { 446 nativeBuildInputs = attrs.nativeBuildInputs ++ [ autoreconfHook ]; 447 - buildInputs = attrs.buildInputs ++ [ self.utilmacros ]; 448 patches = [ 449 (fetchpatch { 450 url = "https://gitlab.freedesktop.org/xorg/driver/xf86-video-ati/-/commit/e0511968d04b42abf11bc0ffb387f143582bc144.patch"; ··· 455 456 xf86videonouveau = super.xf86videonouveau.overrideAttrs (attrs: { 457 nativeBuildInputs = attrs.nativeBuildInputs ++ [ autoreconfHook ]; 458 - buildInputs = attrs.buildInputs ++ [ self.utilmacros ]; 459 }); 460 461 xf86videoglint = super.xf86videoglint.overrideAttrs (attrs: { 462 nativeBuildInputs = attrs.nativeBuildInputs ++ [ autoreconfHook ]; 463 - buildInputs = attrs.buildInputs ++ [ self.utilmacros ]; 464 # https://gitlab.freedesktop.org/xorg/driver/xf86-video-glint/-/issues/1 465 meta = attrs.meta // { broken = true; }; 466 }); ··· 599 }); 600 601 xvinfo = super.xvinfo.overrideAttrs (attrs: { 602 - buildInputs = attrs.buildInputs ++ [self.libXext]; 603 }); 604 605 xkbcomp = super.xkbcomp.overrideAttrs (attrs: { 606 - configureFlags = [ "--with-xkb-config-root=${self.xkeyboardconfig}/share/X11/xkb" ]; 607 }); 608 609 xkeyboardconfig = super.xkeyboardconfig.overrideAttrs (attrs: { ··· 693 EOF 694 ''; 695 in 696 - self.xkeyboardconfig.overrideAttrs (old: { 697 buildInputs = old.buildInputs ++ [ automake ]; 698 postPatch = with lib; concatStrings (mapAttrsToList patchIn layouts); 699 }); ··· 714 mesonFlags = [ "-Dlegacy=true" ]; 715 }); 716 717 - xorgserver = with self; super.xorgserver.overrideAttrs (attrs_passed: 718 # exchange attrs if abiCompat is set 719 let 720 version = lib.getVersion attrs_passed; ··· 821 "--enable-xcsecurity" # enable SECURITY extension 822 "--with-default-font-path=" # there were only paths containing "${prefix}", 823 # and there are no fonts in this package anyway 824 - "--with-xkb-bin-directory=${self.xkbcomp}/bin" 825 - "--with-xkb-path=${self.xkeyboardconfig}/share/X11/xkb" 826 "--with-xkb-output=$out/share/X11/xkb/compiled" 827 "--with-log-dir=/var/log" 828 "--enable-glamor" ··· 842 ''; 843 passthru.version = version; # needed by virtualbox guest additions 844 } else { 845 - nativeBuildInputs = attrs.nativeBuildInputs ++ [ autoreconfHook self.utilmacros self.fontutil ]; 846 buildInputs = commonBuildInputs ++ [ 847 bootstrap_cmds automake autoconf 848 Xplugin Carbon Cocoa ··· 930 }); 931 932 xcursorthemes = super.xcursorthemes.overrideAttrs (attrs: { 933 - nativeBuildInputs = attrs.nativeBuildInputs ++ [ self.xcursorgen ]; 934 - buildInputs = attrs.buildInputs ++ [ self.xorgproto ]; 935 configureFlags = [ "--with-cursordir=$(out)/share/icons" ]; 936 }); 937 ··· 941 buildInputs = attrs.buildInputs ++ lib.optional isDarwin bootstrap_cmds; 942 depsBuildBuild = [ buildPackages.stdenv.cc ]; 943 configureFlags = [ 944 - "--with-xserver=${self.xorgserver.out}/bin/X" 945 ] ++ lib.optionals isDarwin [ 946 "--with-bundle-id-prefix=org.nixos.xquartz" 947 "--with-launchdaemons-dir=\${out}/LaunchDaemons" ··· 959 # Avoid replacement of word-looking cpp's builtin macros in Nix's cross-compiled paths 960 substituteInPlace Makefile.in --replace "PROGCPPDEFS =" "PROGCPPDEFS = -Dlinux=linux -Dunix=unix" 961 ''; 962 - propagatedBuildInputs = attrs.propagatedBuildInputs or [] ++ [ self.xauth ] 963 - ++ lib.optionals isDarwin [ self.libX11 self.xorgproto ]; 964 postFixup = '' 965 substituteInPlace $out/bin/startx --replace $out/etc/X11/xinit/xserverrc /etc/X11/xinit/xserverrc 966 ''; ··· 977 rev = "31486f40f8e8f8923ca0799aea84b58799754564"; 978 sha256 = "sha256-nqT9VZDb2kAC72ot9UCdwEkM1uuP9NriJePulzrdZlM="; 979 }; 980 - buildInputs = attrs.buildInputs ++ [ self.libXScrnSaver self.libXfixes self.libXv self.pixman self.utilmacros ]; 981 nativeBuildInputs = attrs.nativeBuildInputs ++ [autoreconfHook ]; 982 configureFlags = [ "--with-default-dri=3" "--enable-tools" ]; 983 ··· 987 }); 988 989 xf86videoopenchrome = super.xf86videoopenchrome.overrideAttrs (attrs: { 990 - buildInputs = attrs.buildInputs ++ [ self.libXv ]; 991 patches = [ 992 # Pull upstream fix for -fno-common toolchains. 993 (fetchpatch {
··· 5 libGL, spice-protocol, zlib, libGLU, dbus, libunwind, libdrm, 6 mesa, udev, bootstrap_cmds, bison, flex, clangStdenv, autoreconfHook, 7 mcpp, libepoxy, openssl, pkg-config, llvm, libxslt, libxcrypt, 8 + ApplicationServices, Carbon, Cocoa, Xplugin, 9 + xorg 10 }: 11 12 let ··· 24 self: super: 25 { 26 bdftopcf = super.bdftopcf.overrideAttrs (attrs: { 27 + buildInputs = attrs.buildInputs ++ [ xorg.xorgproto ]; 28 }); 29 30 bitmap = super.bitmap.overrideAttrs (attrs: { ··· 33 paths=( 34 "$out/share/X11/%T/%N" 35 "$out/include/X11/%T/%N" 36 + "${xorg.xbitmaps}/include/X11/%T/%N" 37 ) 38 wrapProgram "$out/bin/bitmap" \ 39 --suffix XFILESEARCHPATH : $(IFS=:; echo "''${paths[*]}") ··· 49 fontmiscmisc = super.fontmiscmisc.overrideAttrs (attrs: { 50 postInstall = 51 '' 52 + ALIASFILE=${xorg.fontalias}/share/fonts/X11/misc/fonts.alias 53 test -f $ALIASFILE 54 cp $ALIASFILE $out/lib/X11/fonts/misc/fonts.alias 55 ''; ··· 60 }); 61 62 imake = super.imake.overrideAttrs (attrs: { 63 + inherit (xorg) xorgcffiles; 64 x11BuildHook = ./imake.sh; 65 patches = [./imake.patch ./imake-cc-wrapper-uberhack.patch]; 66 setupHook = ./imake-setup-hook.sh; ··· 71 inherit tradcpp; 72 }); 73 74 + mkfontdir = xorg.mkfontscale; 75 76 libxcb = super.libxcb.overrideAttrs (attrs: { 77 configureFlags = [ "--enable-xkb" "--enable-xinput" ] ··· 86 depsBuildBuild = [ 87 buildPackages.stdenv.cc 88 ] ++ lib.optionals stdenv.hostPlatform.isStatic [ 89 + (xorg.buildPackages.stdenv.cc.libc.static or null) 90 ]; 91 preConfigure = '' 92 sed 's,^as_dummy.*,as_dummy="\$PATH",' -i configure ··· 96 rm -rf $out/share/doc 97 ''; 98 CPP = lib.optionalString stdenv.isDarwin "clang -E -"; 99 + propagatedBuildInputs = attrs.propagatedBuildInputs or [] ++ [ xorg.xorgproto ]; 100 }); 101 102 libAppleWM = super.libAppleWM.overrideAttrs (attrs: { ··· 108 109 libXau = super.libXau.overrideAttrs (attrs: { 110 outputs = [ "out" "dev" ]; 111 + propagatedBuildInputs = attrs.propagatedBuildInputs or [] ++ [ xorg.xorgproto ]; 112 }); 113 114 libXdmcp = super.libXdmcp.overrideAttrs (attrs: { ··· 162 ''; 163 configureFlags = attrs.configureFlags or [] 164 ++ malloc0ReturnsNullCrossFlag; 165 + propagatedBuildInputs = attrs.propagatedBuildInputs or [] ++ [ xorg.libSM ]; 166 depsBuildBuild = [ buildPackages.stdenv.cc ]; 167 CPP = if stdenv.isDarwin then "clang -E -" else "${stdenv.cc.targetPrefix}cc -E -"; 168 outputs = [ "out" "dev" "devdoc" ]; ··· 182 183 libXcomposite = super.libXcomposite.overrideAttrs (attrs: { 184 outputs = [ "out" "dev" ]; 185 + propagatedBuildInputs = attrs.propagatedBuildInputs or [] ++ [ xorg.libXfixes ]; 186 }); 187 188 libXaw = super.libXaw.overrideAttrs (attrs: { 189 outputs = [ "out" "dev" "devdoc" ]; 190 + propagatedBuildInputs = attrs.propagatedBuildInputs or [] ++ [ xorg.libXmu ]; 191 }); 192 193 libXcursor = super.libXcursor.overrideAttrs (attrs: { ··· 200 201 libXft = super.libXft.overrideAttrs (attrs: { 202 outputs = [ "out" "dev" ]; 203 + propagatedBuildInputs = attrs.propagatedBuildInputs or [] ++ [ xorg.libXrender freetype fontconfig ]; 204 configureFlags = attrs.configureFlags or [] 205 ++ malloc0ReturnsNullCrossFlag; 206 ··· 215 216 libXext = super.libXext.overrideAttrs (attrs: { 217 outputs = [ "out" "dev" "man" "doc" ]; 218 + propagatedBuildInputs = attrs.propagatedBuildInputs or [] ++ [ xorg.xorgproto xorg.libXau ]; 219 configureFlags = attrs.configureFlags or [] 220 ++ malloc0ReturnsNullCrossFlag; 221 }); ··· 226 227 libXi = super.libXi.overrideAttrs (attrs: { 228 outputs = [ "out" "dev" "man" "doc" ]; 229 + propagatedBuildInputs = attrs.propagatedBuildInputs or [] ++ [ xorg.libXfixes xorg.libXext ]; 230 configureFlags = lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [ 231 "xorg_cv_malloc0_returns_null=no" 232 ] ++ lib.optional stdenv.hostPlatform.isStatic "--disable-shared"; ··· 247 outputs = [ "out" "dev" ]; 248 configureFlags = attrs.configureFlags or [] 249 ++ malloc0ReturnsNullCrossFlag; 250 + propagatedBuildInputs = attrs.propagatedBuildInputs or [] ++ [ xorg.libXrender ]; 251 }); 252 253 libSM = super.libSM.overrideAttrs (attrs: { 254 outputs = [ "out" "dev" "doc" ]; 255 + propagatedBuildInputs = attrs.propagatedBuildInputs or [] ++ [ xorg.libICE ]; 256 }); 257 258 libXrender = super.libXrender.overrideAttrs (attrs: { 259 outputs = [ "out" "dev" "doc" ]; 260 configureFlags = attrs.configureFlags or [] 261 ++ malloc0ReturnsNullCrossFlag; 262 + propagatedBuildInputs = attrs.propagatedBuildInputs or [] ++ [ xorg.xorgproto ]; 263 }); 264 265 libXres = super.libXres.overrideAttrs (attrs: { 266 outputs = [ "out" "dev" "devdoc" ]; 267 + buildInputs = with xorg; attrs.buildInputs ++ [ utilmacros ]; 268 configureFlags = attrs.configureFlags or [] 269 ++ malloc0ReturnsNullCrossFlag; 270 }); 271 272 libXScrnSaver = super.libXScrnSaver.overrideAttrs (attrs: { 273 + buildInputs = with xorg; attrs.buildInputs ++ [ utilmacros ]; 274 configureFlags = attrs.configureFlags or [] 275 ++ malloc0ReturnsNullCrossFlag; 276 }); ··· 285 outputs = [ "out" "dev" "doc" ]; 286 configureFlags = attrs.configureFlags or [] 287 ++ malloc0ReturnsNullCrossFlag; 288 + buildInputs = attrs.buildInputs ++ [xorg.xorgproto]; 289 }); 290 291 libXp = super.libXp.overrideAttrs (attrs: { ··· 298 }); 299 300 libXpresent = super.libXpresent.overrideAttrs (attrs: { 301 + buildInputs = with xorg; attrs.buildInputs ++ [ libXext libXfixes libXrandr ]; 302 }); 303 304 libxkbfile = super.libxkbfile.overrideAttrs (attrs: { ··· 322 postInstall = 323 '' 324 mkdir -p $out/share/man/man7 325 + ln -sfn ${xorg.xkeyboardconfig}/etc/X11 $out/share/X11 326 + ln -sfn ${xorg.xkeyboardconfig}/share/man/man7/xkeyboard-config.7.gz $out/share/man/man7 327 ''; 328 }); 329 ··· 445 446 xf86videoati = super.xf86videoati.overrideAttrs (attrs: { 447 nativeBuildInputs = attrs.nativeBuildInputs ++ [ autoreconfHook ]; 448 + buildInputs = attrs.buildInputs ++ [ xorg.utilmacros ]; 449 patches = [ 450 (fetchpatch { 451 url = "https://gitlab.freedesktop.org/xorg/driver/xf86-video-ati/-/commit/e0511968d04b42abf11bc0ffb387f143582bc144.patch"; ··· 456 457 xf86videonouveau = super.xf86videonouveau.overrideAttrs (attrs: { 458 nativeBuildInputs = attrs.nativeBuildInputs ++ [ autoreconfHook ]; 459 + buildInputs = attrs.buildInputs ++ [ xorg.utilmacros ]; 460 }); 461 462 xf86videoglint = super.xf86videoglint.overrideAttrs (attrs: { 463 nativeBuildInputs = attrs.nativeBuildInputs ++ [ autoreconfHook ]; 464 + buildInputs = attrs.buildInputs ++ [ xorg.utilmacros ]; 465 # https://gitlab.freedesktop.org/xorg/driver/xf86-video-glint/-/issues/1 466 meta = attrs.meta // { broken = true; }; 467 }); ··· 600 }); 601 602 xvinfo = super.xvinfo.overrideAttrs (attrs: { 603 + buildInputs = attrs.buildInputs ++ [xorg.libXext]; 604 }); 605 606 xkbcomp = super.xkbcomp.overrideAttrs (attrs: { 607 + configureFlags = [ "--with-xkb-config-root=${xorg.xkeyboardconfig}/share/X11/xkb" ]; 608 }); 609 610 xkeyboardconfig = super.xkeyboardconfig.overrideAttrs (attrs: { ··· 694 EOF 695 ''; 696 in 697 + xorg.xkeyboardconfig.overrideAttrs (old: { 698 buildInputs = old.buildInputs ++ [ automake ]; 699 postPatch = with lib; concatStrings (mapAttrsToList patchIn layouts); 700 }); ··· 715 mesonFlags = [ "-Dlegacy=true" ]; 716 }); 717 718 + xorgserver = with xorg; super.xorgserver.overrideAttrs (attrs_passed: 719 # exchange attrs if abiCompat is set 720 let 721 version = lib.getVersion attrs_passed; ··· 822 "--enable-xcsecurity" # enable SECURITY extension 823 "--with-default-font-path=" # there were only paths containing "${prefix}", 824 # and there are no fonts in this package anyway 825 + "--with-xkb-bin-directory=${xorg.xkbcomp}/bin" 826 + "--with-xkb-path=${xorg.xkeyboardconfig}/share/X11/xkb" 827 "--with-xkb-output=$out/share/X11/xkb/compiled" 828 "--with-log-dir=/var/log" 829 "--enable-glamor" ··· 843 ''; 844 passthru.version = version; # needed by virtualbox guest additions 845 } else { 846 + nativeBuildInputs = attrs.nativeBuildInputs ++ [ autoreconfHook xorg.utilmacros xorg.fontutil ]; 847 buildInputs = commonBuildInputs ++ [ 848 bootstrap_cmds automake autoconf 849 Xplugin Carbon Cocoa ··· 931 }); 932 933 xcursorthemes = super.xcursorthemes.overrideAttrs (attrs: { 934 + nativeBuildInputs = attrs.nativeBuildInputs ++ [ xorg.xcursorgen ]; 935 + buildInputs = attrs.buildInputs ++ [ xorg.xorgproto ]; 936 configureFlags = [ "--with-cursordir=$(out)/share/icons" ]; 937 }); 938 ··· 942 buildInputs = attrs.buildInputs ++ lib.optional isDarwin bootstrap_cmds; 943 depsBuildBuild = [ buildPackages.stdenv.cc ]; 944 configureFlags = [ 945 + "--with-xserver=${xorg.xorgserver.out}/bin/X" 946 ] ++ lib.optionals isDarwin [ 947 "--with-bundle-id-prefix=org.nixos.xquartz" 948 "--with-launchdaemons-dir=\${out}/LaunchDaemons" ··· 960 # Avoid replacement of word-looking cpp's builtin macros in Nix's cross-compiled paths 961 substituteInPlace Makefile.in --replace "PROGCPPDEFS =" "PROGCPPDEFS = -Dlinux=linux -Dunix=unix" 962 ''; 963 + propagatedBuildInputs = attrs.propagatedBuildInputs or [] ++ [ xorg.xauth ] 964 + ++ lib.optionals isDarwin [ xorg.libX11 xorg.xorgproto ]; 965 postFixup = '' 966 substituteInPlace $out/bin/startx --replace $out/etc/X11/xinit/xserverrc /etc/X11/xinit/xserverrc 967 ''; ··· 978 rev = "31486f40f8e8f8923ca0799aea84b58799754564"; 979 sha256 = "sha256-nqT9VZDb2kAC72ot9UCdwEkM1uuP9NriJePulzrdZlM="; 980 }; 981 + buildInputs = attrs.buildInputs ++ [ xorg.libXScrnSaver xorg.libXfixes xorg.libXv xorg.pixman xorg.utilmacros ]; 982 nativeBuildInputs = attrs.nativeBuildInputs ++ [autoreconfHook ]; 983 configureFlags = [ "--with-default-dri=3" "--enable-tools" ]; 984 ··· 988 }); 989 990 xf86videoopenchrome = super.xf86videoopenchrome.overrideAttrs (attrs: { 991 + buildInputs = attrs.buildInputs ++ [ xorg.libXv ]; 992 patches = [ 993 # Pull upstream fix for -fno-common toolchains. 994 (fetchpatch {