font-{encodings,bh-{ttf,type1},mutt-misc}: refactor, move to pkgs/by-name & rename (#435433)

authored by jopejoe1 and committed by GitHub b95ac8a9 3455c303

+172 -157
+38
pkgs/by-name/fo/font-bh-ttf/package.nix
···
··· 1 + { 2 + lib, 3 + stdenv, 4 + fetchurl, 5 + mkfontscale, 6 + writeScript, 7 + }: 8 + stdenv.mkDerivation (finalAttrs: { 9 + pname = "font-bh-ttf"; 10 + version = "1.0.4"; 11 + 12 + src = fetchurl { 13 + url = "mirror://xorg/individual/font/font-bh-ttf-${finalAttrs.version}.tar.xz"; 14 + hash = "sha256-haX5DQDEjCsG/RJeqK28i47pdCnjB1CByHEJJu/sOlY="; 15 + }; 16 + 17 + strictDeps = true; 18 + nativeBuildInputs = [ mkfontscale ]; 19 + 20 + passthru = { 21 + updateScript = writeScript "update-${finalAttrs.pname}" '' 22 + #!/usr/bin/env nix-shell 23 + #!nix-shell -i bash -p common-updater-scripts 24 + version="$(list-directory-versions --pname ${finalAttrs.pname} \ 25 + --url https://xorg.freedesktop.org/releases/individual/font/ \ 26 + | sort -V | tail -n1)" 27 + update-source-version ${finalAttrs.pname} "$version" 28 + ''; 29 + }; 30 + 31 + meta = { 32 + description = "Luxi TrueType fonts"; 33 + homepage = "https://gitlab.freedesktop.org/xorg/font/bh-ttf"; 34 + license = lib.licenses.unfreeRedistributable; 35 + maintainers = [ ]; 36 + platforms = lib.platforms.unix; 37 + }; 38 + })
+38
pkgs/by-name/fo/font-bh-type1/package.nix
···
··· 1 + { 2 + lib, 3 + stdenv, 4 + fetchurl, 5 + mkfontscale, 6 + writeScript, 7 + }: 8 + stdenv.mkDerivation (finalAttrs: { 9 + pname = "font-bh-type1"; 10 + version = "1.0.4"; 11 + 12 + src = fetchurl { 13 + url = "mirror://xorg/individual/font/font-bh-type1-${finalAttrs.version}.tar.xz"; 14 + hash = "sha256-Gd7D7Aar3mvt0QCUV56Si+Dw/DvbT76T9MaczkBtcqY="; 15 + }; 16 + 17 + strictDeps = true; 18 + nativeBuildInputs = [ mkfontscale ]; 19 + 20 + passthru = { 21 + updateScript = writeScript "update-${finalAttrs.pname}" '' 22 + #!/usr/bin/env nix-shell 23 + #!nix-shell -i bash -p common-updater-scripts 24 + version="$(list-directory-versions --pname ${finalAttrs.pname} \ 25 + --url https://xorg.freedesktop.org/releases/individual/font/ \ 26 + | sort -V | tail -n1)" 27 + update-source-version ${finalAttrs.pname} "$version" 28 + ''; 29 + }; 30 + 31 + meta = { 32 + description = "Luxi PostScript Type 1 fonts"; 33 + homepage = "https://gitlab.freedesktop.org/xorg/font/bh-type1"; 34 + license = lib.licenses.unfreeRedistributable; 35 + maintainers = [ ]; 36 + platforms = lib.platforms.unix; 37 + }; 38 + })
+38
pkgs/by-name/fo/font-encodings/package.nix
···
··· 1 + { 2 + lib, 3 + stdenv, 4 + fetchurl, 5 + mkfontscale, 6 + writeScript, 7 + }: 8 + stdenv.mkDerivation (finalAttrs: { 9 + pname = "font-encodings"; 10 + version = "1.1.0"; 11 + 12 + src = fetchurl { 13 + url = "mirror://xorg/individual/font/encodings-${finalAttrs.version}.tar.xz"; 14 + hash = "sha256-n/E8YhdWz6EulfMrpIpbI4Oej1d9AEi+2mbGfatN6XU="; 15 + }; 16 + 17 + strictDeps = true; 18 + nativeBuildInputs = [ mkfontscale ]; 19 + 20 + passthru = { 21 + updateScript = writeScript "update-${finalAttrs.pname}" '' 22 + #!/usr/bin/env nix-shell 23 + #!nix-shell -i bash -p common-updater-scripts 24 + version="$(list-directory-versions --pname encodings \ 25 + --url https://xorg.freedesktop.org/releases/individual/font/ \ 26 + | sort -V | tail -n1)" 27 + update-source-version ${finalAttrs.pname} "$version" 28 + ''; 29 + }; 30 + 31 + meta = { 32 + description = "Font encoding tables for libfontenc"; 33 + homepage = "https://gitlab.freedesktop.org/xorg/font/encodings"; 34 + license = lib.licenses.publicDomain; 35 + maintainers = [ ]; 36 + platforms = lib.platforms.unix; 37 + }; 38 + })
+42
pkgs/by-name/fo/font-mutt-misc/package.nix
···
··· 1 + { 2 + lib, 3 + stdenv, 4 + fetchurl, 5 + bdftopcf, 6 + mkfontscale, 7 + writeScript, 8 + }: 9 + stdenv.mkDerivation (finalAttrs: { 10 + pname = "font-mutt-misc"; 11 + version = "1.0.4"; 12 + 13 + src = fetchurl { 14 + url = "mirror://xorg/individual/font/font-mutt-misc-${finalAttrs.version}.tar.xz"; 15 + hash = "sha256-sSNZ9OEsI7z8tEi5GCl+l1+pG+9Sk9iNPCU0PMdouyQ="; 16 + }; 17 + 18 + strictDeps = true; 19 + nativeBuildInputs = [ 20 + bdftopcf 21 + mkfontscale 22 + ]; 23 + 24 + passthru = { 25 + updateScript = writeScript "update-${finalAttrs.pname}" '' 26 + #!/usr/bin/env nix-shell 27 + #!nix-shell -i bash -p common-updater-scripts 28 + version="$(list-directory-versions --pname ${finalAttrs.pname} \ 29 + --url https://xorg.freedesktop.org/releases/individual/font/ \ 30 + | sort -V | tail -n1)" 31 + update-source-version ${finalAttrs.pname} "$version" 32 + ''; 33 + }; 34 + 35 + meta = { 36 + description = "ClearU pcf fonts"; 37 + homepage = "https://gitlab.freedesktop.org/xorg/font/mutt-misc"; 38 + license = lib.licenses.mit; 39 + maintainers = [ ]; 40 + platforms = lib.platforms.unix; 41 + }; 42 + })
+8 -151
pkgs/servers/x11/xorg/default.nix
··· 3 lib, 4 bdftopcf, 5 font-alias, 6 font-util, 7 gccmakedep, 8 ico, ··· 101 xwininfo 102 xwud 103 ; 104 fontalias = font-alias; 105 fontutil = font-util; 106 libAppleWM = libapplewm; 107 libFS = libfs; ··· 264 xorgproto 265 libXt 266 ]; 267 - passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage; 268 - meta = { 269 - pkgConfigModules = [ ]; 270 - platforms = lib.platforms.unix; 271 - }; 272 - }) 273 - ) { }; 274 - 275 - # THIS IS A GENERATED FILE. DO NOT EDIT! 276 - encodings = callPackage ( 277 - { 278 - stdenv, 279 - pkg-config, 280 - fetchurl, 281 - mkfontscale, 282 - testers, 283 - }: 284 - stdenv.mkDerivation (finalAttrs: { 285 - pname = "encodings"; 286 - version = "1.1.0"; 287 - builder = ./builder.sh; 288 - src = fetchurl { 289 - url = "mirror://xorg/individual/font/encodings-1.1.0.tar.xz"; 290 - sha256 = "0xg99nmpvik6vaz4h03xay7rx0r3bf5a8azkjlpa3ksn2xi3rwcz"; 291 - }; 292 - hardeningDisable = [ 293 - "bindnow" 294 - "relro" 295 - ]; 296 - strictDeps = true; 297 - nativeBuildInputs = [ 298 - pkg-config 299 - mkfontscale 300 - ]; 301 - buildInputs = [ ]; 302 passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage; 303 meta = { 304 pkgConfigModules = [ ]; ··· 714 ) { }; 715 716 # THIS IS A GENERATED FILE. DO NOT EDIT! 717 - fontbhttf = callPackage ( 718 - { 719 - stdenv, 720 - pkg-config, 721 - fetchurl, 722 - fontutil, 723 - mkfontscale, 724 - testers, 725 - }: 726 - stdenv.mkDerivation (finalAttrs: { 727 - pname = "font-bh-ttf"; 728 - version = "1.0.4"; 729 - builder = ./builder.sh; 730 - src = fetchurl { 731 - url = "mirror://xorg/individual/font/font-bh-ttf-1.0.4.tar.xz"; 732 - sha256 = "0misxkpjc2bir20m01z355sfk3lbpjnshphjzl32p364006zk9c5"; 733 - }; 734 - hardeningDisable = [ 735 - "bindnow" 736 - "relro" 737 - ]; 738 - strictDeps = true; 739 - nativeBuildInputs = [ 740 - pkg-config 741 - mkfontscale 742 - ]; 743 - buildInputs = [ fontutil ]; 744 - configureFlags = [ "--with-fontrootdir=$(out)/lib/X11/fonts" ]; 745 - postPatch = ''substituteInPlace configure --replace 'MAPFILES_PATH=`pkg-config' 'MAPFILES_PATH=`$PKG_CONFIG' ''; 746 - passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage; 747 - meta = { 748 - pkgConfigModules = [ ]; 749 - platforms = lib.platforms.unix; 750 - }; 751 - }) 752 - ) { }; 753 - 754 - # THIS IS A GENERATED FILE. DO NOT EDIT! 755 - fontbhtype1 = callPackage ( 756 - { 757 - stdenv, 758 - pkg-config, 759 - fetchurl, 760 - fontutil, 761 - mkfontscale, 762 - testers, 763 - }: 764 - stdenv.mkDerivation (finalAttrs: { 765 - pname = "font-bh-type1"; 766 - version = "1.0.4"; 767 - builder = ./builder.sh; 768 - src = fetchurl { 769 - url = "mirror://xorg/individual/font/font-bh-type1-1.0.4.tar.xz"; 770 - sha256 = "19kjdm0cx766yj9vwkyv7gyg1q4bjag5g500s7nnppmb0vnc7phr"; 771 - }; 772 - hardeningDisable = [ 773 - "bindnow" 774 - "relro" 775 - ]; 776 - strictDeps = true; 777 - nativeBuildInputs = [ 778 - pkg-config 779 - mkfontscale 780 - ]; 781 - buildInputs = [ fontutil ]; 782 - configureFlags = [ "--with-fontrootdir=$(out)/lib/X11/fonts" ]; 783 - postPatch = ''substituteInPlace configure --replace 'MAPFILES_PATH=`pkg-config' 'MAPFILES_PATH=`$PKG_CONFIG' ''; 784 - passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage; 785 - meta = { 786 - pkgConfigModules = [ ]; 787 - platforms = lib.platforms.unix; 788 - }; 789 - }) 790 - ) { }; 791 - 792 - # THIS IS A GENERATED FILE. DO NOT EDIT! 793 fontbitstream100dpi = callPackage ( 794 { 795 stdenv, ··· 1407 pkg-config 1408 bdftopcf 1409 fontutil 1410 - mkfontscale 1411 - ]; 1412 - buildInputs = [ fontutil ]; 1413 - configureFlags = [ "--with-fontrootdir=$(out)/lib/X11/fonts" ]; 1414 - postPatch = ''substituteInPlace configure --replace 'MAPFILES_PATH=`pkg-config' 'MAPFILES_PATH=`$PKG_CONFIG' ''; 1415 - passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage; 1416 - meta = { 1417 - pkgConfigModules = [ ]; 1418 - platforms = lib.platforms.unix; 1419 - }; 1420 - }) 1421 - ) { }; 1422 - 1423 - # THIS IS A GENERATED FILE. DO NOT EDIT! 1424 - fontmuttmisc = callPackage ( 1425 - { 1426 - stdenv, 1427 - pkg-config, 1428 - fetchurl, 1429 - fontutil, 1430 - bdftopcf, 1431 - mkfontscale, 1432 - testers, 1433 - }: 1434 - stdenv.mkDerivation (finalAttrs: { 1435 - pname = "font-mutt-misc"; 1436 - version = "1.0.4"; 1437 - builder = ./builder.sh; 1438 - src = fetchurl { 1439 - url = "mirror://xorg/individual/font/font-mutt-misc-1.0.4.tar.xz"; 1440 - sha256 = "095vd33kqd157j6xi4sjxwdsjpwpgqliifa8nkybq8rcw7s5j8xi"; 1441 - }; 1442 - hardeningDisable = [ 1443 - "bindnow" 1444 - "relro" 1445 - ]; 1446 - strictDeps = true; 1447 - nativeBuildInputs = [ 1448 - pkg-config 1449 - bdftopcf 1450 mkfontscale 1451 ]; 1452 buildInputs = [ fontutil ];
··· 3 lib, 4 bdftopcf, 5 font-alias, 6 + font-bh-ttf, 7 + font-bh-type1, 8 + font-encodings, 9 + font-mutt-misc, 10 font-util, 11 gccmakedep, 12 ico, ··· 105 xwininfo 106 xwud 107 ; 108 + encodings = font-encodings; 109 fontalias = font-alias; 110 + fontbhttf = font-bh-ttf; 111 + fontbhtype1 = font-bh-type1; 112 + fontmuttmisc = font-mutt-misc; 113 fontutil = font-util; 114 libAppleWM = libapplewm; 115 libFS = libfs; ··· 272 xorgproto 273 libXt 274 ]; 275 passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage; 276 meta = { 277 pkgConfigModules = [ ]; ··· 687 ) { }; 688 689 # THIS IS A GENERATED FILE. DO NOT EDIT! 690 fontbitstream100dpi = callPackage ( 691 { 692 stdenv, ··· 1304 pkg-config 1305 bdftopcf 1306 fontutil 1307 mkfontscale 1308 ]; 1309 buildInputs = [ fontutil ];
+8
pkgs/servers/x11/xorg/generate-expr-from-tarballs.pl
··· 319 lib, 320 bdftopcf, 321 font-alias, 322 font-util, 323 gccmakedep, 324 ico, ··· 417 xwininfo 418 xwud 419 ; 420 fontalias = font-alias; 421 fontutil = font-util; 422 libAppleWM = libapplewm; 423 libFS = libfs;
··· 319 lib, 320 bdftopcf, 321 font-alias, 322 + font-bh-ttf, 323 + font-bh-type1, 324 + font-encodings, 325 + font-mutt-misc, 326 font-util, 327 gccmakedep, 328 ico, ··· 421 xwininfo 422 xwud 423 ; 424 + encodings = font-encodings; 425 fontalias = font-alias; 426 + fontbhttf = font-bh-ttf; 427 + fontbhtype1 = font-bh-type1; 428 + fontmuttmisc = font-mutt-misc; 429 fontutil = font-util; 430 libAppleWM = libapplewm; 431 libFS = libfs;
-2
pkgs/servers/x11/xorg/overrides.nix
··· 1047 "fontadobeutopiatype1" 1048 "fontadobeutopia100dpi" 1049 "fontadobeutopia75dpi" 1050 - "fontbhtype1" 1051 "fontibmtype1" 1052 - "fontbhttf" 1053 "fontbh100dpi" 1054 "fontbh75dpi" 1055
··· 1047 "fontadobeutopiatype1" 1048 "fontadobeutopia100dpi" 1049 "fontadobeutopia75dpi" 1050 "fontibmtype1" 1051 "fontbh100dpi" 1052 "fontbh75dpi" 1053
-4
pkgs/servers/x11/xorg/tarballs.list
··· 99 mirror://xorg/individual/driver/xf86-video-vmware-13.4.0.tar.xz 100 mirror://xorg/individual/driver/xf86-video-voodoo-1.2.6.tar.xz 101 mirror://xorg/individual/driver/xf86-video-wsfb-0.4.0.tar.bz2 102 - mirror://xorg/individual/font/encodings-1.1.0.tar.xz 103 mirror://xorg/individual/font/font-adobe-75dpi-1.0.4.tar.xz 104 mirror://xorg/individual/font/font-adobe-100dpi-1.0.4.tar.xz 105 mirror://xorg/individual/font/font-adobe-utopia-75dpi-1.0.5.tar.xz ··· 110 mirror://xorg/individual/font/font-bh-100dpi-1.0.4.tar.xz 111 mirror://xorg/individual/font/font-bh-lucidatypewriter-75dpi-1.0.4.tar.xz 112 mirror://xorg/individual/font/font-bh-lucidatypewriter-100dpi-1.0.4.tar.xz 113 - mirror://xorg/individual/font/font-bh-ttf-1.0.4.tar.xz 114 - mirror://xorg/individual/font/font-bh-type1-1.0.4.tar.xz 115 mirror://xorg/individual/font/font-bitstream-75dpi-1.0.4.tar.xz 116 mirror://xorg/individual/font/font-bitstream-100dpi-1.0.4.tar.xz 117 mirror://xorg/individual/font/font-bitstream-speedo-1.0.2.tar.gz ··· 128 mirror://xorg/individual/font/font-misc-ethiopic-1.0.5.tar.xz 129 mirror://xorg/individual/font/font-misc-meltho-1.0.4.tar.xz 130 mirror://xorg/individual/font/font-misc-misc-1.1.3.tar.xz 131 - mirror://xorg/individual/font/font-mutt-misc-1.0.4.tar.xz 132 mirror://xorg/individual/font/font-schumacher-misc-1.1.3.tar.xz 133 mirror://xorg/individual/font/font-screen-cyrillic-1.0.5.tar.xz 134 mirror://xorg/individual/font/font-sony-misc-1.0.4.tar.xz
··· 99 mirror://xorg/individual/driver/xf86-video-vmware-13.4.0.tar.xz 100 mirror://xorg/individual/driver/xf86-video-voodoo-1.2.6.tar.xz 101 mirror://xorg/individual/driver/xf86-video-wsfb-0.4.0.tar.bz2 102 mirror://xorg/individual/font/font-adobe-75dpi-1.0.4.tar.xz 103 mirror://xorg/individual/font/font-adobe-100dpi-1.0.4.tar.xz 104 mirror://xorg/individual/font/font-adobe-utopia-75dpi-1.0.5.tar.xz ··· 109 mirror://xorg/individual/font/font-bh-100dpi-1.0.4.tar.xz 110 mirror://xorg/individual/font/font-bh-lucidatypewriter-75dpi-1.0.4.tar.xz 111 mirror://xorg/individual/font/font-bh-lucidatypewriter-100dpi-1.0.4.tar.xz 112 mirror://xorg/individual/font/font-bitstream-75dpi-1.0.4.tar.xz 113 mirror://xorg/individual/font/font-bitstream-100dpi-1.0.4.tar.xz 114 mirror://xorg/individual/font/font-bitstream-speedo-1.0.2.tar.gz ··· 125 mirror://xorg/individual/font/font-misc-ethiopic-1.0.5.tar.xz 126 mirror://xorg/individual/font/font-misc-meltho-1.0.4.tar.xz 127 mirror://xorg/individual/font/font-misc-misc-1.1.3.tar.xz 128 mirror://xorg/individual/font/font-schumacher-misc-1.1.3.tar.xz 129 mirror://xorg/individual/font/font-screen-cyrillic-1.0.5.tar.xz 130 mirror://xorg/individual/font/font-sony-misc-1.0.4.tar.xz