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

Zitrone 521809e8 b9625e34

+59 -41
+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 + })
+2 -31
pkgs/servers/x11/xorg/default.nix
··· 10 10 luit, 11 11 makedepend, 12 12 pixman, 13 + util-macros, 13 14 }: 14 15 15 16 self: with self; { ··· 25 26 fontalias = font-alias; 26 27 fontutil = font-util; 27 28 libpthreadstubs = libpthread-stubs; 29 + utilmacros = util-macros; 28 30 29 31 # THIS IS A GENERATED FILE. DO NOT EDIT! 30 32 appres = callPackage ( ··· 3696 3698 passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage; 3697 3699 meta = { 3698 3700 pkgConfigModules = [ ]; 3699 - platforms = lib.platforms.unix; 3700 - }; 3701 - }) 3702 - ) { }; 3703 - 3704 - # THIS IS A GENERATED FILE. DO NOT EDIT! 3705 - utilmacros = callPackage ( 3706 - { 3707 - stdenv, 3708 - pkg-config, 3709 - fetchurl, 3710 - testers, 3711 - }: 3712 - stdenv.mkDerivation (finalAttrs: { 3713 - pname = "util-macros"; 3714 - version = "1.20.2"; 3715 - builder = ./builder.sh; 3716 - src = fetchurl { 3717 - url = "mirror://xorg/individual/util/util-macros-1.20.2.tar.xz"; 3718 - sha256 = "13ifr0dabci130xk04kp9bq16g9kbyzf8x1mgdyjsrsglbmnkhls"; 3719 - }; 3720 - hardeningDisable = [ 3721 - "bindnow" 3722 - "relro" 3723 - ]; 3724 - strictDeps = true; 3725 - nativeBuildInputs = [ pkg-config ]; 3726 - buildInputs = [ ]; 3727 - passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage; 3728 - meta = { 3729 - pkgConfigModules = [ "xorg-macros" ]; 3730 3701 platforms = lib.platforms.unix; 3731 3702 }; 3732 3703 })
+2
pkgs/servers/x11/xorg/generate-expr-from-tarballs.pl
··· 272 272 luit, 273 273 makedepend, 274 274 pixman, 275 + util-macros, 275 276 }: 276 277 277 278 self: with self; { ··· 287 288 fontalias = font-alias; 288 289 fontutil = font-util; 289 290 libpthreadstubs = libpthread-stubs; 291 + utilmacros = util-macros; 290 292 291 293 EOF 292 294
-9
pkgs/servers/x11/xorg/overrides.nix
··· 618 618 smproxy = addMainProgram super.smproxy { }; 619 619 transset = addMainProgram super.transset { }; 620 620 621 - utilmacros = super.utilmacros.overrideAttrs (attrs: { 622 - # not needed for releases, we propagate the needed tools 623 - propagatedNativeBuildInputs = attrs.propagatedNativeBuildInputs or [ ] ++ [ 624 - automake 625 - autoconf 626 - libtool 627 - ]; 628 - }); 629 - 630 621 viewres = addMainProgram super.viewres { }; 631 622 632 623 x11perf = super.x11perf.overrideAttrs (attrs: {
-1
pkgs/servers/x11/xorg/tarballs.list
··· 208 208 mirror://xorg/individual/util/bdftopcf-1.1.2.tar.xz 209 209 mirror://xorg/individual/util/imake-1.0.10.tar.xz 210 210 mirror://xorg/individual/util/lndir-1.0.5.tar.xz 211 - mirror://xorg/individual/util/util-macros-1.20.2.tar.xz 212 211 mirror://xorg/individual/util/xorg-cf-files-1.0.8.tar.xz 213 212 mirror://xorg/individual/xserver/xorg-server-21.1.16.tar.xz