libxcvt, makedepend, util-macros, xbitmaps, xcb-proto: refactor and move to pkgs/by-name from xorg namespace (#397945)

authored by jopejoe1 and committed by GitHub ac4dea84 8bfb8bf9

+261 -196
+50
pkgs/by-name/li/libxcvt/package.nix
··· 1 + { 2 + lib, 3 + stdenv, 4 + fetchurl, 5 + pkg-config, 6 + meson, 7 + ninja, 8 + writeScript, 9 + }: 10 + stdenv.mkDerivation (finalAttrs: { 11 + pname = "libxcvt"; 12 + version = "0.1.3"; 13 + 14 + src = fetchurl { 15 + url = "mirror://xorg/individual/lib/libxcvt-${finalAttrs.version}.tar.xz"; 16 + hash = "sha256-qSmZiodn3n36NtbaR1HNvu807WMHFPL0p2ezUfJELgE="; 17 + }; 18 + 19 + strictDeps = true; 20 + 21 + nativeBuildInputs = [ 22 + pkg-config 23 + meson 24 + ninja 25 + ]; 26 + 27 + passthru = { 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/lib/ \ 33 + | sort -V | tail -n1)" 34 + update-source-version ${finalAttrs.pname} "$version" 35 + ''; 36 + }; 37 + 38 + meta = { 39 + description = "VESA CVT standard timing modeline generation library & utility"; 40 + homepage = "https://gitlab.freedesktop.org/xorg/lib/libxcvt"; 41 + license = with lib.licenses; [ 42 + mit 43 + hpndSellVariant 44 + ]; 45 + mainProgram = "cvt"; 46 + maintainers = [ ]; 47 + platforms = lib.platforms.unix; 48 + badPlatforms = [ lib.systems.inspect.platformPatterns.isStatic ]; 49 + }; 50 + })
+43
pkgs/by-name/ma/makedepend/package.nix
··· 1 + { 2 + lib, 3 + stdenv, 4 + fetchurl, 5 + pkg-config, 6 + writeScript, 7 + }: 8 + stdenv.mkDerivation (finalAttrs: { 9 + pname = "makedepend"; 10 + version = "1.0.9"; 11 + 12 + src = fetchurl { 13 + url = "mirror://xorg/individual/util/makedepend-${finalAttrs.version}.tar.xz"; 14 + hash = "sha256-ktDetln/9tjdvB0n/EyozrK22+Fdc/CgTtwJ8cV4LdQ="; 15 + }; 16 + 17 + strictDeps = true; 18 + 19 + nativeBuildInputs = [ pkg-config ]; 20 + 21 + passthru = { 22 + updateScript = writeScript "update-${finalAttrs.pname}" '' 23 + #!/usr/bin/env nix-shell 24 + #!nix-shell -i bash -p common-updater-scripts 25 + version="$(list-directory-versions --pname ${finalAttrs.pname} \ 26 + --url https://xorg.freedesktop.org/releases/individual/util/ \ 27 + | sort -V | tail -n1)" 28 + update-source-version ${finalAttrs.pname} "$version" 29 + ''; 30 + }; 31 + 32 + meta = { 33 + description = "parse C sources to make dependency lists for Makefiles"; 34 + homepage = "https://gitlab.freedesktop.org/xorg/util/makedepend"; 35 + license = with lib.licenses; [ 36 + mitOpenGroup 37 + hpnd 38 + ]; 39 + mainProgram = "makedepend"; 40 + maintainers = [ ]; 41 + platforms = lib.platforms.unix; 42 + }; 43 + })
+55
pkgs/by-name/ut/util-macros/package.nix
··· 1 + { 2 + lib, 3 + stdenv, 4 + fetchurl, 5 + pkg-config, 6 + automake, 7 + autoconf, 8 + libtool, 9 + testers, 10 + writeScript, 11 + }: 12 + stdenv.mkDerivation (finalAttrs: { 13 + pname = "util-macros"; 14 + version = "1.20.2"; 15 + 16 + src = fetchurl { 17 + url = "mirror://xorg/individual/util/util-macros-${finalAttrs.version}.tar.xz"; 18 + hash = "sha256-msJp66JPZy19ezV05L5fMz0T8Ep3EjA7GCGypRrILo4="; 19 + }; 20 + 21 + strictDeps = true; 22 + 23 + nativeBuildInputs = [ pkg-config ]; 24 + 25 + # not needed for releases, we propagate the needed tools 26 + propagatedNativeBuildInputs = [ 27 + automake 28 + autoconf 29 + libtool 30 + ]; 31 + 32 + passthru = { 33 + tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage; 34 + updateScript = writeScript "update-${finalAttrs.pname}" '' 35 + #!/usr/bin/env nix-shell 36 + #!nix-shell -i bash -p common-updater-scripts 37 + version="$(list-directory-versions --pname ${finalAttrs.pname} \ 38 + --url https://xorg.freedesktop.org/releases/individual/util/ \ 39 + | sort -V | tail -n1)" 40 + update-source-version ${finalAttrs.pname} "$version" 41 + ''; 42 + }; 43 + 44 + meta = { 45 + description = "GNU autoconf macros shared across X.Org projects"; 46 + homepage = "https://gitlab.freedesktop.org/xorg/util/macros"; 47 + license = with lib.licenses; [ 48 + hpndSellVariant 49 + mit 50 + ]; 51 + maintainers = [ ]; 52 + pkgConfigModules = [ "xorg-macros" ]; 53 + platforms = lib.platforms.unix; 54 + }; 55 + })
+45
pkgs/by-name/xb/xbitmaps/package.nix
··· 1 + { 2 + lib, 3 + stdenv, 4 + fetchurl, 5 + pkg-config, 6 + testers, 7 + writeScript, 8 + }: 9 + stdenv.mkDerivation (finalAttrs: { 10 + pname = "xbitmaps"; 11 + version = "1.1.3"; 12 + 13 + src = fetchurl { 14 + url = "mirror://xorg/individual/data/xbitmaps-${finalAttrs.version}.tar.xz"; 15 + hash = "sha256-rWytVIh4MqF9hsLM/F5Sod+rCQ+DB7FSx4sOFSnND3o="; 16 + }; 17 + 18 + strictDeps = true; 19 + 20 + nativeBuildInputs = [ pkg-config ]; 21 + 22 + passthru = { 23 + tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage; 24 + updateScript = writeScript "update-${finalAttrs.pname}" '' 25 + #!/usr/bin/env nix-shell 26 + #!nix-shell -i bash -p common-updater-scripts 27 + version="$(list-directory-versions --pname ${finalAttrs.pname} \ 28 + --url https://xorg.freedesktop.org/releases/individual/data/ \ 29 + | sort -V | tail -n1)" 30 + update-source-version ${finalAttrs.pname} "$version" 31 + ''; 32 + }; 33 + 34 + meta = { 35 + homepage = "https://gitlab.freedesktop.org/xorg/data/bitmaps"; 36 + description = "X BitMap (XBM) format bitmaps commonly used in X.Org applications"; 37 + license = with lib.licenses; [ 38 + icu 39 + smlnj 40 + ]; 41 + maintainers = [ ]; 42 + pkgConfigModules = [ "xbitmaps" ]; 43 + platforms = lib.platforms.unix; 44 + }; 45 + })
+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 + })
+10 -165
pkgs/servers/x11/xorg/default.nix
··· 6 6 gccmakedep, 7 7 libpciaccess, 8 8 libpthread-stubs, 9 + libxcvt, 9 10 luit, 11 + makedepend, 10 12 pixman, 13 + util-macros, 14 + xbitmaps, 15 + xcb-proto, 11 16 }: 12 17 13 18 self: with self; { ··· 15 20 inherit 16 21 gccmakedep 17 22 libpciaccess 23 + libxcvt 18 24 luit 25 + makedepend 19 26 pixman 27 + xbitmaps 20 28 ; 21 29 fontalias = font-alias; 22 30 fontutil = font-util; 23 31 libpthreadstubs = libpthread-stubs; 32 + utilmacros = util-macros; 33 + xcbproto = xcb-proto; 24 34 25 35 # THIS IS A GENERATED FILE. DO NOT EDIT! 26 36 appres = callPackage ( ··· 3278 3288 ) { }; 3279 3289 3280 3290 # THIS IS A GENERATED FILE. DO NOT EDIT! 3281 - libxcvt = callPackage ( 3282 - { 3283 - stdenv, 3284 - pkg-config, 3285 - fetchurl, 3286 - meson, 3287 - ninja, 3288 - testers, 3289 - }: 3290 - stdenv.mkDerivation (finalAttrs: { 3291 - pname = "libxcvt"; 3292 - version = "0.1.3"; 3293 - builder = ./builder.sh; 3294 - src = fetchurl { 3295 - url = "mirror://xorg/individual/lib/libxcvt-0.1.3.tar.xz"; 3296 - sha256 = "009f8kr53cv7lzsg4507cgnk9vxyrm8lgnnn6vx7vpk7hy59jad9"; 3297 - }; 3298 - hardeningDisable = [ 3299 - "bindnow" 3300 - "relro" 3301 - ]; 3302 - strictDeps = true; 3303 - nativeBuildInputs = [ 3304 - pkg-config 3305 - meson 3306 - ninja 3307 - ]; 3308 - buildInputs = [ ]; 3309 - passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage; 3310 - meta = { 3311 - pkgConfigModules = [ ]; 3312 - platforms = lib.platforms.unix; 3313 - }; 3314 - }) 3315 - ) { }; 3316 - 3317 - # THIS IS A GENERATED FILE. DO NOT EDIT! 3318 3291 libxkbfile = callPackage ( 3319 3292 { 3320 3293 stdenv, ··· 3446 3419 strictDeps = true; 3447 3420 nativeBuildInputs = [ pkg-config ]; 3448 3421 buildInputs = [ xorgproto ]; 3449 - passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage; 3450 - meta = { 3451 - pkgConfigModules = [ ]; 3452 - platforms = lib.platforms.unix; 3453 - }; 3454 - }) 3455 - ) { }; 3456 - 3457 - # THIS IS A GENERATED FILE. DO NOT EDIT! 3458 - makedepend = callPackage ( 3459 - { 3460 - stdenv, 3461 - pkg-config, 3462 - fetchurl, 3463 - testers, 3464 - }: 3465 - stdenv.mkDerivation (finalAttrs: { 3466 - pname = "makedepend"; 3467 - version = "1.0.9"; 3468 - builder = ./builder.sh; 3469 - src = fetchurl { 3470 - url = "mirror://xorg/individual/util/makedepend-1.0.9.tar.xz"; 3471 - sha256 = "1m1dg32z22fw9shg0wsxw7dvdcnfm16gq9qxpkfxixpzb6vdxl4j"; 3472 - }; 3473 - hardeningDisable = [ 3474 - "bindnow" 3475 - "relro" 3476 - ]; 3477 - strictDeps = true; 3478 - nativeBuildInputs = [ pkg-config ]; 3479 - buildInputs = [ ]; 3480 3422 passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage; 3481 3423 meta = { 3482 3424 pkgConfigModules = [ ]; ··· 3766 3708 ) { }; 3767 3709 3768 3710 # THIS IS A GENERATED FILE. DO NOT EDIT! 3769 - utilmacros = callPackage ( 3770 - { 3771 - stdenv, 3772 - pkg-config, 3773 - fetchurl, 3774 - testers, 3775 - }: 3776 - stdenv.mkDerivation (finalAttrs: { 3777 - pname = "util-macros"; 3778 - version = "1.20.2"; 3779 - builder = ./builder.sh; 3780 - src = fetchurl { 3781 - url = "mirror://xorg/individual/util/util-macros-1.20.2.tar.xz"; 3782 - sha256 = "13ifr0dabci130xk04kp9bq16g9kbyzf8x1mgdyjsrsglbmnkhls"; 3783 - }; 3784 - hardeningDisable = [ 3785 - "bindnow" 3786 - "relro" 3787 - ]; 3788 - strictDeps = true; 3789 - nativeBuildInputs = [ pkg-config ]; 3790 - buildInputs = [ ]; 3791 - passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage; 3792 - meta = { 3793 - pkgConfigModules = [ "xorg-macros" ]; 3794 - platforms = lib.platforms.unix; 3795 - }; 3796 - }) 3797 - ) { }; 3798 - 3799 - # THIS IS A GENERATED FILE. DO NOT EDIT! 3800 3711 viewres = callPackage ( 3801 3712 { 3802 3713 stdenv, ··· 3961 3872 ) { }; 3962 3873 3963 3874 # THIS IS A GENERATED FILE. DO NOT EDIT! 3964 - xbitmaps = callPackage ( 3965 - { 3966 - stdenv, 3967 - pkg-config, 3968 - fetchurl, 3969 - testers, 3970 - }: 3971 - stdenv.mkDerivation (finalAttrs: { 3972 - pname = "xbitmaps"; 3973 - version = "1.1.3"; 3974 - builder = ./builder.sh; 3975 - src = fetchurl { 3976 - url = "mirror://xorg/individual/data/xbitmaps-1.1.3.tar.xz"; 3977 - sha256 = "0yhgrllia3lbqx9b21w31w4sppx1a9ggrk62hrys2ckqi1aasv5d"; 3978 - }; 3979 - hardeningDisable = [ 3980 - "bindnow" 3981 - "relro" 3982 - ]; 3983 - strictDeps = true; 3984 - nativeBuildInputs = [ pkg-config ]; 3985 - buildInputs = [ ]; 3986 - passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage; 3987 - meta = { 3988 - pkgConfigModules = [ "xbitmaps" ]; 3989 - platforms = lib.platforms.unix; 3990 - }; 3991 - }) 3992 - ) { }; 3993 - 3994 - # THIS IS A GENERATED FILE. DO NOT EDIT! 3995 3875 xcalc = callPackage ( 3996 3876 { 3997 3877 stdenv, ··· 4030 3910 passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage; 4031 3911 meta = { 4032 3912 pkgConfigModules = [ ]; 4033 - platforms = lib.platforms.unix; 4034 - }; 4035 - }) 4036 - ) { }; 4037 - 4038 - # THIS IS A GENERATED FILE. DO NOT EDIT! 4039 - xcbproto = callPackage ( 4040 - { 4041 - stdenv, 4042 - pkg-config, 4043 - fetchurl, 4044 - python3, 4045 - testers, 4046 - }: 4047 - stdenv.mkDerivation (finalAttrs: { 4048 - pname = "xcb-proto"; 4049 - version = "1.17.0"; 4050 - builder = ./builder.sh; 4051 - src = fetchurl { 4052 - url = "mirror://xorg/individual/proto/xcb-proto-1.17.0.tar.xz"; 4053 - sha256 = "130lc8jx43s83496nc8jn47zixjcp4abgsz69pvrjiqg279aq6rc"; 4054 - }; 4055 - hardeningDisable = [ 4056 - "bindnow" 4057 - "relro" 4058 - ]; 4059 - strictDeps = true; 4060 - nativeBuildInputs = [ 4061 - pkg-config 4062 - python3 4063 - ]; 4064 - buildInputs = [ ]; 4065 - passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage; 4066 - meta = { 4067 - pkgConfigModules = [ "xcb-proto" ]; 4068 3913 platforms = lib.platforms.unix; 4069 3914 }; 4070 3915 })
+12
pkgs/servers/x11/xorg/generate-expr-from-tarballs.pl
··· 39 39 $pcMap{"fontutil"} = "fontutil"; 40 40 $pcMap{"pciaccess"} = "libpciaccess"; 41 41 $pcMap{"pthread-stubs"} = "libpthreadstubs"; 42 + $pcMap{"xbitmaps"} = "xbitmaps"; 43 + $pcMap{"xcb-proto"} = "xcbproto"; 42 44 $pcMap{"\$PIXMAN"} = "pixman"; 43 45 $pcMap{"\$RENDERPROTO"} = "xorgproto"; 44 46 $pcMap{"\$DRI3PROTO"} = "xorgproto"; ··· 268 270 gccmakedep, 269 271 libpciaccess, 270 272 libpthread-stubs, 273 + libxcvt, 271 274 luit, 275 + makedepend, 272 276 pixman, 277 + util-macros, 278 + xbitmaps, 279 + xcb-proto, 273 280 }: 274 281 275 282 self: with self; { ··· 277 284 inherit 278 285 gccmakedep 279 286 libpciaccess 287 + libxcvt 280 288 luit 289 + makedepend 281 290 pixman 291 + xbitmaps 282 292 ; 283 293 fontalias = font-alias; 284 294 fontutil = font-util; 285 295 libpthreadstubs = libpthread-stubs; 296 + utilmacros = util-macros; 297 + xcbproto = xcb-proto; 286 298 287 299 EOF 288 300
-26
pkgs/servers/x11/xorg/overrides.nix
··· 227 227 }; 228 228 }); 229 229 230 - libxcvt = super.libxcvt.overrideAttrs ( 231 - { 232 - meta ? { }, 233 - ... 234 - }: 235 - { 236 - meta = meta // { 237 - homepage = "https://gitlab.freedesktop.org/xorg/lib/libxcvt"; 238 - mainProgram = "cvt"; 239 - badPlatforms = meta.badPlatforms or [ ] ++ [ 240 - lib.systems.inspect.platformPatterns.isStatic 241 - ]; 242 - }; 243 - } 244 - ); 245 - 246 230 libX11 = super.libX11.overrideAttrs (attrs: { 247 231 outputs = [ 248 232 "out" ··· 629 613 }; 630 614 }); 631 615 632 - makedepend = addMainProgram super.makedepend { }; 633 616 mkfontscale = addMainProgram super.mkfontscale { }; 634 617 oclock = addMainProgram super.oclock { }; 635 618 smproxy = addMainProgram super.smproxy { }; 636 619 transset = addMainProgram super.transset { }; 637 - 638 - utilmacros = super.utilmacros.overrideAttrs (attrs: { 639 - # not needed for releases, we propagate the needed tools 640 - propagatedNativeBuildInputs = attrs.propagatedNativeBuildInputs or [ ] ++ [ 641 - automake 642 - autoconf 643 - libtool 644 - ]; 645 - }); 646 620 647 621 viewres = addMainProgram super.viewres { }; 648 622
-5
pkgs/servers/x11/xorg/tarballs.list
··· 69 69 mirror://xorg/individual/app/xwd-1.0.9.tar.xz 70 70 mirror://xorg/individual/app/xwininfo-1.1.6.tar.xz 71 71 mirror://xorg/individual/app/xwud-1.0.7.tar.xz 72 - mirror://xorg/individual/data/xbitmaps-1.1.3.tar.xz 73 72 mirror://xorg/individual/data/xcursor-themes-1.0.7.tar.xz 74 73 mirror://xorg/individual/data/xkeyboard-config/xkeyboard-config-2.44.tar.xz 75 74 mirror://xorg/individual/doc/xorg-docs-1.7.3.tar.xz ··· 174 173 mirror://xorg/individual/lib/libxcb-1.17.0.tar.xz 175 174 mirror://xorg/individual/lib/libXcomposite-0.4.6.tar.xz 176 175 mirror://xorg/individual/lib/libXcursor-1.2.3.tar.xz 177 - mirror://xorg/individual/lib/libxcvt-0.1.3.tar.xz 178 176 mirror://xorg/individual/lib/libXdamage-1.1.6.tar.xz 179 177 mirror://xorg/individual/lib/libXdmcp-1.1.5.tar.xz 180 178 mirror://xorg/individual/lib/libXext-1.3.6.tar.xz ··· 204 202 mirror://xorg/individual/lib/libXxf86vm-1.1.6.tar.xz 205 203 mirror://xorg/individual/lib/xcb-util-cursor-0.1.5.tar.xz 206 204 mirror://xorg/individual/lib/xtrans-1.6.0.tar.xz 207 - mirror://xorg/individual/proto/xcb-proto-1.17.0.tar.xz 208 205 mirror://xorg/individual/proto/xorgproto-2024.1.tar.xz 209 206 mirror://xorg/individual/util/bdftopcf-1.1.2.tar.xz 210 207 mirror://xorg/individual/util/imake-1.0.10.tar.xz 211 208 mirror://xorg/individual/util/lndir-1.0.5.tar.xz 212 - mirror://xorg/individual/util/makedepend-1.0.9.tar.xz 213 - mirror://xorg/individual/util/util-macros-1.20.2.tar.xz 214 209 mirror://xorg/individual/util/xorg-cf-files-1.0.8.tar.xz 215 210 mirror://xorg/individual/xserver/xorg-server-21.1.16.tar.xz