1{ 2 lib, 3 stdenvNoCC, 4 fetchzip, 5}: 6 7let 8 fonts = { 9 aegan = { 10 version = "13.00"; 11 file = "Aegean.zip"; 12 hash = "sha256-3HmCqCMZLN6zF1N/EirQOPnHKTGHoc4aHKoZxFYTB34="; 13 description = "Aegean"; 14 }; 15 aegyptus = { 16 version = "13.00"; 17 file = "Aegyptus.zip"; 18 hash = "sha256-SSAK707xhpsUTq8tSBcrzNGunCYad58amtCqAWuevnY="; 19 description = "Egyptian Hieroglyphs, Coptic, Meroitic"; 20 }; 21 akkadian = { 22 version = "13.00"; 23 file = "Akkadian.zip"; 24 hash = "sha256-wXiDYyfujAs6fklOCqXq7Ms7wP5RbPlpNVwkUy7CV4k="; 25 description = "Sumero-Akkadian Cuneiform"; 26 }; 27 assyrian = { 28 version = "13.00"; 29 file = "Assyrian.zip"; 30 hash = "sha256-CZj1sc89OexQ0INb7pbEu5GfE/w2E5JmhjT8cosoLSg="; 31 description = "Neo-Assyrian in Unicode with OpenType"; 32 }; 33 eemusic = { 34 version = "13.00"; 35 file = "EEMusic.zip"; 36 hash = "sha256-LxOcQOPEImw0wosxJotbOJRbe0qlK5dR+kazuhm99Kg="; 37 description = "Byzantine Musical Notation in Unicode with OpenType"; 38 }; 39 maya = { 40 version = "13.00"; 41 file = "Maya%20Hieroglyphs.zip"; 42 hash = "sha256-PAwF1lGqm6XVf4NQCA8AFLGU40N0Xsn5Q8x9ikHJDhY="; 43 description = "Maya Hieroglyphs"; 44 }; 45 symbola = { 46 version = "13.00"; 47 file = "Symbola.zip"; 48 hash = "sha256-TsHWmzkEyMa8JOZDyjvk7PDhm239oH/FNllizNFf398="; 49 description = "Basic Latin, Greek, Cyrillic and many Symbol blocks of Unicode"; 50 }; 51 textfonts = { 52 version = "13.00"; 53 file = "Textfonts.zip"; 54 hash = "sha256-7S3NiiyDvyYoDrLPt2z3P9bEEFOEZACv2sIHG1Tn6yI="; 55 description = "Aroania, Anaktoria, Alexander, Avdira and Asea"; 56 }; 57 unidings = { 58 version = "13.00"; 59 file = "Unidings.zip"; 60 hash = "sha256-WUY+Ylphep6WuzqLQ3Owv+vK5Yuu/aAkn4GOFXL0uQY="; 61 description = "Glyphs and Icons for blocks of The Unicode Standard"; 62 }; 63 }; 64 65 mkpkg = 66 pname: 67 { 68 version, 69 file, 70 hash, 71 description, 72 }: 73 stdenvNoCC.mkDerivation rec { 74 inherit pname version; 75 76 src = fetchzip { 77 url = "https://web.archive.org/web/20221006174450/https://dn-works.com/wp-content/uploads/2020/UFAS-Fonts/${file}"; 78 stripRoot = false; 79 inherit hash; 80 }; 81 82 installPhase = '' 83 runHook preInstall 84 85 mkdir -p $out/share/{fonts/opentype,doc/${pname}} 86 mv *.otf -t "$out/share/fonts/opentype" 87 mv *.{odt,ods,pdf,xlsx} -t "$out/share/doc/${pname}" || true # install docs if any 88 89 runHook postInstall 90 ''; 91 92 meta = { 93 inherit description; 94 # see https://web.archive.org/web/20221006174450/https://dn-works.com/wp-content/uploads/2020/UFAS-Docs/License.pdf 95 # quite draconian: non-commercial, no modifications, 96 # no redistribution, "a single instantiation and no 97 # network installation" 98 license = lib.licenses.unfree; 99 homepage = "https://web.archive.org/web/20221006174450/https://dn-works.com/ufas/"; 100 }; 101 }; 102in 103lib.mapAttrs mkpkg fonts