libxcb-util: refactor, move to pkgs/by-name and rename from xorg.xcbutil

relevant changes:
- removes m4 from nativeBuildInputs and gperf from buildInputs as both
haven't been required since release 0.3.9 in 2012, see:
https://gitlab.freedesktop.org/xorg/lib/libxcb-util/-/blob/master/NEWS
- removes xorgproto from buildInputs (not needed according to
nix-check-deps), if it is needed, it wouldn't matter since it is
propagated by libxcb anyway.

+70 -55
+62
pkgs/by-name/li/libxcb-util/package.nix
··· 1 + { 2 + lib, 3 + stdenv, 4 + fetchurl, 5 + pkg-config, 6 + libxcb, 7 + writeScript, 8 + testers, 9 + }: 10 + stdenv.mkDerivation (finalAttrs: { 11 + pname = "libxcb-util"; 12 + version = "0.4.1"; 13 + 14 + outputs = [ 15 + "out" 16 + "dev" 17 + ]; 18 + 19 + src = fetchurl { 20 + url = "mirror://xorg/individual/xcb/xcb-util-${finalAttrs.version}.tar.xz"; 21 + hash = "sha256-Wr47u9jlTw+j7JRSkbfo+oz9PMzENxj4dYQw+UEm5RI="; 22 + }; 23 + 24 + strictDeps = true; 25 + 26 + nativeBuildInputs = [ pkg-config ]; 27 + buildInputs = [ libxcb ]; 28 + propagatedBuildInputs = [ libxcb ]; 29 + 30 + passthru = { 31 + updateScript = writeScript "update-${finalAttrs.pname}" '' 32 + #!/usr/bin/env nix-shell 33 + #!nix-shell -i bash -p common-updater-scripts 34 + version="$(list-directory-versions --pname xcb-util \ 35 + --url https://xorg.freedesktop.org/releases/individual/lib/ \ 36 + | sort -V | tail -n1)" 37 + update-source-version ${finalAttrs.pname} "$version" 38 + ''; 39 + tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage; 40 + }; 41 + 42 + meta = { 43 + description = "XCB utility libraries"; 44 + longDescription = '' 45 + The XCB util modules provides a number of libraries which sit on top of libxcb, the core 46 + X protocol library, and some of the extension libraries. These experimental libraries provid 47 + convenience functions and interfaces which make the raw X protocol more usable. Some of the 48 + libraries also provide client-side code which is not strictly part of the X protocol but which 49 + have traditionally been provided by Xlib. 50 + ''; 51 + homepage = "https://gitlab.freedesktop.org/xorg/lib/libxcb-util"; 52 + license = lib.licenses.x11; 53 + maintainers = [ ]; 54 + pkgConfigModules = [ 55 + "xcb-atom" 56 + "xcb-aux" 57 + "xcb-event" 58 + "xcb-util" 59 + ]; 60 + platforms = lib.platforms.unix; 61 + }; 62 + })
+2 -47
pkgs/servers/x11/xorg/default.nix
··· 16 16 libx11, 17 17 libxau, 18 18 libxcb, 19 + libxcb-util, 19 20 libxcvt, 20 21 libxcursor, 21 22 libxdmcp, ··· 101 102 libXv = libxv; 102 103 utilmacros = util-macros; 103 104 xcbproto = xcb-proto; 105 + xcbutil = libxcb-util; 104 106 xkeyboardconfig = xkeyboard-config; 105 107 xorgcffiles = xorg-cf-files; 106 108 xorgdocs = xorg-docs; ··· 3187 3189 passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage; 3188 3190 meta = { 3189 3191 pkgConfigModules = [ ]; 3190 - platforms = lib.platforms.unix; 3191 - }; 3192 - }) 3193 - ) { }; 3194 - 3195 - # THIS IS A GENERATED FILE. DO NOT EDIT! 3196 - xcbutil = callPackage ( 3197 - { 3198 - stdenv, 3199 - pkg-config, 3200 - fetchurl, 3201 - gperf, 3202 - libxcb, 3203 - xorgproto, 3204 - m4, 3205 - testers, 3206 - }: 3207 - stdenv.mkDerivation (finalAttrs: { 3208 - pname = "xcb-util"; 3209 - version = "0.4.1"; 3210 - builder = ./builder.sh; 3211 - src = fetchurl { 3212 - url = "mirror://xorg/individual/xcb/xcb-util-0.4.1.tar.xz"; 3213 - sha256 = "04p54r0zjc44fpw1hdy4rhygv37sx2vr2lllxjihykz5v2xkpgjs"; 3214 - }; 3215 - hardeningDisable = [ 3216 - "bindnow" 3217 - "relro" 3218 - ]; 3219 - strictDeps = true; 3220 - nativeBuildInputs = [ 3221 - pkg-config 3222 - m4 3223 - ]; 3224 - buildInputs = [ 3225 - gperf 3226 - libxcb 3227 - xorgproto 3228 - ]; 3229 - passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage; 3230 - meta = { 3231 - pkgConfigModules = [ 3232 - "xcb-atom" 3233 - "xcb-aux" 3234 - "xcb-event" 3235 - "xcb-util" 3236 - ]; 3237 3192 platforms = lib.platforms.unix; 3238 3193 }; 3239 3194 })
+6
pkgs/servers/x11/xorg/generate-expr-from-tarballs.pl
··· 46 46 $pcMap{"x11-xcb"} = "libX11"; 47 47 $pcMap{"xau"} = "libXau"; 48 48 $pcMap{"xbitmaps"} = "xbitmaps"; 49 + $pcMap{"xcb-atom"} = "xcbutil"; 50 + $pcMap{"xcb-aux"} = "xcbutil"; 51 + $pcMap{"xcb-event"} = "xcbutil"; 49 52 $pcMap{"xcb-proto"} = "xcbproto"; 53 + $pcMap{"xcb-util"} = "xcbutil"; 50 54 $pcMap{"xcursor"} = "libXcursor"; 51 55 $pcMap{"xdmcp"} = "libXdmcp"; 52 56 $pcMap{"xext"} = "libXext"; ··· 309 313 libx11, 310 314 libxau, 311 315 libxcb, 316 + libxcb-util, 312 317 libxcvt, 313 318 libxcursor, 314 319 libxdmcp, ··· 394 399 libXv = libxv; 395 400 utilmacros = util-macros; 396 401 xcbproto = xcb-proto; 402 + xcbutil = libxcb-util; 397 403 xkeyboardconfig = xkeyboard-config; 398 404 xorgcffiles = xorg-cf-files; 399 405 xorgdocs = xorg-docs;
-7
pkgs/servers/x11/xorg/overrides.nix
··· 437 437 438 438 xcalc = addMainProgram super.xcalc { }; 439 439 440 - xcbutil = super.xcbutil.overrideAttrs (attrs: { 441 - outputs = [ 442 - "out" 443 - "dev" 444 - ]; 445 - }); 446 - 447 440 xcbutilerrors = super.xcbutilerrors.overrideAttrs (attrs: { 448 441 outputs = [ 449 442 "out"
-1
pkgs/servers/x11/xorg/tarballs.list
··· 1 - mirror://xorg/individual/xcb/xcb-util-0.4.1.tar.xz 2 1 mirror://xorg/individual/xcb/xcb-util-errors-1.0.1.tar.xz 3 2 mirror://xorg/individual/xcb/xcb-util-image-0.4.1.tar.xz 4 3 mirror://xorg/individual/xcb/xcb-util-keysyms-0.4.1.tar.xz