lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

libxcb: refactor and move to pkgs/by-name from xorg namespace

this removes all the configure flags because they are either default in
stdenv (--disable-shared on static) or are enabled by default and thus
not needed anymore

this also removes libxslt from the builtInputs since it seems to not be
needed according to nix-check-deps (if this makes problems please re-add it)

authored by

Zitrone and committed by
Alyssa Ross
316108c9 6ef27624

+104 -124
+94
pkgs/by-name/li/libxcb/package.nix
··· 1 + { 2 + lib, 3 + stdenv, 4 + fetchurl, 5 + pkg-config, 6 + python3, 7 + libpthread-stubs, 8 + libxau, 9 + libxdmcp, 10 + xcb-proto, 11 + windows, 12 + writeScript, 13 + testers, 14 + }: 15 + stdenv.mkDerivation (finalAttrs: { 16 + pname = "libxcb"; 17 + version = "1.17.0"; 18 + 19 + outputs = [ 20 + "out" 21 + "dev" 22 + "man" 23 + "doc" 24 + ]; 25 + 26 + src = fetchurl { 27 + url = "mirror://xorg/individual/lib/libxcb-${finalAttrs.version}.tar.xz"; 28 + hash = "sha256-WZ6/mZZxD+pxYi5uGE86itW0PQ5fqMTkBxI8iKWabVU="; 29 + }; 30 + 31 + strictDeps = true; 32 + 33 + nativeBuildInputs = [ 34 + pkg-config 35 + python3 36 + ]; 37 + 38 + buildInputs = [ 39 + libpthread-stubs 40 + libxau 41 + libxdmcp 42 + xcb-proto 43 + ]; 44 + 45 + # $dev/include/xcb/xcb.h includes pthread.h 46 + propagatedBuildInputs = lib.optional stdenv.hostPlatform.isMinGW windows.mingw_w64_pthreads; 47 + 48 + passthru = { 49 + updateScript = writeScript "update-${finalAttrs.pname}" '' 50 + #!/usr/bin/env nix-shell 51 + #!nix-shell -i bash -p common-updater-scripts 52 + version="$(list-directory-versions --pname ${finalAttrs.pname} \ 53 + --url https://xorg.freedesktop.org/releases/individual/lib/ \ 54 + | sort -V | tail -n1)" 55 + update-source-version ${finalAttrs.pname} "$version" 56 + ''; 57 + tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage; 58 + }; 59 + 60 + meta = { 61 + description = "C interface to the X Window System protocol"; 62 + homepage = "https://gitlab.freedesktop.org/xorg/lib/libxcb"; 63 + # gitlab wrongly says X11 Distribute Modifications 64 + license = lib.licenses.x11; 65 + maintainers = [ ]; 66 + pkgConfigModules = [ 67 + "xcb" 68 + "xcb-composite" 69 + "xcb-damage" 70 + "xcb-dpms" 71 + "xcb-dri2" 72 + "xcb-dri3" 73 + "xcb-glx" 74 + "xcb-present" 75 + "xcb-randr" 76 + "xcb-record" 77 + "xcb-render" 78 + "xcb-res" 79 + "xcb-screensaver" 80 + "xcb-shape" 81 + "xcb-shm" 82 + "xcb-sync" 83 + "xcb-xf86dri" 84 + "xcb-xfixes" 85 + "xcb-xinerama" 86 + "xcb-xinput" 87 + "xcb-xkb" 88 + "xcb-xtest" 89 + "xcb-xv" 90 + "xcb-xvmc" 91 + ]; 92 + platforms = lib.platforms.unix ++ lib.platforms.windows; 93 + }; 94 + })
+2 -76
pkgs/servers/x11/xorg/default.nix
··· 9 9 libpciaccess, 10 10 libpthread-stubs, 11 11 libxau, 12 + libxcb, 12 13 libxcvt, 13 14 libxdmcp, 14 15 lndir, ··· 34 35 gccmakedep 35 36 imake 36 37 libpciaccess 38 + libxcb 37 39 libxcvt 38 40 lndir 39 41 luit ··· 3100 3102 passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage; 3101 3103 meta = { 3102 3104 pkgConfigModules = [ "fontenc" ]; 3103 - platforms = lib.platforms.unix; 3104 - }; 3105 - }) 3106 - ) { }; 3107 - 3108 - # THIS IS A GENERATED FILE. DO NOT EDIT! 3109 - libxcb = callPackage ( 3110 - { 3111 - stdenv, 3112 - pkg-config, 3113 - fetchurl, 3114 - libxslt, 3115 - libpthreadstubs, 3116 - libXau, 3117 - xcbproto, 3118 - libXdmcp, 3119 - python3, 3120 - testers, 3121 - }: 3122 - stdenv.mkDerivation (finalAttrs: { 3123 - pname = "libxcb"; 3124 - version = "1.17.0"; 3125 - builder = ./builder.sh; 3126 - src = fetchurl { 3127 - url = "mirror://xorg/individual/lib/libxcb-1.17.0.tar.xz"; 3128 - sha256 = "0mbdkajqhg0j0zjc9a2z1qyv9mca797ihvifc9qyl3vijscvz7jr"; 3129 - }; 3130 - hardeningDisable = [ 3131 - "bindnow" 3132 - "relro" 3133 - ]; 3134 - strictDeps = true; 3135 - nativeBuildInputs = [ 3136 - pkg-config 3137 - python3 3138 - ]; 3139 - buildInputs = [ 3140 - libxslt 3141 - libpthreadstubs 3142 - libXau 3143 - xcbproto 3144 - libXdmcp 3145 - ]; 3146 - passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage; 3147 - meta = { 3148 - pkgConfigModules = [ 3149 - "xcb" 3150 - "xcb-composite" 3151 - "xcb-damage" 3152 - "xcb-dbe" 3153 - "xcb-dpms" 3154 - "xcb-dri2" 3155 - "xcb-dri3" 3156 - "xcb-ge" 3157 - "xcb-glx" 3158 - "xcb-present" 3159 - "xcb-randr" 3160 - "xcb-record" 3161 - "xcb-render" 3162 - "xcb-res" 3163 - "xcb-screensaver" 3164 - "xcb-shape" 3165 - "xcb-shm" 3166 - "xcb-sync" 3167 - "xcb-xevie" 3168 - "xcb-xf86dri" 3169 - "xcb-xfixes" 3170 - "xcb-xinerama" 3171 - "xcb-xinput" 3172 - "xcb-xkb" 3173 - "xcb-xprint" 3174 - "xcb-xselinux" 3175 - "xcb-xtest" 3176 - "xcb-xv" 3177 - "xcb-xvmc" 3178 - ]; 3179 3105 platforms = lib.platforms.unix; 3180 3106 }; 3181 3107 })
+8
pkgs/servers/x11/xorg/generate-expr-from-tarballs.pl
··· 49 49 $pcMap{"\$DRI3PROTO"} = "xorgproto"; 50 50 $pcMap{"\$DRI2PROTO"} = "xorgproto"; 51 51 $pcMap{"\${XKBMODULE}"} = "libxkbfile"; 52 + foreach my $mod ("xcb", "xcb-composite", "xcb-damage", "xcb-dpms", "xcb-dri2", "xcb-dri3", 53 + "xcb-glx", "xcb-present", "xcb-randr", "xcb-record", "xcb-render", "xcb-res", "xcb-screensaver", 54 + "xcb-shape", "xcb-shm", "xcb-sync", "xcb-xf86dri", "xcb-xfixes", "xcb-xinerama", "xcb-xinput", 55 + "xcb-xkb", "xcb-xtest", "xcb-xv", "xcb-xvmc") { 56 + $pcMap{$mod} = "libxcb"; 57 + } 52 58 foreach my $mod ("applewmproto", "bigreqsproto", "compositeproto", "damageproto", "dmxproto", 53 59 "dpmsproto", "dri2proto", "dri3proto", "evieproto", "fixesproto", "fontcacheproto", 54 60 "fontsproto", "glproto", "inputproto", "kbproto", "lg3dproto", "presentproto", ··· 285 291 libpciaccess, 286 292 libpthread-stubs, 287 293 libxau, 294 + libxcb, 288 295 libxcvt, 289 296 libxdmcp, 290 297 lndir, ··· 310 317 gccmakedep 311 318 imake 312 319 libpciaccess 320 + libxcb 313 321 libxcvt 314 322 lndir 315 323 luit
-47
pkgs/servers/x11/xorg/overrides.nix
··· 151 151 152 152 mkfontdir = xorg.mkfontscale; 153 153 154 - libxcb = super.libxcb.overrideAttrs (attrs: { 155 - # $dev/include/xcb/xcb.h includes pthread.h 156 - propagatedBuildInputs = 157 - attrs.propagatedBuildInputs or [ ] 158 - ++ lib.optional stdenv.hostPlatform.isMinGW windows.mingw_w64_pthreads; 159 - configureFlags = [ 160 - "--enable-xkb" 161 - "--enable-xinput" 162 - ] 163 - ++ lib.optional stdenv.hostPlatform.isStatic "--disable-shared"; 164 - outputs = [ 165 - "out" 166 - "dev" 167 - "man" 168 - "doc" 169 - ]; 170 - meta = attrs.meta // { 171 - pkgConfigModules = [ 172 - "xcb-composite" 173 - "xcb-damage" 174 - "xcb-dpms" 175 - "xcb-dri2" 176 - "xcb-dri3" 177 - "xcb-glx" 178 - "xcb-present" 179 - "xcb-randr" 180 - "xcb-record" 181 - "xcb-render" 182 - "xcb-res" 183 - "xcb-screensaver" 184 - "xcb-shape" 185 - "xcb-shm" 186 - "xcb-sync" 187 - "xcb-xf86dri" 188 - "xcb-xfixes" 189 - "xcb-xinerama" 190 - "xcb-xinput" 191 - "xcb-xkb" 192 - "xcb-xtest" 193 - "xcb-xv" 194 - "xcb-xvmc" 195 - "xcb" 196 - ]; 197 - platforms = lib.platforms.unix ++ lib.platforms.windows; 198 - }; 199 - }); 200 - 201 154 libX11 = super.libX11.overrideAttrs (attrs: { 202 155 outputs = [ 203 156 "out"
-1
pkgs/servers/x11/xorg/tarballs.list
··· 163 163 mirror://xorg/individual/lib/libWindowsWM-1.0.1.tar.bz2 164 164 mirror://xorg/individual/lib/libX11-1.8.12.tar.xz 165 165 mirror://xorg/individual/lib/libXaw-1.0.16.tar.xz 166 - mirror://xorg/individual/lib/libxcb-1.17.0.tar.xz 167 166 mirror://xorg/individual/lib/libXcomposite-0.4.6.tar.xz 168 167 mirror://xorg/individual/lib/libXcursor-1.2.3.tar.xz 169 168 mirror://xorg/individual/lib/libXdamage-1.1.6.tar.xz