xcb-proto: refactor, move to pkgs/by-name and rename from xorg.xcbproto

Zitrone e85c9ea8 69fbbd33

+51 -36
+46
pkgs/by-name/xc/xcb-proto/package.nix
···
··· 1 + { 2 + lib, 3 + stdenv, 4 + fetchurl, 5 + pkg-config, 6 + python3, 7 + testers, 8 + writeScript, 9 + }: 10 + stdenv.mkDerivation (finalAttrs: { 11 + pname = "xcb-proto"; 12 + version = "1.17.0"; 13 + 14 + src = fetchurl { 15 + url = "mirror://xorg/individual/proto/xcb-proto-${finalAttrs.version}.tar.xz"; 16 + hash = "sha256-LBus0hEPR5n3TebrtxS5TPb4D7ESMWsSGUgP0iViFIw="; 17 + }; 18 + 19 + strictDeps = true; 20 + 21 + nativeBuildInputs = [ 22 + pkg-config 23 + python3 24 + ]; 25 + 26 + passthru = { 27 + tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage; 28 + updateScript = writeScript "update-${finalAttrs.pname}" '' 29 + #!/usr/bin/env nix-shell 30 + #!nix-shell -i bash -p common-updater-scripts 31 + version="$(list-directory-versions --pname ${finalAttrs.pname} \ 32 + --url https://xorg.freedesktop.org/releases/individual/proto/ \ 33 + | sort -V | tail -n1)" 34 + update-source-version ${finalAttrs.pname} "$version" 35 + ''; 36 + }; 37 + 38 + meta = { 39 + description = "XML-XCB protocol descriptions used by libxcb for the X11 protocol & extensions"; 40 + homepage = "https://gitlab.freedesktop.org/xorg/proto/xcbproto"; 41 + license = lib.licenses.x11; 42 + maintainers = [ ]; 43 + pkgConfigModules = [ "xcb-proto" ]; 44 + platforms = lib.platforms.unix; 45 + }; 46 + })
+2 -35
pkgs/servers/x11/xorg/default.nix
··· 12 pixman, 13 util-macros, 14 xbitmaps, 15 }: 16 17 self: with self; { ··· 29 fontutil = font-util; 30 libpthreadstubs = libpthread-stubs; 31 utilmacros = util-macros; 32 33 # THIS IS A GENERATED FILE. DO NOT EDIT! 34 appres = callPackage ( ··· 3908 passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage; 3909 meta = { 3910 pkgConfigModules = [ ]; 3911 - platforms = lib.platforms.unix; 3912 - }; 3913 - }) 3914 - ) { }; 3915 - 3916 - # THIS IS A GENERATED FILE. DO NOT EDIT! 3917 - xcbproto = callPackage ( 3918 - { 3919 - stdenv, 3920 - pkg-config, 3921 - fetchurl, 3922 - python3, 3923 - testers, 3924 - }: 3925 - stdenv.mkDerivation (finalAttrs: { 3926 - pname = "xcb-proto"; 3927 - version = "1.17.0"; 3928 - builder = ./builder.sh; 3929 - src = fetchurl { 3930 - url = "mirror://xorg/individual/proto/xcb-proto-1.17.0.tar.xz"; 3931 - sha256 = "130lc8jx43s83496nc8jn47zixjcp4abgsz69pvrjiqg279aq6rc"; 3932 - }; 3933 - hardeningDisable = [ 3934 - "bindnow" 3935 - "relro" 3936 - ]; 3937 - strictDeps = true; 3938 - nativeBuildInputs = [ 3939 - pkg-config 3940 - python3 3941 - ]; 3942 - buildInputs = [ ]; 3943 - passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage; 3944 - meta = { 3945 - pkgConfigModules = [ "xcb-proto" ]; 3946 platforms = lib.platforms.unix; 3947 }; 3948 })
··· 12 pixman, 13 util-macros, 14 xbitmaps, 15 + xcb-proto, 16 }: 17 18 self: with self; { ··· 30 fontutil = font-util; 31 libpthreadstubs = libpthread-stubs; 32 utilmacros = util-macros; 33 + xcbproto = xcb-proto; 34 35 # THIS IS A GENERATED FILE. DO NOT EDIT! 36 appres = callPackage ( ··· 3910 passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage; 3911 meta = { 3912 pkgConfigModules = [ ]; 3913 platforms = lib.platforms.unix; 3914 }; 3915 })
+3
pkgs/servers/x11/xorg/generate-expr-from-tarballs.pl
··· 40 $pcMap{"pciaccess"} = "libpciaccess"; 41 $pcMap{"pthread-stubs"} = "libpthreadstubs"; 42 $pcMap{"xbitmaps"} = "xbitmaps"; 43 $pcMap{"\$PIXMAN"} = "pixman"; 44 $pcMap{"\$RENDERPROTO"} = "xorgproto"; 45 $pcMap{"\$DRI3PROTO"} = "xorgproto"; ··· 275 pixman, 276 util-macros, 277 xbitmaps, 278 }: 279 280 self: with self; { ··· 292 fontutil = font-util; 293 libpthreadstubs = libpthread-stubs; 294 utilmacros = util-macros; 295 296 EOF 297
··· 40 $pcMap{"pciaccess"} = "libpciaccess"; 41 $pcMap{"pthread-stubs"} = "libpthreadstubs"; 42 $pcMap{"xbitmaps"} = "xbitmaps"; 43 + $pcMap{"xcb-proto"} = "xcbproto"; 44 $pcMap{"\$PIXMAN"} = "pixman"; 45 $pcMap{"\$RENDERPROTO"} = "xorgproto"; 46 $pcMap{"\$DRI3PROTO"} = "xorgproto"; ··· 276 pixman, 277 util-macros, 278 xbitmaps, 279 + xcb-proto, 280 }: 281 282 self: with self; { ··· 294 fontutil = font-util; 295 libpthreadstubs = libpthread-stubs; 296 utilmacros = util-macros; 297 + xcbproto = xcb-proto; 298 299 EOF 300
-1
pkgs/servers/x11/xorg/tarballs.list
··· 202 mirror://xorg/individual/lib/libXxf86vm-1.1.6.tar.xz 203 mirror://xorg/individual/lib/xcb-util-cursor-0.1.5.tar.xz 204 mirror://xorg/individual/lib/xtrans-1.6.0.tar.xz 205 - mirror://xorg/individual/proto/xcb-proto-1.17.0.tar.xz 206 mirror://xorg/individual/proto/xorgproto-2024.1.tar.xz 207 mirror://xorg/individual/util/bdftopcf-1.1.2.tar.xz 208 mirror://xorg/individual/util/imake-1.0.10.tar.xz
··· 202 mirror://xorg/individual/lib/libXxf86vm-1.1.6.tar.xz 203 mirror://xorg/individual/lib/xcb-util-cursor-0.1.5.tar.xz 204 mirror://xorg/individual/lib/xtrans-1.6.0.tar.xz 205 mirror://xorg/individual/proto/xorgproto-2024.1.tar.xz 206 mirror://xorg/individual/util/bdftopcf-1.1.2.tar.xz 207 mirror://xorg/individual/util/imake-1.0.10.tar.xz