···1-# when changing this expression convert it from 'fetchzip' to 'stdenvNoCC.mkDerivation'
2-{ lib, fetchzip }:
34-let
05 version = "2.1";
6- name = "galatia-sil-${version}";
7-in
8- (fetchzip rec {
9- inherit name;
10011 url = "https://software.sil.org/downloads/r/galatia/GalatiaSIL-${version}.zip";
001213- sha256 = "sha256-zLL/7LMcJul2LilhEafpvm+tiYlgv1y1jj85VvG+wiI=";
01415- meta = with lib; {
16- homepage = "https://software.sil.org/galatia";
17- description = "Font designed to support Biblical Polytonic Greek";
18- longDescription = ''
19- Galatia SIL, designed to support Biblical Polytonic Greek, is a Unicode 3.1 font released under the SIL Open Font License. The font supports precomposed characters rather than decomposed characters. Thus, you must use a keyboard that outputs NFC encoding (precomposed).
20- '';
21- license = licenses.ofl;
22- platforms = platforms.all;
23- maintainers = [ maintainers.kmein ];
24- };
25- }).overrideAttrs (_: {
26- postFetch = ''
27- mkdir -p $out/share/{doc,fonts}
28- unzip -j $downloadedFile \*.ttf -d $out/share/fonts/truetype
29- unzip -j $downloadedFile \*OFL.txt \*OFL-FAQ.txt \*FONTLOG.txt -d "$out/share/doc/${name}"
30 '';
31- })
0000
···1+{ lib, stdenvNoCC, fetchzip }:
023+stdenvNoCC.mkDerivation rec {
4+ pname = "galatia-sil";
5 version = "2.1";
000067+ src = fetchzip {
8 url = "https://software.sil.org/downloads/r/galatia/GalatiaSIL-${version}.zip";
9+ hash = "sha256-7kXnTC5vpUOjcT40oNW6e32zFGejlWJq1J+p+5DiAos=";
10+ };
1112+ installPhase = ''
13+ runHook preInstall
1415+ install -Dm644 $downloadedFile *.ttf -t $out/share/fonts/truetype
16+ install -Dm644 $downloadedFile OFL.txt OFL-FAQ.txt FONTLOG.txt -t $out/share/doc/${pname}-${version}
17+18+ runHook postInstall
19+ '';
20+21+ meta = with lib; {
22+ homepage = "https://software.sil.org/galatia";
23+ description = "Font designed to support Biblical Polytonic Greek";
24+ longDescription = ''
25+ Galatia SIL, designed to support Biblical Polytonic Greek, is a Unicode 3.1 font released under the SIL Open Font License. The font supports precomposed characters rather than decomposed characters. Thus, you must use a keyboard that outputs NFC encoding (precomposed).
000026 '';
27+ license = licenses.ofl;
28+ platforms = platforms.all;
29+ maintainers = [ maintainers.kmein ];
30+ };
31+}
+18-18
pkgs/data/fonts/gentium-book-basic/default.nix
···1-# when changing this expression convert it from 'fetchzip' to 'stdenvNoCC.mkDerivation'
2-{ lib, fetchzip }:
34-let
5- major = "1";
6- minor = "102";
7- version = "${major}.${minor}";
8- name = "gentium-book-basic-${version}";
9-in (fetchzip rec {
10- inherit name;
1112- url = "http://software.sil.org/downloads/r/gentium/GentiumBasic_${major}${minor}.zip";
0001314- sha256 = "0598zr5f7d6ll48pbfbmmkrybhhdks9b2g3m2g67wm40070ffzmd";
000000001516 meta = with lib; {
17 homepage = "https://software.sil.org/gentium/";
···20 license = licenses.ofl;
21 platforms = platforms.all;
22 };
23-}).overrideAttrs (_: {
24- postFetch = ''
25- mkdir -p $out/share/{doc,fonts}
26- unzip -j $downloadedFile \*.ttf -d $out/share/fonts/truetype
27- unzip -j $downloadedFile \*/FONTLOG.txt \*/GENTIUM-FAQ.txt -d $out/share/doc/${name}
28- '';
29-})
···1-# when changing this expression convert it from 'fetchzip' to 'stdenvNoCC.mkDerivation'
2-{ lib, fetchzip }:
34-let
05 version = "3.003";
6-in (fetchzip {
7- name = "hack-font-${version}";
89- url = "https://github.com/chrissimpkins/Hack/releases/download/v${version}/Hack-v${version}-ttf.zip";
0001011- sha256 = "1l6ih6v7dqali5c7zh6z2xnbf9h2wz0ag6fdgszmqd5lnhw39v6s";
0000001213 meta = with lib; {
14 description = "A typeface designed for source code";
···22 homepage = "https://sourcefoundry.org/hack/";
2324 /*
25- "The font binaries are released under a license that permits unlimited
26 print, desktop, and web use for commercial and non-commercial
27 applications. It may be embedded and distributed in documents and
28 applications. The source is released in the widely supported UFO format
···33 maintainers = with maintainers; [ dywedir ];
34 platforms = platforms.all;
35 };
36-}).overrideAttrs (_: {
37- postFetch = ''
38- mkdir -p $out/share/fonts
39- unzip -j $downloadedFile \*.ttf -d $out/share/fonts/hack
40- '';
41-})
···1+{ lib, stdenvNoCC, fetchzip }:
023+stdenvNoCC.mkDerivation rec {
4+ pname = "hack-font";
5 version = "3.003";
0067+ src = fetchzip {
8+ url = "https://github.com/chrissimpkins/Hack/releases/download/v${version}/Hack-v${version}-ttf.zip";
9+ hash = "sha256-SxF4kYp9aL/9L9EUniquFadzWt/+PcvhUQOIOvCrFRM=";
10+ };
1112+ installPhase = ''
13+ runHook preInstall
14+15+ install -Dm644 *.ttf -t $out/share/fonts/hack
16+17+ runHook postInstall
18+ '';
1920 meta = with lib; {
21 description = "A typeface designed for source code";
···29 homepage = "https://sourcefoundry.org/hack/";
3031 /*
32+ "The font binaries are released under a license that permits unlimited
33 print, desktop, and web use for commercial and non-commercial
34 applications. It may be embedded and distributed in documents and
35 applications. The source is released in the widely supported UFO format
···40 maintainers = with maintainers; [ dywedir ];
41 platforms = platforms.all;
42 };
43+}
00000
+16-13
pkgs/data/fonts/hasklig/default.nix
···1-# when changing this expression convert it from 'fetchzip' to 'stdenvNoCC.mkDerivation'
2-{ lib, fetchzip }:
34-let
05 version = "1.1";
6-in (fetchzip {
7- name = "hasklig-${version}";
000000089- url = "https://github.com/i-tu/Hasklig/releases/download/${version}/Hasklig-${version}.zip";
1011- sha256 = "0xxyx0nkapviqaqmf3b610nq17k20afirvc72l32pfspsbxz8ybq";
01213 meta = with lib; {
14 homepage = "https://github.com/i-tu/Hasklig";
···17 platforms = platforms.all;
18 maintainers = with maintainers; [ davidrusu Profpatsch ];
19 };
20-}).overrideAttrs (_: {
21- postFetch = ''
22- unzip $downloadedFile
23- install -m444 -Dt $out/share/fonts/opentype *.otf
24- '';
25-})
···1-# when changing this expression convert it from 'fetchzip' to 'stdenvNoCC.mkDerivation'
2-{ lib, fetchzip }:
34-let
05 version = "1.959";
6-in (fetchzip rec {
7- name = "lmmath-${version}";
00089- url = "http://www.gust.org.pl/projects/e-foundry/lm-math/download/latinmodern-math-1959.zip";
10- sha256 = "05k145bxgxjh7i9gx1ahigxfpc2v2vwzsy2mc41jvvg51kjr8fnn";
000000001112 meta = with lib; {
13 description = "The Latin Modern Math (LM Math) font completes the modernization of the Computer Modern family of typefaces designed and programmed by Donald E. Knuth";
···19 maintainers = with maintainers; [ siddharthist ];
20 platforms = platforms.all;
21 };
22-}).overrideAttrs (_: {
23- postFetch = ''
24- mkdir -p $out/share/fonts/opentype/
25- mkdir -p $out/share/doc/latinmodern-math-${version}/
26- unzip -j $downloadedFile "*/otf/*.otf" -d $out/share/fonts/opentype/
27- unzip -j $downloadedFile "*/doc/*.txt" -d $out/share/doc/latinmodern-math-${version}/
28- '';
29-})
···1+{ lib, stdenvNoCC, fetchzip }:
023+stdenvNoCC.mkDerivation rec {
4+ pname = "lmmath";
5 version = "1.959";
6+7+ src = fetchzip {
8+ url = "http://www.gust.org.pl/projects/e-foundry/lm-math/download/latinmodern-math-1959.zip";
9+ hash = "sha256-et/WMhfZZYgP0S7ZmI6MZK5owv9bSoMBXFX6yGSng5Y=";
10+ };
1112+ installPhase = ''
13+ runHook preInstall
14+15+ mkdir -p $out/share/fonts/opentype/
16+ mkdir -p $out/share/doc/latinmodern-math-${version}/
17+ cp otf/*.otf $out/share/fonts/opentype/
18+ cp doc/*.txt $out/share/doc/latinmodern-math-${version}/
19+20+ runHook postInstall
21+ '';
2223 meta = with lib; {
24 description = "The Latin Modern Math (LM Math) font completes the modernization of the Computer Modern family of typefaces designed and programmed by Donald E. Knuth";
···30 maintainers = with maintainers; [ siddharthist ];
31 platforms = platforms.all;
32 };
33+}
0000000
+14-13
pkgs/data/fonts/mno16/default.nix
···1-# when changing this expression convert it from 'fetchzip' to 'stdenvNoCC.mkDerivation'
2-{ lib, fetchzip }:
34-let
5 pname = "mno16";
6 version = "1.0";
7-in (fetchzip rec {
8- name = "${pname}-${version}";
9- url = "https://github.com/sevmeyer/${pname}/releases/download/${version}/${name}.zip";
10- sha256 = "1x06nl281fcjk6g1p4cgrgxakmwcci6vvasskaygsqlzxd8ig87w";
00000001112 meta = with lib; {
13 description = "minimalist monospaced font";
14 homepage = "https://sev.dev/fonts/mno16";
15 license = licenses.cc0;
16 };
17-}).overrideAttrs (_: {
18- postFetch = ''
19- mkdir -p $out/share/fonts/truetype
20- unzip -j $downloadedFile \*.ttf -d $out/share/fonts/truetype/
21- '';
22-})