···11-# when changing this expression convert it from 'fetchzip' to 'stdenvNoCC.mkDerivation'
22-{ lib, fetchzip }:
11+{ lib, stdenvNoCC, fetchzip }:
3244-let
33+stdenvNoCC.mkDerivation rec {
44+ pname = "andagii";
55 version = "1.0.2";
66-in (fetchzip {
77- name = "andagii-${version}";
66+77+ src = fetchzip {
88+ url = "http://www.i18nguy.com/unicode/andagii.zip";
99+ curlOpts = "--user-agent 'Mozilla/5.0'";
1010+ hash = "sha256-U7wC55G8jIvMMyPcEiJQ700A7nkWdgWK1LM0F/wgDCg=";
1111+ };
1212+1313+ installPhase = ''
1414+ runHook preInstall
1515+1616+ mkdir -p $out/share/fonts/truetype
1717+ cp -v ANDAGII_.TTF $out/share/fonts/truetype/andagii.ttf
81899- url = "http://www.i18nguy.com/unicode/andagii.zip";
1010- curlOpts = "--user-agent 'Mozilla/5.0'";
1111- sha256 = "0j5kf2fmyqgnf5ji6h0h79lq9n9d85hkfrr4ya8hqj4gwvc0smb2";
1919+ runHook postInstall
2020+ '';
12211322 # There are multiple claims that the font is GPL, so I include the
1423 # package; but I cannot find the original source, so use it on your
···2029 license = "unknown";
2130 platforms = platforms.all;
2231 };
2323-}).overrideAttrs (_: {
2424- postFetch = ''
2525- unzip $downloadedFile
2626- mkdir -p $out/share/fonts/truetype
2727- cp -v ANDAGII_.TTF $out/share/fonts/truetype/andagii.ttf
2828- '';
2929-})
3232+}
+23-23
pkgs/data/fonts/andika/default.nix
···11-# when changing this expression convert it from 'fetchzip' to 'stdenvNoCC.mkDerivation'
22-{ lib, fetchzip }:
11+{ lib, stdenvNoCC, fetchzip }:
3244-let
33+stdenvNoCC.mkDerivation rec {
44+ pname = "andika";
55 version = "6.101";
66- name = "andika-${version}";
77-in
88- (fetchzip rec {
99- inherit name;
10677+ src = fetchzip {
118 url = "https://software.sil.org/downloads/r/andika/Andika-${version}.zip";
99+ hash = "sha256-LghkGd/cjuXghzsU9X/YneNIdBeDEnu0ARszipANm8w=";
1010+ };
12111313- sha256 = "sha256-J/Ad+fmCMOxLoo+691LE6Bgi/l3ovIfWScwwVWtqACI=";
1212+ installPhase = ''
1313+ runHook preInstall
1414+1515+ install -Dm644 *.ttf -t $out/share/fonts/truetype
1616+ install -Dm644 *OFL.txt *OFL-FAQ.txt *README.txt *FONTLOG.txt -t $out/share/doc/${pname}-${version}
14171515- meta = with lib; {
1616- homepage = "https://software.sil.org/andika";
1717- description = "A family designed especially for literacy use taking into account the needs of beginning readers";
1818- longDescription = ''
1818+ runHook postInstall
1919+ '';
2020+2121+ meta = with lib; {
2222+ homepage = "https://software.sil.org/andika";
2323+ description = "A family designed especially for literacy use taking into account the needs of beginning readers";
2424+ longDescription = ''
1925 Andika is a sans serif, Unicode-compliant font designed especially for literacy use, taking into account the needs of beginning readers. The focus is on clear, easy-to-perceive letterforms that will not be readily confused with one another.
20262127 A sans serif font is preferred by some literacy personnel for teaching people to read. Its forms are simpler and less cluttered than those of most serif fonts. For years, literacy workers have had to make do with fonts that were not really suitable for beginning readers and writers. In some cases, literacy specialists have had to tediously assemble letters from a variety of fonts in order to get all of the characters they need for their particular language project, resulting in confusing and unattractive publications. Andika addresses those issues.
2222- '';
2323- license = licenses.ofl;
2424- platforms = platforms.all;
2525- maintainers = [ maintainers.f--t ];
2626- };
2727- }).overrideAttrs (_: {
2828- postFetch = ''
2929- mkdir -p $out/share/{doc,fonts}
3030- unzip -j $downloadedFile \*.ttf -d $out/share/fonts/truetype
3131- unzip -j $downloadedFile \*OFL.txt \*OFL-FAQ.txt \*README.txt \*FONTLOG.txt -d "$out/share/doc/${name}"
3228 '';
3333- })
2929+ license = licenses.ofl;
3030+ platforms = platforms.all;
3131+ maintainers = [ maintainers.f--t ];
3232+ };
3333+}
···11-# when changing this expression convert it from 'fetchzip' to 'stdenvNoCC.mkDerivation'
22-{ lib, fetchzip }:
11+{ lib, stdenvNoCC, fetchzip }:
3244-let
33+stdenvNoCC.mkDerivation rec {
44+ pname = "annapurna-sil";
55 version = "1.204";
66- name = "annapurna-sil-${version}";
77-in
88- (fetchzip rec {
99- inherit name;
10677+ src = fetchzip {
118 url = "https://software.sil.org/downloads/r/annapurna/AnnapurnaSIL-${version}.zip";
99+ hash = "sha256-4ya3Iydrz5Pvol9sTDIe9ZW5k3+XQp8GB2LAnRpeiXs=";
1010+ };
12111313- sha256 = "sha256-kVeP9ZX8H+Wn6jzmH1UQvUKY6vJjadMTdEusS7LodFM=";
1212+ installPhase = ''
1313+ runHook preInstall
14141515- meta = with lib; {
1616- homepage = "https://software.sil.org/annapurna";
1717- description = "Unicode-based font family with broad support for writing systems that use the Devanagari script";
1818- longDescription = ''
1919- Annapurna SIL is a Unicode-based font family with broad support for writing systems that use the Devanagari script. Inspired by traditional calligraphic forms, the design is intended to be highly readable, reasonably compact, and visually attractive.
2020- '';
2121- license = licenses.ofl;
2222- platforms = platforms.all;
2323- maintainers = [ maintainers.kmein ];
2424- };
2525- }).overrideAttrs (_: {
2626- postFetch = ''
2727- mkdir -p $out/share/{doc,fonts}
2828- unzip -j $downloadedFile \*.ttf -d $out/share/fonts/truetype
2929- unzip -j $downloadedFile \*OFL.txt \*OFL-FAQ.txt \*README.txt \*FONTLOG.txt -d "$out/share/doc/${name}"
1515+ install -Dm644 *.ttf -t $out/share/fonts/truetype
1616+ install -Dm644 *OFL.txt *OFL-FAQ.txt *README.txt *FONTLOG.txt -t $out/share/doc/${pname}-${version}
1717+1818+ runHook postInstall
1919+ '';
2020+2121+ meta = with lib; {
2222+ homepage = "https://software.sil.org/annapurna";
2323+ description = "Unicode-based font family with broad support for writing systems that use the Devanagari script";
2424+ longDescription = ''
2525+ Annapurna SIL is a Unicode-based font family with broad support for writing systems that use the Devanagari script. Inspired by traditional calligraphic forms, the design is intended to be highly readable, reasonably compact, and visually attractive.
3026 '';
3131- })
2727+ license = licenses.ofl;
2828+ platforms = platforms.all;
2929+ maintainers = [ maintainers.kmein ];
3030+ };
3131+}
+18-14
pkgs/data/fonts/babelstone-han/default.nix
···11-# when changing this expression convert it from 'fetchzip' to 'stdenvNoCC.mkDerivation'
22-{ lib, fetchzip }:
11+{ lib, stdenvNoCC, fetchzip }:
3244-let
33+stdenvNoCC.mkDerivation {
44+ pname = "babelstone-han";
55 version = "13.0.3";
66-in (fetchzip {
77- name = "babelstone-han-${version}";
8699- # upstream download links are unversioned, so hash changes
1010- url = "https://web.archive.org/web/20200210125314/https://www.babelstone.co.uk/Fonts/Download/BabelStoneHan.zip";
1111- sha256 = "018isk3hbzsihzrxavgjbn485ngzvlm96npqx9y7zpkxsssslc4w";
77+ src = fetchzip {
88+ # upstream download links are unversioned, so hash changes
99+ url = "https://web.archive.org/web/20200210125314/https://www.babelstone.co.uk/Fonts/Download/BabelStoneHan.zip";
1010+ hash = "sha256-LLhNtHu2hh5DY2XVSrLuVzzR6OtMdSSHetyA0k1IFs0=";
1111+ };
1212+1313+ installPhase = ''
1414+ runHook preInstall
1515+1616+ mkdir -p $out/share/fonts/truetype
1717+ cp *.ttf $out/share/fonts/truetype
1818+1919+ runHook postInstall
2020+ '';
12211322 meta = with lib; {
1423 description = "Unicode CJK font with over 36000 Han characters";
···1827 platforms = platforms.all;
1928 maintainers = with maintainers; [ emily ];
2029 };
2121-}).overrideAttrs (_: {
2222- postFetch = ''
2323- mkdir -p $out/share/fonts/truetype
2424- unzip $downloadedFile '*.ttf' -d $out/share/fonts/truetype
2525- '';
2626-})
3030+}
···11-# when changing this expression convert it from 'fetchzip' to 'stdenvNoCC.mkDerivation'
22-{ lib, fetchzip }:
33-let
11+{ lib, stdenvNoCC, fetchzip }:
22+33+stdenvNoCC.mkDerivation rec {
44+ pname = "cascadia-code";
45 version = "2111.01";
55-in
66-(fetchzip {
77- name = "cascadia-code-${version}";
66+77+ src = fetchzip {
88+ url = "https://github.com/microsoft/cascadia-code/releases/download/v${version}/CascadiaCode-${version}.zip";
99+ stripRoot = false;
1010+ hash = "sha256-v9Vm5X80wEvorMhIlRw3MnyuSOdBpTl9ibBPpmm1vig=";
1111+ };
1212+1313+ installPhase = ''
1414+ runHook preInstall
81599- url = "https://github.com/microsoft/cascadia-code/releases/download/v${version}/CascadiaCode-${version}.zip";
1616+ install -Dm644 otf/static/*.otf -t $out/share/fonts/opentype
1717+ install -Dm644 ttf/static/*.ttf -t $out/share/fonts/truetype
10181111- sha256 = "sha256-kUVTQ/oMZztNf22sDbQBpQW0luSc5nr5sxWU5etLDec=";
1919+ runHook postInstall
2020+ '';
12211322 meta = with lib; {
1423 description = "Monospaced font that includes programming ligatures and is designed to enhance the modern look and feel of the Windows Terminal";
···1827 maintainers = [ maintainers.marsam ];
1928 platforms = platforms.all;
2029 };
2121-}).overrideAttrs (_: {
2222- postFetch = ''
2323- mkdir -p $out/share/fonts/
2424- unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype
2525- unzip -j $downloadedFile \*.ttf -d $out/share/fonts/truetype
2626- '';
2727-})
3030+}
+23-23
pkgs/data/fonts/charis-sil/default.nix
···11-# when changing this expression convert it from 'fetchzip' to 'stdenvNoCC.mkDerivation'
22-{ lib, fetchzip }:
11+{ lib, stdenvNoCC, fetchzip }:
3244-let
33+stdenvNoCC.mkDerivation rec {
44+ pname = "charis-sil";
55 version = "6.101";
66- name = "charis-sil-${version}";
77-in
88- (fetchzip rec {
99- inherit name;
10677+ src = fetchzip {
118 url = "https://software.sil.org/downloads/r/charis/CharisSIL-${version}.zip";
99+ hash = "sha256-Rf5eKQVZw7zgTv6KkJUdNdd4sSJPdvjy/GDLusvlgzE=";
1010+ };
12111313- sha256 = "sha256-b1ms9hJ6IPe7W6O9KgzHZvwT4/nAoLOhdydcUrwNfnU=";
1212+ installPhase = ''
1313+ runHook preInstall
1414+1515+ install -Dm644 *.ttf -t $out/share/fonts/truetype
1616+ install -Dm644 *OFL.txt *OFL-FAQ.txt *README.txt *FONTLOG.txt -t $out/share/doc/${pname}-${version}
14171515- meta = with lib; {
1616- homepage = "https://software.sil.org/charis";
1717- description = "A family of highly readable fonts for broad multilingual use";
1818- longDescription = ''
1818+ runHook postInstall
1919+ '';
2020+2121+ meta = with lib; {
2222+ homepage = "https://software.sil.org/charis";
2323+ description = "A family of highly readable fonts for broad multilingual use";
2424+ longDescription = ''
1925 This Charis SIL font is essentially the same design as the SIL Charis font first released by SIL in 1997. Charis is similar to Bitstream Charter, one of the first fonts designed specifically for laser printers. It is highly readable and holds up well in less-than-ideal reproduction environments. It also has a full set of styles – regular, italic, bold, bold italic. Charis is a serif, proportionally-spaced font optimized for readability in long printed documents.
20262127 The goal for this product was to provide a single Unicode-based font family that would contain a comprehensive inventory of glyphs needed for almost any Roman- or Cyrillic-based writing system, whether used for phonetic or orthographic needs. In addition, there is provision for other characters and symbols useful to linguists. This font makes use of state-of-the-art font technologies to support complex typographic issues, such as the need to position arbitrary combinations of base glyphs and diacritics optimally.
2222- '';
2323- license = licenses.ofl;
2424- platforms = platforms.all;
2525- maintainers = [ maintainers.f--t ];
2626- };
2727- }).overrideAttrs (_: {
2828- postFetch = ''
2929- mkdir -p $out/share/{doc,fonts}
3030- unzip -j $downloadedFile \*.ttf -d $out/share/fonts/truetype
3131- unzip -j $downloadedFile \*OFL.txt \*OFL-FAQ.txt \*README.txt \*FONTLOG.txt -d "$out/share/doc/${name}"
3228 '';
3333- })
2929+ license = licenses.ofl;
3030+ platforms = platforms.all;
3131+ maintainers = [ maintainers.f--t ];
3232+ };
3333+}
+22-19
pkgs/data/fonts/comic-relief/default.nix
···11-# when changing this expression convert it from 'fetchzip' to 'stdenvNoCC.mkDerivation'
22-{ lib, fetchzip }:
11+{ lib, stdenvNoCC, fetchzip }:
3244-let
33+stdenvNoCC.mkDerivation rec {
44+ pname = "comic-relief";
55 version = "1.1";
66- name = "comic-relief-${version}";
77-in (fetchzip rec {
88- inherit name;
66+77+ src = fetchzip {
88+ url = "https://fontlibrary.org/assets/downloads/comic-relief/45c456b6db2aaf2f7f69ac66b5ac7239/comic-relief.zip";
99+ stripRoot = false;
1010+ hash = "sha256-lvkMfaQvLMZ8F0Q5JnpmMsIAkR+XfihoHIoS4z5QEvA=";
1111+ };
9121010- url = "https://fontlibrary.org/assets/downloads/comic-relief/45c456b6db2aaf2f7f69ac66b5ac7239/comic-relief.zip";
1313+ installPhase = ''
1414+ runHook preInstall
1515+1616+ mkdir -p $out/etc/fonts/conf.d
1717+ mkdir -p $out/share/doc/${pname}-${version}
1818+ mkdir -p $out/share/fonts/truetype
1919+ cp -v ${./comic-sans-ms-alias.conf} $out/etc/fonts/conf.d/30-comic-sans-ms.conf
2020+ cp *.ttf -d $out/share/fonts/truetype
2121+ cp FONTLOG.txt -d $out/share/doc/${pname}-${version}
11221212- sha256 = "0dz0y7w6mq4hcmmxv6fn4mp6jkln9mzr4s96vsg68wrl5b7k9yff";
2323+ runHook postInstall
2424+ '';
13251426 meta = with lib; {
1527 homepage = "https://fontlibrary.org/en/font/comic-relief";
···2335 '';
2436 license = licenses.ofl;
2537 platforms = platforms.all;
2626- maintainers = [maintainers.rycee];
3838+ maintainers = [ maintainers.rycee ];
27392840 # Reduce the priority of this package. The intent is that if you
2941 # also install the `corefonts` package, then you probably will not
3042 # want to install the font alias of this package.
3143 priority = 10;
3244 };
3333-}).overrideAttrs (_: {
3434- postFetch = ''
3535- mkdir -p $out/etc/fonts/conf.d
3636- mkdir -p $out/share/doc/${name}
3737- mkdir -p $out/share/fonts/truetype
3838- cp -v ${./comic-sans-ms-alias.conf} $out/etc/fonts/conf.d/30-comic-sans-ms.conf
3939- unzip -j $downloadedFile \*.ttf -d $out/share/fonts/truetype
4040- unzip -j $downloadedFile FONTLOG.txt -d $out/share/doc/${name}
4141- '';
4242-})
4545+}
···11-# when changing this expression convert it from 'fetchzip' to 'stdenvNoCC.mkDerivation'
22-{ lib, fetchzip }:
11+{ lib, stdenvNoCC, fetchzip }:
3244-let
55- version = "1.3.2";
33+stdenvNoCC.mkDerivation rec {
64 pname = "d2codingfont";
55+ version = "1.3.2";
66+77+ src = fetchzip {
88+ url = "https://github.com/naver/${pname}/releases/download/VER${version}/D2Coding-Ver${version}-20180524.zip";
99+ stripRoot = false;
1010+ hash = "sha256-iC6iaUSVg4zt3wVFJUU4HEeswuKDOTFsAxq/0gRiOCA=";
1111+ };
1212+1313+ installPhase = ''
1414+ runHook preInstall
71588-in (fetchzip {
99- name = "${pname}-${version}";
1010- url = "https://github.com/naver/${pname}/releases/download/VER${version}/D2Coding-Ver${version}-20180524.zip";
1616+ mkdir -p $out/share/fonts
1717+ install -Dm644 */*-all.ttc -t $out/share/fonts/truetype/
11181212- sha256 = "1812r82530wzfki7k9cm35fy6k2lvis7j6w0w8svc784949m1wwj";
1919+ runHook postInstall
2020+ '';
13211422 meta = with lib; {
1523 description = "Monospace font with support for Korean and latin characters";
···2533 platforms = platforms.all;
2634 maintainers = with maintainers; [ dtzWill ];
2735 };
2828-}).overrideAttrs (_: {
2929- postFetch = ''
3030- mkdir -p $out/share/fonts
3131- unzip -j $downloadedFile \*-all.ttc -d $out/share/fonts/truetype/
3232- '';
3333-})
3636+}
+23-23
pkgs/data/fonts/doulos-sil/default.nix
···11-# when changing this expression convert it from 'fetchzip' to 'stdenvNoCC.mkDerivation'
22-{ lib, fetchzip }:
11+{ lib, stdenvNoCC, fetchzip }:
3244-let
33+stdenvNoCC.mkDerivation rec {
44+ pname = "doulos-sil";
55 version = "6.101";
66- name = "doulos-sil-${version}";
77-in
88- (fetchzip rec {
99- inherit name;
10677+ src = fetchzip {
118 url = "https://software.sil.org/downloads/r/doulos/DoulosSIL-${version}.zip";
99+ hash = "sha256-CPjk6SLgsDYjachZZ1hanp6Q+cxTxfHOkoeU59Om5b8=";
1010+ };
12111313- sha256 = "sha256-vYdnudMkkWz6r8pwq98fyO0zcfFBRPmrqlmWxHCOIcc=";
1212+ installPhase = ''
1313+ runHook preInstall
1414+1515+ install -Dm644 *.ttf -t $out/share/fonts/truetype
1616+ install -Dm644 *OFL.txt *OFL-FAQ.txt *README.txt *FONTLOG.txt -t $out/share/doc/${pname}-${version}
14171515- meta = with lib; {
1616- homepage = "https://software.sil.org/doulos";
1717- description = "A font that provides complete support for the International Phonetic Alphabet";
1818- longDescription = ''
1818+ runHook postInstall
1919+ '';
2020+2121+ meta = with lib; {
2222+ homepage = "https://software.sil.org/doulos";
2323+ description = "A font that provides complete support for the International Phonetic Alphabet";
2424+ longDescription = ''
1925 This Doulos SIL font is essentially the same design as the SIL Doulos font first released by SIL in 1992. The design has been changed from the original in that it has been scaled down to be a better match with contemporary digital fonts, such as Times New Roman®. This current release is a regular typeface, with no bold or italic version available or planned. It is intended for use alongside other Times-like fonts where a range of styles (italic, bold) are not needed. Therefore, just one font is included in the Doulos SIL release: Doulos SIL Regular.
20262127 The goal for this product was to provide a single Unicode-based font family that would contain a comprehensive inventory of glyphs needed for almost any Roman- or Cyrillic-based writing system, whether used for phonetic or orthographic needs. In addition, there is provision for other characters and symbols useful to linguists. This font makes use of state-of-the-art font technologies to support complex typographic issues, such as the need to position arbitrary combinations of base glyphs and diacritics optimally.
2222- '';
2323- license = licenses.ofl;
2424- platforms = platforms.all;
2525- maintainers = [ maintainers.f--t ];
2626- };
2727- }).overrideAttrs (_: {
2828- postFetch = ''
2929- mkdir -p $out/share/{doc,fonts}
3030- unzip -j $downloadedFile \*.ttf -d $out/share/fonts/truetype
3131- unzip -j $downloadedFile \*OFL.txt \*OFL-FAQ.txt \*README.txt \*FONTLOG.txt -d "$out/share/doc/${name}"
3228 '';
3333- })
2929+ license = licenses.ofl;
3030+ platforms = platforms.all;
3131+ maintainers = [ maintainers.f--t ];
3232+ };
3333+}