···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 = "galatia-sil";
55 version = "2.1";
66- name = "galatia-sil-${version}";
77-in
88- (fetchzip rec {
99- inherit name;
10677+ src = fetchzip {
118 url = "https://software.sil.org/downloads/r/galatia/GalatiaSIL-${version}.zip";
99+ hash = "sha256-7kXnTC5vpUOjcT40oNW6e32zFGejlWJq1J+p+5DiAos=";
1010+ };
12111313- sha256 = "sha256-zLL/7LMcJul2LilhEafpvm+tiYlgv1y1jj85VvG+wiI=";
1212+ installPhase = ''
1313+ runHook preInstall
14141515- meta = with lib; {
1616- homepage = "https://software.sil.org/galatia";
1717- description = "Font designed to support Biblical Polytonic Greek";
1818- longDescription = ''
1919- 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).
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 \*FONTLOG.txt -d "$out/share/doc/${name}"
1515+ install -Dm644 $downloadedFile *.ttf -t $out/share/fonts/truetype
1616+ install -Dm644 $downloadedFile OFL.txt OFL-FAQ.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/galatia";
2323+ description = "Font designed to support Biblical Polytonic Greek";
2424+ longDescription = ''
2525+ 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).
3026 '';
3131- })
2727+ license = licenses.ofl;
2828+ platforms = platforms.all;
2929+ maintainers = [ maintainers.kmein ];
3030+ };
3131+}
···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 = "hack-font";
55 version = "3.003";
66-in (fetchzip {
77- name = "hack-font-${version}";
8699- url = "https://github.com/chrissimpkins/Hack/releases/download/v${version}/Hack-v${version}-ttf.zip";
77+ src = fetchzip {
88+ url = "https://github.com/chrissimpkins/Hack/releases/download/v${version}/Hack-v${version}-ttf.zip";
99+ hash = "sha256-SxF4kYp9aL/9L9EUniquFadzWt/+PcvhUQOIOvCrFRM=";
1010+ };
10111111- sha256 = "1l6ih6v7dqali5c7zh6z2xnbf9h2wz0ag6fdgszmqd5lnhw39v6s";
1212+ installPhase = ''
1313+ runHook preInstall
1414+1515+ install -Dm644 *.ttf -t $out/share/fonts/hack
1616+1717+ runHook postInstall
1818+ '';
12191320 meta = with lib; {
1421 description = "A typeface designed for source code";
···2229 homepage = "https://sourcefoundry.org/hack/";
23302431 /*
2525- "The font binaries are released under a license that permits unlimited
3232+ "The font binaries are released under a license that permits unlimited
2633 print, desktop, and web use for commercial and non-commercial
2734 applications. It may be embedded and distributed in documents and
2835 applications. The source is released in the widely supported UFO format
···3340 maintainers = with maintainers; [ dywedir ];
3441 platforms = platforms.all;
3542 };
3636-}).overrideAttrs (_: {
3737- postFetch = ''
3838- mkdir -p $out/share/fonts
3939- unzip -j $downloadedFile \*.ttf -d $out/share/fonts/hack
4040- '';
4141-})
4343+}