Merge pull request #199912 from Artturin/xorgsplicing1

xorg: improve splicing situtation

authored by

Artturi and committed by
GitHub
9e1df3a0 f025edb6

+129 -71
+41 -7
pkgs/servers/x11/xorg/default.nix
··· 1 1 # THIS IS A GENERATED FILE. DO NOT EDIT! 2 - { lib, newScope, pixman }: 2 + { lib, pixman }: 3 3 4 - lib.makeScope newScope (self: with self; { 4 + self: with self; { 5 5 6 6 inherit pixman; 7 7 ··· 70 70 }) {}; 71 71 72 72 # THIS IS A GENERATED FILE. DO NOT EDIT! 73 - encodings = callPackage ({ stdenv, pkg-config, fetchurl }: stdenv.mkDerivation { 73 + encodings = callPackage ({ stdenv, pkg-config, fetchurl, mkfontscale }: stdenv.mkDerivation { 74 74 pname = "encodings"; 75 75 version = "1.0.5"; 76 76 builder = ./builder.sh; ··· 80 80 }; 81 81 hardeningDisable = [ "bindnow" "relro" ]; 82 82 strictDeps = true; 83 - nativeBuildInputs = [ pkg-config ]; 83 + nativeBuildInputs = [ pkg-config mkfontscale ]; 84 84 buildInputs = [ ]; 85 85 meta.platforms = lib.platforms.unix; 86 86 }) {}; ··· 99 99 nativeBuildInputs = [ pkg-config bdftopcf fontutil mkfontscale ]; 100 100 buildInputs = [ fontutil ]; 101 101 configureFlags = [ "--with-fontrootdir=$(out)/lib/X11/fonts" ]; 102 + postPatch = ''substituteInPlace configure --replace 'MAPFILES_PATH=`pkg-config' 'MAPFILES_PATH=`$PKG_CONFIG' ''; 102 103 meta.platforms = lib.platforms.unix; 103 104 }) {}; 104 105 ··· 116 117 nativeBuildInputs = [ pkg-config bdftopcf fontutil mkfontscale ]; 117 118 buildInputs = [ fontutil ]; 118 119 configureFlags = [ "--with-fontrootdir=$(out)/lib/X11/fonts" ]; 120 + postPatch = ''substituteInPlace configure --replace 'MAPFILES_PATH=`pkg-config' 'MAPFILES_PATH=`$PKG_CONFIG' ''; 119 121 meta.platforms = lib.platforms.unix; 120 122 }) {}; 121 123 ··· 133 135 nativeBuildInputs = [ pkg-config bdftopcf fontutil mkfontscale ]; 134 136 buildInputs = [ fontutil ]; 135 137 configureFlags = [ "--with-fontrootdir=$(out)/lib/X11/fonts" ]; 138 + postPatch = ''substituteInPlace configure --replace 'MAPFILES_PATH=`pkg-config' 'MAPFILES_PATH=`$PKG_CONFIG' ''; 136 139 meta.platforms = lib.platforms.unix; 137 140 }) {}; 138 141 ··· 150 153 nativeBuildInputs = [ pkg-config bdftopcf fontutil mkfontscale ]; 151 154 buildInputs = [ fontutil ]; 152 155 configureFlags = [ "--with-fontrootdir=$(out)/lib/X11/fonts" ]; 156 + postPatch = ''substituteInPlace configure --replace 'MAPFILES_PATH=`pkg-config' 'MAPFILES_PATH=`$PKG_CONFIG' ''; 153 157 meta.platforms = lib.platforms.unix; 154 158 }) {}; 155 159 ··· 167 171 nativeBuildInputs = [ pkg-config mkfontscale ]; 168 172 buildInputs = [ fontutil ]; 169 173 configureFlags = [ "--with-fontrootdir=$(out)/lib/X11/fonts" ]; 174 + postPatch = ''substituteInPlace configure --replace 'MAPFILES_PATH=`pkg-config' 'MAPFILES_PATH=`$PKG_CONFIG' ''; 170 175 meta.platforms = lib.platforms.unix; 171 176 }) {}; 172 177 ··· 200 205 nativeBuildInputs = [ pkg-config bdftopcf mkfontscale ]; 201 206 buildInputs = [ fontutil ]; 202 207 configureFlags = [ "--with-fontrootdir=$(out)/lib/X11/fonts" ]; 208 + postPatch = ''substituteInPlace configure --replace 'MAPFILES_PATH=`pkg-config' 'MAPFILES_PATH=`$PKG_CONFIG' ''; 203 209 meta.platforms = lib.platforms.unix; 204 210 }) {}; 205 211 ··· 217 223 nativeBuildInputs = [ pkg-config bdftopcf fontutil mkfontscale ]; 218 224 buildInputs = [ fontutil ]; 219 225 configureFlags = [ "--with-fontrootdir=$(out)/lib/X11/fonts" ]; 226 + postPatch = ''substituteInPlace configure --replace 'MAPFILES_PATH=`pkg-config' 'MAPFILES_PATH=`$PKG_CONFIG' ''; 220 227 meta.platforms = lib.platforms.unix; 221 228 }) {}; 222 229 ··· 234 241 nativeBuildInputs = [ pkg-config bdftopcf fontutil mkfontscale ]; 235 242 buildInputs = [ fontutil ]; 236 243 configureFlags = [ "--with-fontrootdir=$(out)/lib/X11/fonts" ]; 244 + postPatch = ''substituteInPlace configure --replace 'MAPFILES_PATH=`pkg-config' 'MAPFILES_PATH=`$PKG_CONFIG' ''; 237 245 meta.platforms = lib.platforms.unix; 238 246 }) {}; 239 247 ··· 251 259 nativeBuildInputs = [ pkg-config bdftopcf fontutil mkfontscale ]; 252 260 buildInputs = [ fontutil ]; 253 261 configureFlags = [ "--with-fontrootdir=$(out)/lib/X11/fonts" ]; 262 + postPatch = ''substituteInPlace configure --replace 'MAPFILES_PATH=`pkg-config' 'MAPFILES_PATH=`$PKG_CONFIG' ''; 254 263 meta.platforms = lib.platforms.unix; 255 264 }) {}; 256 265 ··· 268 277 nativeBuildInputs = [ pkg-config bdftopcf fontutil mkfontscale ]; 269 278 buildInputs = [ fontutil ]; 270 279 configureFlags = [ "--with-fontrootdir=$(out)/lib/X11/fonts" ]; 280 + postPatch = ''substituteInPlace configure --replace 'MAPFILES_PATH=`pkg-config' 'MAPFILES_PATH=`$PKG_CONFIG' ''; 271 281 meta.platforms = lib.platforms.unix; 272 282 }) {}; 273 283 ··· 285 295 nativeBuildInputs = [ pkg-config mkfontscale ]; 286 296 buildInputs = [ fontutil ]; 287 297 configureFlags = [ "--with-fontrootdir=$(out)/lib/X11/fonts" ]; 298 + postPatch = ''substituteInPlace configure --replace 'MAPFILES_PATH=`pkg-config' 'MAPFILES_PATH=`$PKG_CONFIG' ''; 288 299 meta.platforms = lib.platforms.unix; 289 300 }) {}; 290 301 ··· 302 313 nativeBuildInputs = [ pkg-config mkfontscale ]; 303 314 buildInputs = [ fontutil ]; 304 315 configureFlags = [ "--with-fontrootdir=$(out)/lib/X11/fonts" ]; 316 + postPatch = ''substituteInPlace configure --replace 'MAPFILES_PATH=`pkg-config' 'MAPFILES_PATH=`$PKG_CONFIG' ''; 305 317 meta.platforms = lib.platforms.unix; 306 318 }) {}; 307 319 ··· 319 331 nativeBuildInputs = [ pkg-config bdftopcf mkfontscale ]; 320 332 buildInputs = [ fontutil ]; 321 333 configureFlags = [ "--with-fontrootdir=$(out)/lib/X11/fonts" ]; 334 + postPatch = ''substituteInPlace configure --replace 'MAPFILES_PATH=`pkg-config' 'MAPFILES_PATH=`$PKG_CONFIG' ''; 322 335 meta.platforms = lib.platforms.unix; 323 336 }) {}; 324 337 ··· 336 349 nativeBuildInputs = [ pkg-config bdftopcf mkfontscale ]; 337 350 buildInputs = [ fontutil ]; 338 351 configureFlags = [ "--with-fontrootdir=$(out)/lib/X11/fonts" ]; 352 + postPatch = ''substituteInPlace configure --replace 'MAPFILES_PATH=`pkg-config' 'MAPFILES_PATH=`$PKG_CONFIG' ''; 339 353 meta.platforms = lib.platforms.unix; 340 354 }) {}; 341 355 ··· 353 367 nativeBuildInputs = [ pkg-config mkfontscale ]; 354 368 buildInputs = [ fontutil ]; 355 369 configureFlags = [ "--with-fontrootdir=$(out)/lib/X11/fonts" ]; 370 + postPatch = ''substituteInPlace configure --replace 'MAPFILES_PATH=`pkg-config' 'MAPFILES_PATH=`$PKG_CONFIG' ''; 356 371 meta.platforms = lib.platforms.unix; 357 372 }) {}; 358 373 ··· 370 385 nativeBuildInputs = [ pkg-config bdftopcf mkfontscale ]; 371 386 buildInputs = [ fontutil ]; 372 387 configureFlags = [ "--with-fontrootdir=$(out)/lib/X11/fonts" ]; 388 + postPatch = ''substituteInPlace configure --replace 'MAPFILES_PATH=`pkg-config' 'MAPFILES_PATH=`$PKG_CONFIG' ''; 373 389 meta.platforms = lib.platforms.unix; 374 390 }) {}; 375 391 ··· 387 403 nativeBuildInputs = [ pkg-config bdftopcf mkfontscale ]; 388 404 buildInputs = [ fontutil ]; 389 405 configureFlags = [ "--with-fontrootdir=$(out)/lib/X11/fonts" ]; 406 + postPatch = ''substituteInPlace configure --replace 'MAPFILES_PATH=`pkg-config' 'MAPFILES_PATH=`$PKG_CONFIG' ''; 390 407 meta.platforms = lib.platforms.unix; 391 408 }) {}; 392 409 ··· 404 421 nativeBuildInputs = [ pkg-config bdftopcf mkfontscale ]; 405 422 buildInputs = [ fontutil ]; 406 423 configureFlags = [ "--with-fontrootdir=$(out)/lib/X11/fonts" ]; 424 + postPatch = ''substituteInPlace configure --replace 'MAPFILES_PATH=`pkg-config' 'MAPFILES_PATH=`$PKG_CONFIG' ''; 407 425 meta.platforms = lib.platforms.unix; 408 426 }) {}; 409 427 ··· 421 439 nativeBuildInputs = [ pkg-config bdftopcf mkfontscale ]; 422 440 buildInputs = [ fontutil ]; 423 441 configureFlags = [ "--with-fontrootdir=$(out)/lib/X11/fonts" ]; 442 + postPatch = ''substituteInPlace configure --replace 'MAPFILES_PATH=`pkg-config' 'MAPFILES_PATH=`$PKG_CONFIG' ''; 424 443 meta.platforms = lib.platforms.unix; 425 444 }) {}; 426 445 ··· 438 457 nativeBuildInputs = [ pkg-config mkfontscale ]; 439 458 buildInputs = [ fontutil ]; 440 459 configureFlags = [ "--with-fontrootdir=$(out)/lib/X11/fonts" ]; 460 + postPatch = ''substituteInPlace configure --replace 'MAPFILES_PATH=`pkg-config' 'MAPFILES_PATH=`$PKG_CONFIG' ''; 441 461 meta.platforms = lib.platforms.unix; 442 462 }) {}; 443 463 ··· 455 475 nativeBuildInputs = [ pkg-config bdftopcf mkfontscale ]; 456 476 buildInputs = [ fontutil ]; 457 477 configureFlags = [ "--with-fontrootdir=$(out)/lib/X11/fonts" ]; 478 + postPatch = ''substituteInPlace configure --replace 'MAPFILES_PATH=`pkg-config' 'MAPFILES_PATH=`$PKG_CONFIG' ''; 458 479 meta.platforms = lib.platforms.unix; 459 480 }) {}; 460 481 ··· 472 493 nativeBuildInputs = [ pkg-config bdftopcf mkfontscale ]; 473 494 buildInputs = [ fontutil ]; 474 495 configureFlags = [ "--with-fontrootdir=$(out)/lib/X11/fonts" ]; 496 + postPatch = ''substituteInPlace configure --replace 'MAPFILES_PATH=`pkg-config' 'MAPFILES_PATH=`$PKG_CONFIG' ''; 475 497 meta.platforms = lib.platforms.unix; 476 498 }) {}; 477 499 ··· 489 511 nativeBuildInputs = [ pkg-config bdftopcf mkfontscale ]; 490 512 buildInputs = [ fontutil ]; 491 513 configureFlags = [ "--with-fontrootdir=$(out)/lib/X11/fonts" ]; 514 + postPatch = ''substituteInPlace configure --replace 'MAPFILES_PATH=`pkg-config' 'MAPFILES_PATH=`$PKG_CONFIG' ''; 492 515 meta.platforms = lib.platforms.unix; 493 516 }) {}; 494 517 ··· 506 529 nativeBuildInputs = [ pkg-config bdftopcf mkfontscale ]; 507 530 buildInputs = [ fontutil ]; 508 531 configureFlags = [ "--with-fontrootdir=$(out)/lib/X11/fonts" ]; 532 + postPatch = ''substituteInPlace configure --replace 'MAPFILES_PATH=`pkg-config' 'MAPFILES_PATH=`$PKG_CONFIG' ''; 509 533 meta.platforms = lib.platforms.unix; 510 534 }) {}; 511 535 ··· 523 547 nativeBuildInputs = [ pkg-config mkfontscale ]; 524 548 buildInputs = [ fontutil ]; 525 549 configureFlags = [ "--with-fontrootdir=$(out)/lib/X11/fonts" ]; 550 + postPatch = ''substituteInPlace configure --replace 'MAPFILES_PATH=`pkg-config' 'MAPFILES_PATH=`$PKG_CONFIG' ''; 526 551 meta.platforms = lib.platforms.unix; 527 552 }) {}; 528 553 ··· 540 565 nativeBuildInputs = [ pkg-config mkfontscale ]; 541 566 buildInputs = [ fontutil ]; 542 567 configureFlags = [ "--with-fontrootdir=$(out)/lib/X11/fonts" ]; 568 + postPatch = ''substituteInPlace configure --replace 'MAPFILES_PATH=`pkg-config' 'MAPFILES_PATH=`$PKG_CONFIG' ''; 543 569 meta.platforms = lib.platforms.unix; 544 570 }) {}; 545 571 ··· 557 583 nativeBuildInputs = [ pkg-config bdftopcf fontutil mkfontscale ]; 558 584 buildInputs = [ fontutil ]; 559 585 configureFlags = [ "--with-fontrootdir=$(out)/lib/X11/fonts" ]; 586 + postPatch = ''substituteInPlace configure --replace 'MAPFILES_PATH=`pkg-config' 'MAPFILES_PATH=`$PKG_CONFIG' ''; 560 587 meta.platforms = lib.platforms.unix; 561 588 }) {}; 562 589 ··· 574 601 nativeBuildInputs = [ pkg-config bdftopcf mkfontscale ]; 575 602 buildInputs = [ fontutil ]; 576 603 configureFlags = [ "--with-fontrootdir=$(out)/lib/X11/fonts" ]; 604 + postPatch = ''substituteInPlace configure --replace 'MAPFILES_PATH=`pkg-config' 'MAPFILES_PATH=`$PKG_CONFIG' ''; 577 605 meta.platforms = lib.platforms.unix; 578 606 }) {}; 579 607 ··· 591 619 nativeBuildInputs = [ pkg-config bdftopcf fontutil mkfontscale ]; 592 620 buildInputs = [ fontutil ]; 593 621 configureFlags = [ "--with-fontrootdir=$(out)/lib/X11/fonts" ]; 622 + postPatch = ''substituteInPlace configure --replace 'MAPFILES_PATH=`pkg-config' 'MAPFILES_PATH=`$PKG_CONFIG' ''; 594 623 meta.platforms = lib.platforms.unix; 595 624 }) {}; 596 625 ··· 608 637 nativeBuildInputs = [ pkg-config bdftopcf mkfontscale ]; 609 638 buildInputs = [ fontutil ]; 610 639 configureFlags = [ "--with-fontrootdir=$(out)/lib/X11/fonts" ]; 640 + postPatch = ''substituteInPlace configure --replace 'MAPFILES_PATH=`pkg-config' 'MAPFILES_PATH=`$PKG_CONFIG' ''; 611 641 meta.platforms = lib.platforms.unix; 612 642 }) {}; 613 643 ··· 625 655 nativeBuildInputs = [ pkg-config bdftopcf mkfontscale ]; 626 656 buildInputs = [ fontutil ]; 627 657 configureFlags = [ "--with-fontrootdir=$(out)/lib/X11/fonts" ]; 658 + postPatch = ''substituteInPlace configure --replace 'MAPFILES_PATH=`pkg-config' 'MAPFILES_PATH=`$PKG_CONFIG' ''; 628 659 meta.platforms = lib.platforms.unix; 629 660 }) {}; 630 661 ··· 642 673 nativeBuildInputs = [ pkg-config bdftopcf mkfontscale ]; 643 674 buildInputs = [ fontutil ]; 644 675 configureFlags = [ "--with-fontrootdir=$(out)/lib/X11/fonts" ]; 676 + postPatch = ''substituteInPlace configure --replace 'MAPFILES_PATH=`pkg-config' 'MAPFILES_PATH=`$PKG_CONFIG' ''; 645 677 meta.platforms = lib.platforms.unix; 646 678 }) {}; 647 679 ··· 691 723 nativeBuildInputs = [ pkg-config bdftopcf mkfontscale ]; 692 724 buildInputs = [ fontutil ]; 693 725 configureFlags = [ "--with-fontrootdir=$(out)/lib/X11/fonts" ]; 726 + postPatch = ''substituteInPlace configure --replace 'MAPFILES_PATH=`pkg-config' 'MAPFILES_PATH=`$PKG_CONFIG' ''; 694 727 meta.platforms = lib.platforms.unix; 695 728 }) {}; 696 729 ··· 708 741 nativeBuildInputs = [ pkg-config mkfontscale ]; 709 742 buildInputs = [ fontutil ]; 710 743 configureFlags = [ "--with-fontrootdir=$(out)/lib/X11/fonts" ]; 744 + postPatch = ''substituteInPlace configure --replace 'MAPFILES_PATH=`pkg-config' 'MAPFILES_PATH=`$PKG_CONFIG' ''; 711 745 meta.platforms = lib.platforms.unix; 712 746 }) {}; 713 747 ··· 1976 2010 }) {}; 1977 2011 1978 2012 # THIS IS A GENERATED FILE. DO NOT EDIT! 1979 - xdm = callPackage ({ stdenv, pkg-config, fetchurl, libX11, libXau, libXaw, libXdmcp, libXext, libXft, libXinerama, libXmu, libXpm, libxcrypt, xorgproto, libXrender, libXt }: stdenv.mkDerivation { 2013 + xdm = callPackage ({ stdenv, pkg-config, fetchurl, libX11, libXau, libXaw, libXdmcp, libXext, libXft, libXinerama, libXmu, libXpm, xorgproto, libXrender, libXt }: stdenv.mkDerivation { 1980 2014 pname = "xdm"; 1981 2015 version = "1.1.12"; 1982 2016 builder = ./builder.sh; ··· 1987 2021 hardeningDisable = [ "bindnow" "relro" ]; 1988 2022 strictDeps = true; 1989 2023 nativeBuildInputs = [ pkg-config ]; 1990 - buildInputs = [ libX11 libXau libXaw libXdmcp libXext libXft libXinerama libXmu libXpm xorgproto libXrender libXt libxcrypt ]; 2024 + buildInputs = [ libX11 libXau libXaw libXdmcp libXext libXft libXinerama libXmu libXpm xorgproto libXrender libXt ]; 1991 2025 meta.platforms = lib.platforms.unix; 1992 2026 }) {}; 1993 2027 ··· 3559 3593 meta.platforms = lib.platforms.unix; 3560 3594 }) {}; 3561 3595 3562 - }) 3596 + }
+5 -4
pkgs/servers/x11/xorg/generate-expr-from-tarballs.pl
··· 154 154 push @nativeRequires, "bdftopcf"; 155 155 } 156 156 157 - if ($file =~ /AC_PATH_PROG\(MKFONTSCALE/) { 157 + if ($file =~ /AC_PATH_PROG\(MKFONTSCALE/ || $file =~ /XORG_FONT_REQUIRED_PROG\(MKFONTSCALE/) { 158 158 push @nativeRequires, "mkfontscale"; 159 159 } 160 160 ··· 192 192 if ($isFont) { 193 193 push @requires, "fontutil"; 194 194 push @{$extraAttrs{$pkg}}, "configureFlags = [ \"--with-fontrootdir=\$(out)/lib/X11/fonts\" ];"; 195 + push @{$extraAttrs{$pkg}}, "postPatch = ''substituteInPlace configure --replace 'MAPFILES_PATH=`pkg-config' 'MAPFILES_PATH=`\$PKG_CONFIG' '';"; 195 196 } 196 197 197 198 sub process { ··· 250 251 print OUT ""; 251 252 print OUT <<EOF; 252 253 # THIS IS A GENERATED FILE. DO NOT EDIT! 253 - { lib, newScope, pixman }: 254 + { lib, pixman }: 254 255 255 - lib.makeScope newScope (self: with self; { 256 + self: with self; { 256 257 257 258 inherit pixman; 258 259 ··· 336 337 EOF 337 338 } 338 339 339 - print OUT "})\n"; 340 + print OUT "}\n"; 340 341 341 342 close OUT;
+47 -46
pkgs/servers/x11/xorg/overrides.nix
··· 4 4 freetype, tradcpp, fontconfig, meson, ninja, ed, fontforge, 5 5 libGL, spice-protocol, zlib, libGLU, dbus, libunwind, libdrm, 6 6 mesa, udev, bootstrap_cmds, bison, flex, clangStdenv, autoreconfHook, 7 - mcpp, libepoxy, openssl, pkg-config, llvm, libxslt, 8 - ApplicationServices, Carbon, Cocoa, Xplugin 7 + mcpp, libepoxy, openssl, pkg-config, llvm, libxslt, libxcrypt, 8 + ApplicationServices, Carbon, Cocoa, Xplugin, 9 + xorg 9 10 }: 10 11 11 12 let ··· 23 24 self: super: 24 25 { 25 26 bdftopcf = super.bdftopcf.overrideAttrs (attrs: { 26 - buildInputs = attrs.buildInputs ++ [ self.xorgproto ]; 27 + buildInputs = attrs.buildInputs ++ [ xorg.xorgproto ]; 27 28 }); 28 29 29 30 bitmap = super.bitmap.overrideAttrs (attrs: { ··· 32 33 paths=( 33 34 "$out/share/X11/%T/%N" 34 35 "$out/include/X11/%T/%N" 35 - "${self.xbitmaps}/include/X11/%T/%N" 36 + "${xorg.xbitmaps}/include/X11/%T/%N" 36 37 ) 37 38 wrapProgram "$out/bin/bitmap" \ 38 39 --suffix XFILESEARCHPATH : $(IFS=:; echo "''${paths[*]}") ··· 41 42 ''; 42 43 }); 43 44 44 - encodings = super.encodings.overrideAttrs (attrs: { 45 - nativeBuildInputs = attrs.nativeBuildInputs ++ [ self.mkfontscale ]; 46 - }); 47 - 48 45 editres = super.editres.overrideAttrs (attrs: { 49 46 hardeningDisable = [ "format" ]; 50 47 }); ··· 52 49 fontmiscmisc = super.fontmiscmisc.overrideAttrs (attrs: { 53 50 postInstall = 54 51 '' 55 - ALIASFILE=${self.fontalias}/share/fonts/X11/misc/fonts.alias 52 + ALIASFILE=${xorg.fontalias}/share/fonts/X11/misc/fonts.alias 56 53 test -f $ALIASFILE 57 54 cp $ALIASFILE $out/lib/X11/fonts/misc/fonts.alias 58 55 ''; ··· 63 60 }); 64 61 65 62 imake = super.imake.overrideAttrs (attrs: { 66 - inherit (self) xorgcffiles; 63 + inherit (xorg) xorgcffiles; 67 64 x11BuildHook = ./imake.sh; 68 65 patches = [./imake.patch ./imake-cc-wrapper-uberhack.patch]; 69 66 setupHook = ./imake-setup-hook.sh; ··· 74 71 inherit tradcpp; 75 72 }); 76 73 77 - mkfontdir = self.mkfontscale; 74 + mkfontdir = xorg.mkfontscale; 78 75 79 76 libxcb = super.libxcb.overrideAttrs (attrs: { 80 77 configureFlags = [ "--enable-xkb" "--enable-xinput" ] ··· 89 86 depsBuildBuild = [ 90 87 buildPackages.stdenv.cc 91 88 ] ++ lib.optionals stdenv.hostPlatform.isStatic [ 92 - (self.buildPackages.stdenv.cc.libc.static or null) 89 + (xorg.buildPackages.stdenv.cc.libc.static or null) 93 90 ]; 94 91 preConfigure = '' 95 92 sed 's,^as_dummy.*,as_dummy="\$PATH",' -i configure ··· 99 96 rm -rf $out/share/doc 100 97 ''; 101 98 CPP = lib.optionalString stdenv.isDarwin "clang -E -"; 102 - propagatedBuildInputs = attrs.propagatedBuildInputs or [] ++ [ self.xorgproto ]; 99 + propagatedBuildInputs = attrs.propagatedBuildInputs or [] ++ [ xorg.xorgproto ]; 103 100 }); 104 101 105 102 libAppleWM = super.libAppleWM.overrideAttrs (attrs: { ··· 111 108 112 109 libXau = super.libXau.overrideAttrs (attrs: { 113 110 outputs = [ "out" "dev" ]; 114 - propagatedBuildInputs = attrs.propagatedBuildInputs or [] ++ [ self.xorgproto ]; 111 + propagatedBuildInputs = attrs.propagatedBuildInputs or [] ++ [ xorg.xorgproto ]; 115 112 }); 116 113 117 114 libXdmcp = super.libXdmcp.overrideAttrs (attrs: { ··· 152 149 ''; 153 150 }); 154 151 152 + xdm = super.xdm.overrideAttrs (attrs: { 153 + buildInputs = attrs.buildInputs ++ [ libxcrypt ]; 154 + }); 155 + 155 156 # Propagate some build inputs because of header file dependencies. 156 157 # Note: most of these are in Requires.private, so maybe builder.sh 157 158 # should propagate them automatically. ··· 161 162 ''; 162 163 configureFlags = attrs.configureFlags or [] 163 164 ++ malloc0ReturnsNullCrossFlag; 164 - propagatedBuildInputs = attrs.propagatedBuildInputs or [] ++ [ self.libSM ]; 165 + propagatedBuildInputs = attrs.propagatedBuildInputs or [] ++ [ xorg.libSM ]; 165 166 depsBuildBuild = [ buildPackages.stdenv.cc ]; 166 167 CPP = if stdenv.isDarwin then "clang -E -" else "${stdenv.cc.targetPrefix}cc -E -"; 167 168 outputs = [ "out" "dev" "devdoc" ]; ··· 181 182 182 183 libXcomposite = super.libXcomposite.overrideAttrs (attrs: { 183 184 outputs = [ "out" "dev" ]; 184 - propagatedBuildInputs = attrs.propagatedBuildInputs or [] ++ [ self.libXfixes ]; 185 + propagatedBuildInputs = attrs.propagatedBuildInputs or [] ++ [ xorg.libXfixes ]; 185 186 }); 186 187 187 188 libXaw = super.libXaw.overrideAttrs (attrs: { 188 189 outputs = [ "out" "dev" "devdoc" ]; 189 - propagatedBuildInputs = attrs.propagatedBuildInputs or [] ++ [ self.libXmu ]; 190 + propagatedBuildInputs = attrs.propagatedBuildInputs or [] ++ [ xorg.libXmu ]; 190 191 }); 191 192 192 193 libXcursor = super.libXcursor.overrideAttrs (attrs: { ··· 199 200 200 201 libXft = super.libXft.overrideAttrs (attrs: { 201 202 outputs = [ "out" "dev" ]; 202 - propagatedBuildInputs = attrs.propagatedBuildInputs or [] ++ [ self.libXrender freetype fontconfig ]; 203 + propagatedBuildInputs = attrs.propagatedBuildInputs or [] ++ [ xorg.libXrender freetype fontconfig ]; 203 204 configureFlags = attrs.configureFlags or [] 204 205 ++ malloc0ReturnsNullCrossFlag; 205 206 ··· 214 215 215 216 libXext = super.libXext.overrideAttrs (attrs: { 216 217 outputs = [ "out" "dev" "man" "doc" ]; 217 - propagatedBuildInputs = attrs.propagatedBuildInputs or [] ++ [ self.xorgproto self.libXau ]; 218 + propagatedBuildInputs = attrs.propagatedBuildInputs or [] ++ [ xorg.xorgproto xorg.libXau ]; 218 219 configureFlags = attrs.configureFlags or [] 219 220 ++ malloc0ReturnsNullCrossFlag; 220 221 }); ··· 225 226 226 227 libXi = super.libXi.overrideAttrs (attrs: { 227 228 outputs = [ "out" "dev" "man" "doc" ]; 228 - propagatedBuildInputs = attrs.propagatedBuildInputs or [] ++ [ self.libXfixes self.libXext ]; 229 + propagatedBuildInputs = attrs.propagatedBuildInputs or [] ++ [ xorg.libXfixes xorg.libXext ]; 229 230 configureFlags = lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [ 230 231 "xorg_cv_malloc0_returns_null=no" 231 232 ] ++ lib.optional stdenv.hostPlatform.isStatic "--disable-shared"; ··· 246 247 outputs = [ "out" "dev" ]; 247 248 configureFlags = attrs.configureFlags or [] 248 249 ++ malloc0ReturnsNullCrossFlag; 249 - propagatedBuildInputs = attrs.propagatedBuildInputs or [] ++ [ self.libXrender ]; 250 + propagatedBuildInputs = attrs.propagatedBuildInputs or [] ++ [ xorg.libXrender ]; 250 251 }); 251 252 252 253 libSM = super.libSM.overrideAttrs (attrs: { 253 254 outputs = [ "out" "dev" "doc" ]; 254 - propagatedBuildInputs = attrs.propagatedBuildInputs or [] ++ [ self.libICE ]; 255 + propagatedBuildInputs = attrs.propagatedBuildInputs or [] ++ [ xorg.libICE ]; 255 256 }); 256 257 257 258 libXrender = super.libXrender.overrideAttrs (attrs: { 258 259 outputs = [ "out" "dev" "doc" ]; 259 260 configureFlags = attrs.configureFlags or [] 260 261 ++ malloc0ReturnsNullCrossFlag; 261 - propagatedBuildInputs = attrs.propagatedBuildInputs or [] ++ [ self.xorgproto ]; 262 + propagatedBuildInputs = attrs.propagatedBuildInputs or [] ++ [ xorg.xorgproto ]; 262 263 }); 263 264 264 265 libXres = super.libXres.overrideAttrs (attrs: { 265 266 outputs = [ "out" "dev" "devdoc" ]; 266 - buildInputs = with self; attrs.buildInputs ++ [ utilmacros ]; 267 + buildInputs = with xorg; attrs.buildInputs ++ [ utilmacros ]; 267 268 configureFlags = attrs.configureFlags or [] 268 269 ++ malloc0ReturnsNullCrossFlag; 269 270 }); 270 271 271 272 libXScrnSaver = super.libXScrnSaver.overrideAttrs (attrs: { 272 - buildInputs = with self; attrs.buildInputs ++ [ utilmacros ]; 273 + buildInputs = with xorg; attrs.buildInputs ++ [ utilmacros ]; 273 274 configureFlags = attrs.configureFlags or [] 274 275 ++ malloc0ReturnsNullCrossFlag; 275 276 }); ··· 284 285 outputs = [ "out" "dev" "doc" ]; 285 286 configureFlags = attrs.configureFlags or [] 286 287 ++ malloc0ReturnsNullCrossFlag; 287 - buildInputs = attrs.buildInputs ++ [self.xorgproto]; 288 + buildInputs = attrs.buildInputs ++ [xorg.xorgproto]; 288 289 }); 289 290 290 291 libXp = super.libXp.overrideAttrs (attrs: { ··· 297 298 }); 298 299 299 300 libXpresent = super.libXpresent.overrideAttrs (attrs: { 300 - buildInputs = with self; attrs.buildInputs ++ [ libXext libXfixes libXrandr ]; 301 + buildInputs = with xorg; attrs.buildInputs ++ [ libXext libXfixes libXrandr ]; 301 302 }); 302 303 303 304 libxkbfile = super.libxkbfile.overrideAttrs (attrs: { ··· 321 322 postInstall = 322 323 '' 323 324 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 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 326 327 ''; 327 328 }); 328 329 ··· 444 445 445 446 xf86videoati = super.xf86videoati.overrideAttrs (attrs: { 446 447 nativeBuildInputs = attrs.nativeBuildInputs ++ [ autoreconfHook ]; 447 - buildInputs = attrs.buildInputs ++ [ self.utilmacros ]; 448 + buildInputs = attrs.buildInputs ++ [ xorg.utilmacros ]; 448 449 patches = [ 449 450 (fetchpatch { 450 451 url = "https://gitlab.freedesktop.org/xorg/driver/xf86-video-ati/-/commit/e0511968d04b42abf11bc0ffb387f143582bc144.patch"; ··· 455 456 456 457 xf86videonouveau = super.xf86videonouveau.overrideAttrs (attrs: { 457 458 nativeBuildInputs = attrs.nativeBuildInputs ++ [ autoreconfHook ]; 458 - buildInputs = attrs.buildInputs ++ [ self.utilmacros ]; 459 + buildInputs = attrs.buildInputs ++ [ xorg.utilmacros ]; 459 460 }); 460 461 461 462 xf86videoglint = super.xf86videoglint.overrideAttrs (attrs: { 462 463 nativeBuildInputs = attrs.nativeBuildInputs ++ [ autoreconfHook ]; 463 - buildInputs = attrs.buildInputs ++ [ self.utilmacros ]; 464 + buildInputs = attrs.buildInputs ++ [ xorg.utilmacros ]; 464 465 # https://gitlab.freedesktop.org/xorg/driver/xf86-video-glint/-/issues/1 465 466 meta = attrs.meta // { broken = true; }; 466 467 }); ··· 599 600 }); 600 601 601 602 xvinfo = super.xvinfo.overrideAttrs (attrs: { 602 - buildInputs = attrs.buildInputs ++ [self.libXext]; 603 + buildInputs = attrs.buildInputs ++ [xorg.libXext]; 603 604 }); 604 605 605 606 xkbcomp = super.xkbcomp.overrideAttrs (attrs: { 606 - configureFlags = [ "--with-xkb-config-root=${self.xkeyboardconfig}/share/X11/xkb" ]; 607 + configureFlags = [ "--with-xkb-config-root=${xorg.xkeyboardconfig}/share/X11/xkb" ]; 607 608 }); 608 609 609 610 xkeyboardconfig = super.xkeyboardconfig.overrideAttrs (attrs: { ··· 693 694 EOF 694 695 ''; 695 696 in 696 - self.xkeyboardconfig.overrideAttrs (old: { 697 + xorg.xkeyboardconfig.overrideAttrs (old: { 697 698 buildInputs = old.buildInputs ++ [ automake ]; 698 699 postPatch = with lib; concatStrings (mapAttrsToList patchIn layouts); 699 700 }); ··· 714 715 mesonFlags = [ "-Dlegacy=true" ]; 715 716 }); 716 717 717 - xorgserver = with self; super.xorgserver.overrideAttrs (attrs_passed: 718 + xorgserver = with xorg; super.xorgserver.overrideAttrs (attrs_passed: 718 719 # exchange attrs if abiCompat is set 719 720 let 720 721 version = lib.getVersion attrs_passed; ··· 821 822 "--enable-xcsecurity" # enable SECURITY extension 822 823 "--with-default-font-path=" # there were only paths containing "${prefix}", 823 824 # 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" 825 + "--with-xkb-bin-directory=${xorg.xkbcomp}/bin" 826 + "--with-xkb-path=${xorg.xkeyboardconfig}/share/X11/xkb" 826 827 "--with-xkb-output=$out/share/X11/xkb/compiled" 827 828 "--with-log-dir=/var/log" 828 829 "--enable-glamor" ··· 842 843 ''; 843 844 passthru.version = version; # needed by virtualbox guest additions 844 845 } else { 845 - nativeBuildInputs = attrs.nativeBuildInputs ++ [ autoreconfHook self.utilmacros self.fontutil ]; 846 + nativeBuildInputs = attrs.nativeBuildInputs ++ [ autoreconfHook xorg.utilmacros xorg.fontutil ]; 846 847 buildInputs = commonBuildInputs ++ [ 847 848 bootstrap_cmds automake autoconf 848 849 Xplugin Carbon Cocoa ··· 930 931 }); 931 932 932 933 xcursorthemes = super.xcursorthemes.overrideAttrs (attrs: { 933 - nativeBuildInputs = attrs.nativeBuildInputs ++ [ self.xcursorgen ]; 934 - buildInputs = attrs.buildInputs ++ [ self.xorgproto ]; 934 + nativeBuildInputs = attrs.nativeBuildInputs ++ [ xorg.xcursorgen ]; 935 + buildInputs = attrs.buildInputs ++ [ xorg.xorgproto ]; 935 936 configureFlags = [ "--with-cursordir=$(out)/share/icons" ]; 936 937 }); 937 938 ··· 941 942 buildInputs = attrs.buildInputs ++ lib.optional isDarwin bootstrap_cmds; 942 943 depsBuildBuild = [ buildPackages.stdenv.cc ]; 943 944 configureFlags = [ 944 - "--with-xserver=${self.xorgserver.out}/bin/X" 945 + "--with-xserver=${xorg.xorgserver.out}/bin/X" 945 946 ] ++ lib.optionals isDarwin [ 946 947 "--with-bundle-id-prefix=org.nixos.xquartz" 947 948 "--with-launchdaemons-dir=\${out}/LaunchDaemons" ··· 959 960 # Avoid replacement of word-looking cpp's builtin macros in Nix's cross-compiled paths 960 961 substituteInPlace Makefile.in --replace "PROGCPPDEFS =" "PROGCPPDEFS = -Dlinux=linux -Dunix=unix" 961 962 ''; 962 - propagatedBuildInputs = attrs.propagatedBuildInputs or [] ++ [ self.xauth ] 963 - ++ lib.optionals isDarwin [ self.libX11 self.xorgproto ]; 963 + propagatedBuildInputs = attrs.propagatedBuildInputs or [] ++ [ xorg.xauth ] 964 + ++ lib.optionals isDarwin [ xorg.libX11 xorg.xorgproto ]; 964 965 postFixup = '' 965 966 substituteInPlace $out/bin/startx --replace $out/etc/X11/xinit/xserverrc /etc/X11/xinit/xserverrc 966 967 ''; ··· 977 978 rev = "31486f40f8e8f8923ca0799aea84b58799754564"; 978 979 sha256 = "sha256-nqT9VZDb2kAC72ot9UCdwEkM1uuP9NriJePulzrdZlM="; 979 980 }; 980 - buildInputs = attrs.buildInputs ++ [ self.libXScrnSaver self.libXfixes self.libXv self.pixman self.utilmacros ]; 981 + buildInputs = attrs.buildInputs ++ [ xorg.libXScrnSaver xorg.libXfixes xorg.libXv xorg.pixman xorg.utilmacros ]; 981 982 nativeBuildInputs = attrs.nativeBuildInputs ++ [autoreconfHook ]; 982 983 configureFlags = [ "--with-default-dri=3" "--enable-tools" ]; 983 984 ··· 987 988 }); 988 989 989 990 xf86videoopenchrome = super.xf86videoopenchrome.overrideAttrs (attrs: { 990 - buildInputs = attrs.buildInputs ++ [ self.libXv ]; 991 + buildInputs = attrs.buildInputs ++ [ xorg.libXv ]; 991 992 patches = [ 992 993 # Pull upstream fix for -fno-common toolchains. 993 994 (fetchpatch {
+1 -1
pkgs/servers/x11/xorg/tarballs.list
··· 217 217 mirror://xorg/individual/util/makedepend-1.0.6.tar.bz2 218 218 mirror://xorg/individual/util/util-macros-1.19.3.tar.bz2 219 219 mirror://xorg/individual/util/xorg-cf-files-1.0.7.tar.bz2 220 - mirror://xorg/individual/xserver/xorg-server-1.20.13.tar.xz 220 + mirror://xorg/individual/xserver/xorg-server-1.20.14.tar.xz
+35 -13
pkgs/top-level/all-packages.nix
··· 24628 24628 inherit (darwin.apple_sdk.libs) Xplugin; 24629 24629 }; 24630 24630 24631 - # Use `lib.callPackageWith __splicedPackages` rather than plain `callPackage` 24632 - # so as not to have the newly bound xorg items already in scope, which would 24633 - # have created a cycle. 24634 - xorg = recurseIntoAttrs ((lib.callPackageWith __splicedPackages ../servers/x11/xorg { 24635 - }).overrideScope' (lib.callPackageWith __splicedPackages ../servers/x11/xorg/overrides.nix { 24636 - inherit (darwin.apple_sdk.frameworks) ApplicationServices Carbon Cocoa; 24637 - inherit (darwin.apple_sdk.libs) Xplugin; 24638 - inherit (buildPackages.darwin) bootstrap_cmds; 24639 - udev = if stdenv.isLinux then udev else null; 24640 - libdrm = if stdenv.isLinux then libdrm else null; 24641 - abiCompat = config.xorg.abiCompat # `config` because we have no `xorg.override` 24642 - or (if stdenv.isDarwin then "1.18" else null); # 1.19 needs fixing on Darwin 24643 - })); 24631 + xorg = let 24632 + otherSplices = { 24633 + selfBuildBuild = pkgsBuildBuild.xorg; 24634 + selfBuildHost = pkgsBuildHost.xorg; 24635 + selfBuildTarget = pkgsBuildTarget.xorg; 24636 + selfHostHost = pkgsHostHost.xorg; 24637 + selfTargetTarget = pkgsTargetTarget.xorg or { }; 24638 + }; 24639 + keep = _self: { }; 24640 + extra = _spliced0: { }; 24641 + 24642 + # Use `lib.callPackageWith __splicedPackages` rather than plain `callPackage` 24643 + # so as not to have the newly bound xorg items already in scope, which would 24644 + # have created a cycle. 24645 + overrides = lib.callPackageWith __splicedPackages ../servers/x11/xorg/overrides.nix { 24646 + inherit (darwin.apple_sdk.frameworks) ApplicationServices Carbon Cocoa; 24647 + inherit (darwin.apple_sdk.libs) Xplugin; 24648 + inherit (buildPackages.darwin) bootstrap_cmds; 24649 + udev = if stdenv.isLinux then udev else null; 24650 + libdrm = if stdenv.isLinux then libdrm else null; 24651 + abiCompat = config.xorg.abiCompat # `config` because we have no `xorg.override` 24652 + or (if stdenv.isDarwin then "1.18" else null); # 1.19 needs fixing on Darwin 24653 + }; 24654 + 24655 + generatedPackages = lib.callPackageWith __splicedPackages ../servers/x11/xorg/default.nix {}; 24656 + 24657 + xorgPackages = lib.makeScopeWithSplicing 24658 + splicePackages 24659 + newScope 24660 + otherSplices 24661 + keep 24662 + extra 24663 + (lib.extends overrides generatedPackages); 24664 + 24665 + in recurseIntoAttrs xorgPackages; 24644 24666 24645 24667 xorg-autoconf = callPackage ../development/tools/misc/xorg-autoconf { }; 24646 24668