treewide: convert 21 fonts to stdenvNoCC.mkDerivation

+403 -355
+18 -15
pkgs/data/fonts/andagii/default.nix
··· 1 - # when changing this expression convert it from 'fetchzip' to 'stdenvNoCC.mkDerivation' 2 - { lib, fetchzip }: 1 + { lib, stdenvNoCC, fetchzip }: 3 2 4 - let 3 + stdenvNoCC.mkDerivation rec { 4 + pname = "andagii"; 5 5 version = "1.0.2"; 6 - in (fetchzip { 7 - name = "andagii-${version}"; 6 + 7 + src = fetchzip { 8 + url = "http://www.i18nguy.com/unicode/andagii.zip"; 9 + curlOpts = "--user-agent 'Mozilla/5.0'"; 10 + hash = "sha256-U7wC55G8jIvMMyPcEiJQ700A7nkWdgWK1LM0F/wgDCg="; 11 + }; 12 + 13 + installPhase = '' 14 + runHook preInstall 15 + 16 + mkdir -p $out/share/fonts/truetype 17 + cp -v ANDAGII_.TTF $out/share/fonts/truetype/andagii.ttf 8 18 9 - url = "http://www.i18nguy.com/unicode/andagii.zip"; 10 - curlOpts = "--user-agent 'Mozilla/5.0'"; 11 - sha256 = "0j5kf2fmyqgnf5ji6h0h79lq9n9d85hkfrr4ya8hqj4gwvc0smb2"; 19 + runHook postInstall 20 + ''; 12 21 13 22 # There are multiple claims that the font is GPL, so I include the 14 23 # package; but I cannot find the original source, so use it on your ··· 20 29 license = "unknown"; 21 30 platforms = platforms.all; 22 31 }; 23 - }).overrideAttrs (_: { 24 - postFetch = '' 25 - unzip $downloadedFile 26 - mkdir -p $out/share/fonts/truetype 27 - cp -v ANDAGII_.TTF $out/share/fonts/truetype/andagii.ttf 28 - ''; 29 - }) 32 + }
+23 -23
pkgs/data/fonts/andika/default.nix
··· 1 - # when changing this expression convert it from 'fetchzip' to 'stdenvNoCC.mkDerivation' 2 - { lib, fetchzip }: 1 + { lib, stdenvNoCC, fetchzip }: 3 2 4 - let 3 + stdenvNoCC.mkDerivation rec { 4 + pname = "andika"; 5 5 version = "6.101"; 6 - name = "andika-${version}"; 7 - in 8 - (fetchzip rec { 9 - inherit name; 10 6 7 + src = fetchzip { 11 8 url = "https://software.sil.org/downloads/r/andika/Andika-${version}.zip"; 9 + hash = "sha256-LghkGd/cjuXghzsU9X/YneNIdBeDEnu0ARszipANm8w="; 10 + }; 12 11 13 - sha256 = "sha256-J/Ad+fmCMOxLoo+691LE6Bgi/l3ovIfWScwwVWtqACI="; 12 + installPhase = '' 13 + runHook preInstall 14 + 15 + install -Dm644 *.ttf -t $out/share/fonts/truetype 16 + install -Dm644 *OFL.txt *OFL-FAQ.txt *README.txt *FONTLOG.txt -t $out/share/doc/${pname}-${version} 14 17 15 - meta = with lib; { 16 - homepage = "https://software.sil.org/andika"; 17 - description = "A family designed especially for literacy use taking into account the needs of beginning readers"; 18 - longDescription = '' 18 + runHook postInstall 19 + ''; 20 + 21 + meta = with lib; { 22 + homepage = "https://software.sil.org/andika"; 23 + description = "A family designed especially for literacy use taking into account the needs of beginning readers"; 24 + longDescription = '' 19 25 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. 20 26 21 27 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. 22 - ''; 23 - license = licenses.ofl; 24 - platforms = platforms.all; 25 - maintainers = [ maintainers.f--t ]; 26 - }; 27 - }).overrideAttrs (_: { 28 - postFetch = '' 29 - mkdir -p $out/share/{doc,fonts} 30 - unzip -j $downloadedFile \*.ttf -d $out/share/fonts/truetype 31 - unzip -j $downloadedFile \*OFL.txt \*OFL-FAQ.txt \*README.txt \*FONTLOG.txt -d "$out/share/doc/${name}" 32 28 ''; 33 - }) 29 + license = licenses.ofl; 30 + platforms = platforms.all; 31 + maintainers = [ maintainers.f--t ]; 32 + }; 33 + }
+19 -14
pkgs/data/fonts/ankacoder/default.nix
··· 1 - # when changing this expression convert it from 'fetchzip' to 'stdenvNoCC.mkDerivation' 2 - { lib, fetchzip }: 1 + { lib, stdenvNoCC, fetchzip }: 2 + 3 + stdenvNoCC.mkDerivation rec { 4 + pname = "ankacoder"; 5 + version = "1.100"; 6 + 7 + src = fetchzip { 8 + url = "https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/anka-coder-fonts/AnkaCoder.${version}.zip"; 9 + stripRoot = false; 10 + hash = "sha256-14ItaSQ/fO/WDq0O4SXGWnZgiM0kayJrWQgsKb7bsyY="; 11 + }; 3 12 4 - let version = "1.100"; in 5 - (fetchzip { 6 - name = "ankacoder-${version}"; 7 - url = "https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/anka-coder-fonts/AnkaCoder.${version}.zip"; 13 + installPhase = '' 14 + runHook preInstall 15 + 16 + mkdir -p $out/share/fonts/truetype 17 + cp *.ttf $out/share/fonts/truetype 8 18 9 - sha256 = "1jqx9micfmiarqh9xp330gl96v3vxbwzz9cmg2vi845n9md4im85"; 19 + runHook postInstall 20 + ''; 10 21 11 22 meta = with lib; { 12 23 description = "Anka/Coder fonts"; ··· 15 26 maintainers = with maintainers; [ dtzWill ]; 16 27 platforms = platforms.all; 17 28 }; 18 - }).overrideAttrs (_: { 19 - postFetch = '' 20 - unzip $downloadedFile 21 - mkdir -p $out/share/fonts/truetype 22 - cp *.ttf $out/share/fonts/truetype 23 - ''; 24 - }) 29 + }
+24 -24
pkgs/data/fonts/annapurna-sil/default.nix
··· 1 - # when changing this expression convert it from 'fetchzip' to 'stdenvNoCC.mkDerivation' 2 - { lib, fetchzip }: 1 + { lib, stdenvNoCC, fetchzip }: 3 2 4 - let 3 + stdenvNoCC.mkDerivation rec { 4 + pname = "annapurna-sil"; 5 5 version = "1.204"; 6 - name = "annapurna-sil-${version}"; 7 - in 8 - (fetchzip rec { 9 - inherit name; 10 6 7 + src = fetchzip { 11 8 url = "https://software.sil.org/downloads/r/annapurna/AnnapurnaSIL-${version}.zip"; 9 + hash = "sha256-4ya3Iydrz5Pvol9sTDIe9ZW5k3+XQp8GB2LAnRpeiXs="; 10 + }; 12 11 13 - sha256 = "sha256-kVeP9ZX8H+Wn6jzmH1UQvUKY6vJjadMTdEusS7LodFM="; 12 + installPhase = '' 13 + runHook preInstall 14 14 15 - meta = with lib; { 16 - homepage = "https://software.sil.org/annapurna"; 17 - description = "Unicode-based font family with broad support for writing systems that use the Devanagari script"; 18 - longDescription = '' 19 - 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. 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 \*README.txt \*FONTLOG.txt -d "$out/share/doc/${name}" 15 + install -Dm644 *.ttf -t $out/share/fonts/truetype 16 + install -Dm644 *OFL.txt *OFL-FAQ.txt *README.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/annapurna"; 23 + description = "Unicode-based font family with broad support for writing systems that use the Devanagari script"; 24 + longDescription = '' 25 + 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. 30 26 ''; 31 - }) 27 + license = licenses.ofl; 28 + platforms = platforms.all; 29 + maintainers = [ maintainers.kmein ]; 30 + }; 31 + }
+18 -14
pkgs/data/fonts/babelstone-han/default.nix
··· 1 - # when changing this expression convert it from 'fetchzip' to 'stdenvNoCC.mkDerivation' 2 - { lib, fetchzip }: 1 + { lib, stdenvNoCC, fetchzip }: 3 2 4 - let 3 + stdenvNoCC.mkDerivation { 4 + pname = "babelstone-han"; 5 5 version = "13.0.3"; 6 - in (fetchzip { 7 - name = "babelstone-han-${version}"; 8 6 9 - # upstream download links are unversioned, so hash changes 10 - url = "https://web.archive.org/web/20200210125314/https://www.babelstone.co.uk/Fonts/Download/BabelStoneHan.zip"; 11 - sha256 = "018isk3hbzsihzrxavgjbn485ngzvlm96npqx9y7zpkxsssslc4w"; 7 + src = fetchzip { 8 + # upstream download links are unversioned, so hash changes 9 + url = "https://web.archive.org/web/20200210125314/https://www.babelstone.co.uk/Fonts/Download/BabelStoneHan.zip"; 10 + hash = "sha256-LLhNtHu2hh5DY2XVSrLuVzzR6OtMdSSHetyA0k1IFs0="; 11 + }; 12 + 13 + installPhase = '' 14 + runHook preInstall 15 + 16 + mkdir -p $out/share/fonts/truetype 17 + cp *.ttf $out/share/fonts/truetype 18 + 19 + runHook postInstall 20 + ''; 12 21 13 22 meta = with lib; { 14 23 description = "Unicode CJK font with over 36000 Han characters"; ··· 18 27 platforms = platforms.all; 19 28 maintainers = with maintainers; [ emily ]; 20 29 }; 21 - }).overrideAttrs (_: { 22 - postFetch = '' 23 - mkdir -p $out/share/fonts/truetype 24 - unzip $downloadedFile '*.ttf' -d $out/share/fonts/truetype 25 - ''; 26 - }) 30 + }
+21 -18
pkgs/data/fonts/barlow/default.nix
··· 1 - # when changing this expression convert it from 'fetchzip' to 'stdenvNoCC.mkDerivation' 2 - { lib, fetchzip }: 3 - let 1 + { lib, stdenvNoCC, fetchzip }: 2 + 3 + stdenvNoCC.mkDerivation rec { 4 + pname = "barlow"; 4 5 version = "1.422"; 5 - in 6 - (fetchzip rec { 7 - name = "barlow-${version}"; 8 6 9 - url = "https://tribby.com/fonts/barlow/download/barlow-${version}.zip"; 7 + src = fetchzip { 8 + url = "https://tribby.com/fonts/barlow/download/barlow-${version}.zip"; 9 + stripRoot = false; 10 + hash = "sha256-aHAGPEgBkH41r7HR0D74OGCa7ta7Uo8Mgq4YVtYOwU8="; 11 + }; 12 + 13 + installPhase = '' 14 + runHook preInstall 15 + 16 + install -Dm644 fonts/otf/*.otf -t $out/share/fonts/opentype 17 + install -Dm644 fonts/ttf/*.ttf fonts/gx/*.ttf -t $out/share/fonts/truetype 18 + install -Dm644 fonts/eot/*.eot -t $out/share/fonts/eot 19 + install -Dm644 fonts/woff/*.woff -t $out/share/fonts/woff 20 + install -Dm644 fonts/woff2/*.woff2 -t $out/share/fonts/woff2 10 21 11 - sha256 = "08ld4c3zq4d1px07lc64i7l8848zsc61ddy3654w2sh0hx5sm5ld"; 22 + runHook postInstall 23 + ''; 12 24 13 25 meta = with lib; { 14 26 description = "A grotesk variable font superfamily"; ··· 17 29 maintainers = [ maintainers.marsam ]; 18 30 platforms = platforms.all; 19 31 }; 20 - }).overrideAttrs (_: { 21 - postFetch = '' 22 - mkdir -p $out/share/fonts/ 23 - unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype 24 - unzip -j $downloadedFile \*.ttf -d $out/share/fonts/truetype 25 - unzip -j $downloadedFile \*.eot -d $out/share/fonts/eot 26 - unzip -j $downloadedFile \*.woff -d $out/share/fonts/woff 27 - unzip -j $downloadedFile \*.woff2 -d $out/share/fonts/woff2 28 - ''; 29 - }) 32 + }
+16 -15
pkgs/data/fonts/borg-sans-mono/default.nix
··· 1 - # when changing this expression convert it from 'fetchzip' to 'stdenvNoCC.mkDerivation' 2 - { lib, fetchzip }: 1 + { lib, stdenvNoCC, fetchzip }: 3 2 4 - let 3 + stdenvNoCC.mkDerivation { 5 4 pname = "borg-sans-mono"; 6 5 version = "0.2.0"; 7 - in 8 - (fetchzip { 9 - name = "${pname}-${version}"; 6 + 7 + src = fetchzip { 8 + # https://github.com/marnen/borg-sans-mono/issues/19 9 + url = "https://github.com/marnen/borg-sans-mono/files/107663/BorgSansMono.ttf.zip"; 10 + hash = "sha256-nn7TGeVm45t7QI8+eEREBTFg9aShYYKtdEYEwQwO2fQ="; 11 + }; 12 + 13 + installPhase = '' 14 + runHook preInstall 15 + 16 + install -Dm644 *.ttf -t $out/share/fonts/truetype 10 17 11 - # https://github.com/marnen/borg-sans-mono/issues/19 12 - url = "https://github.com/marnen/borg-sans-mono/files/107663/BorgSansMono.ttf.zip"; 13 - sha256 = "1gz4ab0smw76ih5cs2l3n92c77nv7ld5zghq42avjsfhxrc2n5ri"; 18 + runHook postInstall 19 + ''; 14 20 15 21 meta = with lib; { 16 22 description = "Droid Sans Mono Slashed + Hasklig-style ligatures"; ··· 19 25 platforms = platforms.all; 20 26 maintainers = with maintainers; [ atila ]; 21 27 }; 22 - }).overrideAttrs (_: { 23 - postFetch = '' 24 - mkdir -p $out/share/fonts 25 - unzip -j $downloadedFile \*.ttf -d $out/share/fonts/truetype 26 - ''; 27 - }) 28 + }
+18 -15
pkgs/data/fonts/cascadia-code/default.nix
··· 1 - # when changing this expression convert it from 'fetchzip' to 'stdenvNoCC.mkDerivation' 2 - { lib, fetchzip }: 3 - let 1 + { lib, stdenvNoCC, fetchzip }: 2 + 3 + stdenvNoCC.mkDerivation rec { 4 + pname = "cascadia-code"; 4 5 version = "2111.01"; 5 - in 6 - (fetchzip { 7 - name = "cascadia-code-${version}"; 6 + 7 + src = fetchzip { 8 + url = "https://github.com/microsoft/cascadia-code/releases/download/v${version}/CascadiaCode-${version}.zip"; 9 + stripRoot = false; 10 + hash = "sha256-v9Vm5X80wEvorMhIlRw3MnyuSOdBpTl9ibBPpmm1vig="; 11 + }; 12 + 13 + installPhase = '' 14 + runHook preInstall 8 15 9 - url = "https://github.com/microsoft/cascadia-code/releases/download/v${version}/CascadiaCode-${version}.zip"; 16 + install -Dm644 otf/static/*.otf -t $out/share/fonts/opentype 17 + install -Dm644 ttf/static/*.ttf -t $out/share/fonts/truetype 10 18 11 - sha256 = "sha256-kUVTQ/oMZztNf22sDbQBpQW0luSc5nr5sxWU5etLDec="; 19 + runHook postInstall 20 + ''; 12 21 13 22 meta = with lib; { 14 23 description = "Monospaced font that includes programming ligatures and is designed to enhance the modern look and feel of the Windows Terminal"; ··· 18 27 maintainers = [ maintainers.marsam ]; 19 28 platforms = platforms.all; 20 29 }; 21 - }).overrideAttrs (_: { 22 - postFetch = '' 23 - mkdir -p $out/share/fonts/ 24 - unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype 25 - unzip -j $downloadedFile \*.ttf -d $out/share/fonts/truetype 26 - ''; 27 - }) 30 + }
+23 -23
pkgs/data/fonts/charis-sil/default.nix
··· 1 - # when changing this expression convert it from 'fetchzip' to 'stdenvNoCC.mkDerivation' 2 - { lib, fetchzip }: 1 + { lib, stdenvNoCC, fetchzip }: 3 2 4 - let 3 + stdenvNoCC.mkDerivation rec { 4 + pname = "charis-sil"; 5 5 version = "6.101"; 6 - name = "charis-sil-${version}"; 7 - in 8 - (fetchzip rec { 9 - inherit name; 10 6 7 + src = fetchzip { 11 8 url = "https://software.sil.org/downloads/r/charis/CharisSIL-${version}.zip"; 9 + hash = "sha256-Rf5eKQVZw7zgTv6KkJUdNdd4sSJPdvjy/GDLusvlgzE="; 10 + }; 12 11 13 - sha256 = "sha256-b1ms9hJ6IPe7W6O9KgzHZvwT4/nAoLOhdydcUrwNfnU="; 12 + installPhase = '' 13 + runHook preInstall 14 + 15 + install -Dm644 *.ttf -t $out/share/fonts/truetype 16 + install -Dm644 *OFL.txt *OFL-FAQ.txt *README.txt *FONTLOG.txt -t $out/share/doc/${pname}-${version} 14 17 15 - meta = with lib; { 16 - homepage = "https://software.sil.org/charis"; 17 - description = "A family of highly readable fonts for broad multilingual use"; 18 - longDescription = '' 18 + runHook postInstall 19 + ''; 20 + 21 + meta = with lib; { 22 + homepage = "https://software.sil.org/charis"; 23 + description = "A family of highly readable fonts for broad multilingual use"; 24 + longDescription = '' 19 25 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. 20 26 21 27 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. 22 - ''; 23 - license = licenses.ofl; 24 - platforms = platforms.all; 25 - maintainers = [ maintainers.f--t ]; 26 - }; 27 - }).overrideAttrs (_: { 28 - postFetch = '' 29 - mkdir -p $out/share/{doc,fonts} 30 - unzip -j $downloadedFile \*.ttf -d $out/share/fonts/truetype 31 - unzip -j $downloadedFile \*OFL.txt \*OFL-FAQ.txt \*README.txt \*FONTLOG.txt -d "$out/share/doc/${name}" 32 28 ''; 33 - }) 29 + license = licenses.ofl; 30 + platforms = platforms.all; 31 + maintainers = [ maintainers.f--t ]; 32 + }; 33 + }
+22 -19
pkgs/data/fonts/comic-relief/default.nix
··· 1 - # when changing this expression convert it from 'fetchzip' to 'stdenvNoCC.mkDerivation' 2 - { lib, fetchzip }: 1 + { lib, stdenvNoCC, fetchzip }: 3 2 4 - let 3 + stdenvNoCC.mkDerivation rec { 4 + pname = "comic-relief"; 5 5 version = "1.1"; 6 - name = "comic-relief-${version}"; 7 - in (fetchzip rec { 8 - inherit name; 6 + 7 + src = fetchzip { 8 + url = "https://fontlibrary.org/assets/downloads/comic-relief/45c456b6db2aaf2f7f69ac66b5ac7239/comic-relief.zip"; 9 + stripRoot = false; 10 + hash = "sha256-lvkMfaQvLMZ8F0Q5JnpmMsIAkR+XfihoHIoS4z5QEvA="; 11 + }; 9 12 10 - url = "https://fontlibrary.org/assets/downloads/comic-relief/45c456b6db2aaf2f7f69ac66b5ac7239/comic-relief.zip"; 13 + installPhase = '' 14 + runHook preInstall 15 + 16 + mkdir -p $out/etc/fonts/conf.d 17 + mkdir -p $out/share/doc/${pname}-${version} 18 + mkdir -p $out/share/fonts/truetype 19 + cp -v ${./comic-sans-ms-alias.conf} $out/etc/fonts/conf.d/30-comic-sans-ms.conf 20 + cp *.ttf -d $out/share/fonts/truetype 21 + cp FONTLOG.txt -d $out/share/doc/${pname}-${version} 11 22 12 - sha256 = "0dz0y7w6mq4hcmmxv6fn4mp6jkln9mzr4s96vsg68wrl5b7k9yff"; 23 + runHook postInstall 24 + ''; 13 25 14 26 meta = with lib; { 15 27 homepage = "https://fontlibrary.org/en/font/comic-relief"; ··· 23 35 ''; 24 36 license = licenses.ofl; 25 37 platforms = platforms.all; 26 - maintainers = [maintainers.rycee]; 38 + maintainers = [ maintainers.rycee ]; 27 39 28 40 # Reduce the priority of this package. The intent is that if you 29 41 # also install the `corefonts` package, then you probably will not 30 42 # want to install the font alias of this package. 31 43 priority = 10; 32 44 }; 33 - }).overrideAttrs (_: { 34 - postFetch = '' 35 - mkdir -p $out/etc/fonts/conf.d 36 - mkdir -p $out/share/doc/${name} 37 - mkdir -p $out/share/fonts/truetype 38 - cp -v ${./comic-sans-ms-alias.conf} $out/etc/fonts/conf.d/30-comic-sans-ms.conf 39 - unzip -j $downloadedFile \*.ttf -d $out/share/fonts/truetype 40 - unzip -j $downloadedFile FONTLOG.txt -d $out/share/doc/${name} 41 - ''; 42 - }) 45 + }
+17 -15
pkgs/data/fonts/courier-prime/default.nix
··· 1 - # when changing this expression convert it from 'fetchzip' to 'stdenvNoCC.mkDerivation' 2 - { lib, fetchzip }: 1 + { lib, stdenvNoCC, fetchzip }: 3 2 4 - let 3 + stdenvNoCC.mkDerivation rec { 4 + pname = "courier-prime"; 5 5 version = "unstable-2019-12-05"; 6 - repo = "CourierPrime"; 7 - rev = "7f6d46a766acd9391d899090de467c53fd9c9cb0"; 8 - in (fetchzip rec { 9 - name = "courier-prime-${version}"; 10 - url = "https://github.com/quoteunquoteapps/${repo}/archive/${rev}/${name}.zip"; 11 - sha256 = "1xh4pkksm6zrafhb69q4lq093q6pl245zi9qhqw3x6c1ab718704"; 6 + 7 + src = fetchzip { 8 + url = "https://github.com/quoteunquoteapps/CourierPrime/archive/7f6d46a766acd9391d899090de467c53fd9c9cb0/${pname}-${version}.zip"; 9 + hash = "sha256-pMFZpytNtgoZrBj2Gj8SgJ0Lab8uVY5aQtcO2lFbHj4="; 10 + }; 11 + 12 + installPhase = '' 13 + runHook preInstall 14 + 15 + install -m444 -Dt $out/share/fonts/truetype fonts/ttf/*.ttf 16 + 17 + runHook postInstall 18 + ''; 12 19 13 20 meta = with lib; { 14 21 description = "Monospaced font designed specifically for screenplays"; ··· 17 24 maintainers = [ maintainers.austinbutler ]; 18 25 platforms = platforms.all; 19 26 }; 20 - }).overrideAttrs (_: { 21 - postFetch = '' 22 - unzip $downloadedFile 23 - install -m444 -Dt $out/share/fonts/truetype ${repo}-${rev}/fonts/ttf/*.ttf 24 - ''; 25 - }) 27 + }
+19 -17
pkgs/data/fonts/cozette/default.nix
··· 1 - # when changing this expression convert it from 'fetchzip' to 'stdenvNoCC.mkDerivation' 2 - { lib, fetchzip }: 1 + { lib, stdenvNoCC, fetchzip }: 3 2 4 - let 3 + stdenvNoCC.mkDerivation rec { 4 + pname = "cozette"; 5 5 version = "1.13.0"; 6 - in 7 - (fetchzip rec { 8 - name = "Cozette-${version}"; 9 6 10 - url = "https://github.com/slavfox/Cozette/releases/download/v.${version}/CozetteFonts.zip"; 7 + src = fetchzip { 8 + url = "https://github.com/slavfox/Cozette/releases/download/v.${version}/CozetteFonts.zip"; 9 + hash = "sha256-bMgjNnm84vk7jT2UvgCeQwmjZ+9X1GzGLXIEukhaWGw="; 10 + }; 11 11 12 - sha256 = "sha256-xp3BCYfNUxCNewg4FfzmJnKp0PARvvnViMVwT25nWdM="; 12 + installPhase = '' 13 + runHook preInstall 14 + 15 + mkdir -p $out/share/fonts 16 + install -Dm644 *.ttf -t $out/share/fonts/truetype 17 + install -Dm644 *.otf -t $out/share/fonts/opentype 18 + install -Dm644 *.bdf -t $out/share/fonts/misc 19 + install -Dm644 *.otb -t $out/share/fonts/misc 20 + 21 + runHook postInstall 22 + ''; 13 23 14 24 meta = with lib; { 15 25 description = "A bitmap programming font optimized for coziness"; ··· 18 28 platforms = platforms.all; 19 29 maintainers = with maintainers; [ brettlyons marsam ]; 20 30 }; 21 - }).overrideAttrs (_: { 22 - postFetch = '' 23 - mkdir -p $out/share/fonts 24 - unzip -j $downloadedFile \*.ttf -d $out/share/fonts/truetype 25 - unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype 26 - unzip -j $downloadedFile \*.bdf -d $out/share/fonts/misc 27 - unzip -j $downloadedFile \*.otb -d $out/share/fonts/misc 28 - ''; 29 - }) 31 + }
+17 -14
pkgs/data/fonts/d2coding/default.nix
··· 1 - # when changing this expression convert it from 'fetchzip' to 'stdenvNoCC.mkDerivation' 2 - { lib, fetchzip }: 1 + { lib, stdenvNoCC, fetchzip }: 3 2 4 - let 5 - version = "1.3.2"; 3 + stdenvNoCC.mkDerivation rec { 6 4 pname = "d2codingfont"; 5 + version = "1.3.2"; 6 + 7 + src = fetchzip { 8 + url = "https://github.com/naver/${pname}/releases/download/VER${version}/D2Coding-Ver${version}-20180524.zip"; 9 + stripRoot = false; 10 + hash = "sha256-iC6iaUSVg4zt3wVFJUU4HEeswuKDOTFsAxq/0gRiOCA="; 11 + }; 12 + 13 + installPhase = '' 14 + runHook preInstall 7 15 8 - in (fetchzip { 9 - name = "${pname}-${version}"; 10 - url = "https://github.com/naver/${pname}/releases/download/VER${version}/D2Coding-Ver${version}-20180524.zip"; 16 + mkdir -p $out/share/fonts 17 + install -Dm644 */*-all.ttc -t $out/share/fonts/truetype/ 11 18 12 - sha256 = "1812r82530wzfki7k9cm35fy6k2lvis7j6w0w8svc784949m1wwj"; 19 + runHook postInstall 20 + ''; 13 21 14 22 meta = with lib; { 15 23 description = "Monospace font with support for Korean and latin characters"; ··· 25 33 platforms = platforms.all; 26 34 maintainers = with maintainers; [ dtzWill ]; 27 35 }; 28 - }).overrideAttrs (_: { 29 - postFetch = '' 30 - mkdir -p $out/share/fonts 31 - unzip -j $downloadedFile \*-all.ttc -d $out/share/fonts/truetype/ 32 - ''; 33 - }) 36 + }
+23 -23
pkgs/data/fonts/doulos-sil/default.nix
··· 1 - # when changing this expression convert it from 'fetchzip' to 'stdenvNoCC.mkDerivation' 2 - { lib, fetchzip }: 1 + { lib, stdenvNoCC, fetchzip }: 3 2 4 - let 3 + stdenvNoCC.mkDerivation rec { 4 + pname = "doulos-sil"; 5 5 version = "6.101"; 6 - name = "doulos-sil-${version}"; 7 - in 8 - (fetchzip rec { 9 - inherit name; 10 6 7 + src = fetchzip { 11 8 url = "https://software.sil.org/downloads/r/doulos/DoulosSIL-${version}.zip"; 9 + hash = "sha256-CPjk6SLgsDYjachZZ1hanp6Q+cxTxfHOkoeU59Om5b8="; 10 + }; 12 11 13 - sha256 = "sha256-vYdnudMkkWz6r8pwq98fyO0zcfFBRPmrqlmWxHCOIcc="; 12 + installPhase = '' 13 + runHook preInstall 14 + 15 + install -Dm644 *.ttf -t $out/share/fonts/truetype 16 + install -Dm644 *OFL.txt *OFL-FAQ.txt *README.txt *FONTLOG.txt -t $out/share/doc/${pname}-${version} 14 17 15 - meta = with lib; { 16 - homepage = "https://software.sil.org/doulos"; 17 - description = "A font that provides complete support for the International Phonetic Alphabet"; 18 - longDescription = '' 18 + runHook postInstall 19 + ''; 20 + 21 + meta = with lib; { 22 + homepage = "https://software.sil.org/doulos"; 23 + description = "A font that provides complete support for the International Phonetic Alphabet"; 24 + longDescription = '' 19 25 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. 20 26 21 27 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. 22 - ''; 23 - license = licenses.ofl; 24 - platforms = platforms.all; 25 - maintainers = [ maintainers.f--t ]; 26 - }; 27 - }).overrideAttrs (_: { 28 - postFetch = '' 29 - mkdir -p $out/share/{doc,fonts} 30 - unzip -j $downloadedFile \*.ttf -d $out/share/fonts/truetype 31 - unzip -j $downloadedFile \*OFL.txt \*OFL-FAQ.txt \*README.txt \*FONTLOG.txt -d "$out/share/doc/${name}" 32 28 ''; 33 - }) 29 + license = licenses.ofl; 30 + platforms = platforms.all; 31 + maintainers = [ maintainers.f--t ]; 32 + }; 33 + }
+17 -15
pkgs/data/fonts/eb-garamond/default.nix
··· 1 - # when changing this expression convert it from 'fetchzip' to 'stdenvNoCC.mkDerivation' 2 - { lib, fetchzip }: 1 + { lib, stdenvNoCC, fetchzip }: 3 2 4 - let 3 + stdenvNoCC.mkDerivation rec { 4 + pname = "eb-garamond"; 5 5 version = "0.016"; 6 - name = "eb-garamond-${version}"; 7 - in (fetchzip rec { 8 - inherit name; 9 6 10 - url = "https://bitbucket.org/georgd/eb-garamond/downloads/EBGaramond-${version}.zip"; 7 + src = fetchzip { 8 + url = "https://bitbucket.org/georgd/eb-garamond/downloads/EBGaramond-${version}.zip"; 9 + hash = "sha256-P2VCLcqcMBBoTDJyRLP9vlHI+jE0EqPjPziN2MJbgEg="; 10 + }; 11 11 12 - sha256 = "04jq4mpln85zzbla8ybsjw7vn9qr3r0snmk5zykrm24imq7ripv3"; 12 + installPhase = '' 13 + runHook preInstall 14 + 15 + mkdir -p $out/share/{doc,fonts} 16 + install -Dm644 otf/*.otf -t $out/share/fonts/opentype 17 + install -Dm644 *Changes *README.markdown *README.xelualatex -t $out/share/doc/${pname}-${version} 18 + 19 + runHook postInstall 20 + ''; 13 21 14 22 meta = with lib; { 15 23 homepage = "http://www.georgduffner.at/ebgaramond/"; ··· 18 26 license = licenses.ofl; 19 27 platforms = platforms.all; 20 28 }; 21 - }).overrideAttrs (_: { 22 - postFetch = '' 23 - mkdir -p $out/share/{doc,fonts} 24 - unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype 25 - unzip -j $downloadedFile \*Changes \*README.markdown \*README.xelualatex -d "$out/share/doc/${name}" 26 - ''; 27 - }) 29 + }
+18 -16
pkgs/data/fonts/emacs-all-the-icons-fonts/default.nix
··· 1 - # when changing this expression convert it from 'fetchzip' to 'stdenvNoCC.mkDerivation' 2 - { lib, fetchzip }: 1 + { lib, stdenvNoCC, fetchzip }: 3 2 4 - let 3 + stdenvNoCC.mkDerivation rec { 4 + pname = "emacs-all-the-icons-fonts"; 5 5 version = "5.0.0"; 6 - in (fetchzip { 7 - name = "emacs-all-the-icons-fonts-${version}"; 8 6 9 - url = "https://github.com/domtronn/all-the-icons.el/archive/${version}.zip"; 7 + src = fetchzip { 8 + url = "https://github.com/domtronn/all-the-icons.el/archive/${version}.zip"; 9 + hash = "sha256-70ysVxOey6NLlCwhEYhxpxO6uuarMFDpg3Efh+3bj1M="; 10 + }; 10 11 11 - sha256 = "0vc9bkm4pcc05llcd2c9zr3d88h3zmci0izla5wnw8hg1n0rsrii"; 12 + installPhase = '' 13 + runHook preInstall 14 + 15 + install -Dm644 fonts/*.ttf -t $out/share/fonts/all-the-icons 16 + 17 + runHook postInstall 18 + ''; 12 19 13 20 meta = with lib; { 14 21 description = "Icon fonts for emacs all-the-icons"; ··· 20 27 homepage = "https://github.com/domtronn/all-the-icons.el"; 21 28 22 29 /* 23 - The fonts come under a mixture of licenses - the MIT license, 24 - SIL OFL license, and Apache license v2.0. See the GitHub page 25 - for further information. 30 + The fonts come under a mixture of licenses - the MIT license, 31 + SIL OFL license, and Apache license v2.0. See the GitHub page 32 + for further information. 26 33 */ 27 34 license = licenses.free; 28 35 platforms = platforms.all; 29 36 maintainers = with maintainers; [ rlupton20 ]; 30 37 }; 31 - }).overrideAttrs (_: { 32 - postFetch = '' 33 - mkdir -p $out/share/fonts 34 - unzip -j $downloadedFile \*.ttf -d $out/share/fonts/all-the-icons 35 - ''; 36 - }) 38 + }
+18 -14
pkgs/data/fonts/encode-sans/default.nix
··· 1 - # when changing this expression convert it from 'fetchzip' to 'stdenvNoCC.mkDerivation' 2 - { lib, fetchzip }: 3 - let name = "encode-sans-1.002"; 4 - in (fetchzip rec { 5 - inherit name; 1 + { lib, stdenvNoCC, fetchzip }: 6 2 7 - url = "https://github.com/impallari/Encode-Sans/archive/11162b46892d20f55bd42a00b48cbf06b5871f75.zip"; 3 + stdenvNoCC.mkDerivation rec { 4 + pname = "encode-sans"; 5 + version = "1.002"; 8 6 9 - sha256 = "16mx894zqlwrhnp4rflgayxhxppmsj6k7haxdngajhb30rlwf08p"; 7 + src = fetchzip { 8 + url = "https://github.com/impallari/Encode-Sans/archive/11162b46892d20f55bd42a00b48cbf06b5871f75.zip"; 9 + hash = "sha256-TPAUc5msAUgJZHibjgYaS2TOuzKFy0rje9ZQTXE6s+w="; 10 + }; 11 + 12 + installPhase = '' 13 + runHook preInstall 14 + 15 + install -Dm644 *.ttf -t $out/share/fonts/truetype 16 + install -Dm644 *README.md *FONTLOG.txt -t $out/share/doc/${pname}-${version} 17 + 18 + runHook postInstall 19 + ''; 10 20 11 21 meta = with lib; { 12 22 description = "A versatile sans serif font family"; ··· 23 33 maintainers = with maintainers; [ cmfwyp ]; 24 34 platforms = platforms.all; 25 35 }; 26 - }).overrideAttrs (_: { 27 - postFetch = '' 28 - mkdir -p $out/share/{doc,fonts} 29 - unzip -j $downloadedFile \*.ttf -d $out/share/fonts/truetype 30 - unzip -j $downloadedFile \*README.md \*FONTLOG.txt -d "$out/share/doc/${name}" 31 - ''; 32 - }) 36 + }
+22 -22
pkgs/data/fonts/ezra-sil/default.nix
··· 1 - # when changing this expression convert it from 'fetchzip' to 'stdenvNoCC.mkDerivation' 2 - { lib, fetchzip }: 1 + { lib, stdenvNoCC, fetchzip }: 3 2 4 - let 3 + stdenvNoCC.mkDerivation rec { 4 + pname = "ezra-sil"; 5 5 version = "2.51"; 6 - name = "ezra-sil-${version}"; 7 - in 8 - (fetchzip rec { 9 - inherit name; 10 6 7 + src = fetchzip { 11 8 url = "https://software.sil.org/downloads/r/ezra/EzraSIL-${version}.zip"; 9 + hash = "sha256-hGOHjvFVFLwyVkcoUz+7rQekCdn4oEOB+L16XRpthJM="; 10 + }; 12 11 13 - sha256 = "sha256-1LGw/RPFeNtEvcBWFWZf8+dABvWye2RfZ/jt8rwQewM="; 12 + installPhase = '' 13 + runHook preInstall 14 14 15 - meta = with lib; { 16 - homepage = "https://software.sil.org/ezra"; 17 - description = "Typeface fashioned after the square letter forms of the typography of the Biblia Hebraica Stuttgartensia (BHS)"; 18 - license = licenses.ofl; 19 - platforms = platforms.all; 20 - maintainers = [ maintainers.kmein ]; 21 - }; 22 - }).overrideAttrs (_: { 23 - postFetch = '' 24 - mkdir -p $out/share/{doc,fonts} 25 - unzip -j $downloadedFile \*.ttf -d $out/share/fonts/truetype 26 - unzip -j $downloadedFile \*OFL-FAQ.txt \*README.txt \*FONTLOG.txt -d "$out/share/doc/${name}" 27 - ''; 28 - }) 15 + install -Dm644 *.ttf -t $out/share/fonts/truetype 16 + install -Dm644 *OFL-FAQ.txt *README.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/ezra"; 23 + description = "Typeface fashioned after the square letter forms of the typography of the Biblia Hebraica Stuttgartensia (BHS)"; 24 + license = licenses.ofl; 25 + platforms = platforms.all; 26 + maintainers = [ maintainers.kmein ]; 27 + }; 28 + }
+18 -14
pkgs/data/fonts/fira-code/default.nix
··· 1 - # when changing this expression convert it from 'fetchzip' to 'stdenvNoCC.mkDerivation' 2 - { lib, fetchzip }: 1 + { lib, stdenvNoCC, fetchzip }: 3 2 4 - let 3 + stdenvNoCC.mkDerivation rec { 4 + pname = "fira-code"; 5 5 version = "6.2"; 6 - in (fetchzip { 7 - name = "fira-code-${version}"; 8 6 9 - url = "https://github.com/tonsky/FiraCode/releases/download/${version}/Fira_Code_v${version}.zip"; 7 + src = fetchzip { 8 + url = "https://github.com/tonsky/FiraCode/releases/download/${version}/Fira_Code_v${version}.zip"; 9 + stripRoot = false; 10 + hash = "sha256-UHOwZL9WpCHk6vZaqI/XfkZogKgycs5lWg1p0XdQt0A="; 11 + }; 10 12 11 - sha256 = "0l02ivxz3jbk0rhgaq83cqarqxr07xgp7n27l0fh8fbgxwi52djl"; 13 + # only extract the variable font because everything else is a duplicate 14 + installPhase = '' 15 + runHook preInstall 16 + 17 + mkdir -p $out/share/fonts 18 + cp variable_ttf/*-VF.ttf $out/share/fonts/truetype 19 + 20 + runHook postInstall 21 + ''; 12 22 13 23 meta = with lib; { 14 24 homepage = "https://github.com/tonsky/FiraCode"; ··· 22 32 maintainers = [ maintainers.rycee ]; 23 33 platforms = platforms.all; 24 34 }; 25 - }).overrideAttrs (_: { 26 - # only extract the variable font because everything else is a duplicate 27 - postFetch = '' 28 - mkdir -p $out/share/fonts 29 - unzip -j $downloadedFile '*-VF.ttf' -d $out/share/fonts/truetype 30 - ''; 31 - }) 35 + }
+16 -12
pkgs/data/fonts/fira-code/symbols.nix
··· 1 - # when changing this expression convert it from 'fetchzip' to 'stdenvNoCC.mkDerivation' 2 - { lib, fetchzip }: 1 + { lib, stdenvNoCC, fetchzip }: 3 2 4 - (fetchzip { 5 - name = "fira-code-symbols-20160811"; 3 + stdenvNoCC.mkDerivation { 4 + pname = "fira-code-symbols"; 5 + version = "20160811"; 6 6 7 - url = "https://github.com/tonsky/FiraCode/files/412440/FiraCode-Regular-Symbol.zip"; 7 + src = fetchzip { 8 + url = "https://github.com/tonsky/FiraCode/files/412440/FiraCode-Regular-Symbol.zip"; 9 + hash = "sha256-7y51blEn0Osf8azytK08zJgtfVX/CIWQkiOoRzYKIa4="; 10 + }; 8 11 9 - sha256 = "19krsp22rin74ix0i19v4bh1c965g18xkmz1n55h6n6qimisnbkm"; 12 + installPhase = '' 13 + runHook preInstall 14 + 15 + install -Dm644 *.otf -t $out/share/fonts/opentype 16 + 17 + runHook postInstall 18 + ''; 10 19 11 20 meta = with lib; { 12 21 description = "FiraCode unicode ligature glyphs in private use area"; ··· 19 28 maintainers = [ maintainers.Profpatsch ]; 20 29 homepage = "https://github.com/tonsky/FiraCode/issues/211#issuecomment-239058632"; 21 30 }; 22 - }).overrideAttrs (_: { 23 - postFetch = '' 24 - mkdir -p $out/share/fonts 25 - unzip -j $downloadedFile -d $out/share/fonts/opentype 26 - ''; 27 - }) 31 + }
+16 -13
pkgs/data/fonts/fira-mono/default.nix
··· 1 - # when changing this expression convert it from 'fetchzip' to 'stdenvNoCC.mkDerivation' 2 - { lib, fetchzip }: 1 + { lib, stdenvNoCC, fetchzip }: 2 + 3 + stdenvNoCC.mkDerivation rec { 4 + pname = "fira-mono"; 5 + version = "4.202"; 6 + 7 + src = fetchzip { 8 + url = "https://github.com/mozilla/Fira/archive/${version}.zip"; 9 + hash = "sha256-HLReqgL0PXF5vOpwLN0GiRwnzkjGkEVEyOEV2Z4R0oQ="; 10 + }; 3 11 4 - let version = "4.202"; 5 - in (fetchzip { 6 - name = "fira-mono-${version}"; 12 + installPhase = '' 13 + runHook preInstall 7 14 8 - url = "https://github.com/mozilla/Fira/archive/${version}.zip"; 15 + install -Dm644 otf/FiraMono*.otf -t $out/share/fonts/opentype 9 16 10 - sha256 = "1ci3fxhdwabvfj4nl16pwcgqnh7s2slp8vblribk8zkpx8cbp1dj"; 17 + runHook postInstall 18 + ''; 11 19 12 20 meta = with lib; { 13 21 homepage = "https://mozilla.github.io/Fira/"; ··· 22 30 maintainers = [ maintainers.rycee ]; 23 31 platforms = platforms.all; 24 32 }; 25 - }).overrideAttrs (_: { 26 - postFetch = '' 27 - mkdir -p $out/share/fonts 28 - unzip -j $downloadedFile Fira-${version}/otf/FiraMono\*.otf -d $out/share/fonts/opentype 29 - ''; 30 - }) 33 + }