treewide: convert 26 fonts to stdenvNoCC.mkDerivation

+454 -391
+17 -15
pkgs/data/fonts/fraunces/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 = "fraunces"; 4 5 version = "1.000"; 5 - in 6 - (fetchzip { 7 - name = "fraunces-${version}"; 8 6 9 - url = "https://github.com/undercasetype/Fraunces/releases/download/${version}/UnderCaseType_Fraunces_${version}.zip"; 7 + src = fetchzip { 8 + url = "https://github.com/undercasetype/Fraunces/releases/download/${version}/UnderCaseType_Fraunces_${version}.zip"; 9 + hash = "sha256-hu2G4Fs2I3TMEy/EBFnc88Pv3c8Mpc5rm3OwVvol7gQ="; 10 + }; 10 11 11 - sha256 = "0qgl140qkn9p87x7pk60fd3lj206y5h0fq2xkcj2qiv3sxbqxwqb"; 12 + installPhase = '' 13 + runHook preInstall 14 + 15 + install -Dm644 *Desktop/static/otf/*.otf -t $out/share/fonts/opentype 16 + install -Dm644 *Desktop/static/ttf/*.ttf *Desktop/*.ttf -t $out/share/fonts/truetype 17 + 18 + runHook postInstall 19 + ''; 12 20 13 21 meta = with lib; { 14 22 description = "A display, “Old Style” soft-serif typeface inspired by early 20th century typefaces"; ··· 17 25 maintainers = [ maintainers.marsam ]; 18 26 platforms = platforms.all; 19 27 }; 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 - ''; 26 - }) 28 + }
+24 -24
pkgs/data/fonts/galatia-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 = "galatia-sil"; 5 5 version = "2.1"; 6 - name = "galatia-sil-${version}"; 7 - in 8 - (fetchzip rec { 9 - inherit name; 10 6 7 + src = fetchzip { 11 8 url = "https://software.sil.org/downloads/r/galatia/GalatiaSIL-${version}.zip"; 9 + hash = "sha256-7kXnTC5vpUOjcT40oNW6e32zFGejlWJq1J+p+5DiAos="; 10 + }; 12 11 13 - sha256 = "sha256-zLL/7LMcJul2LilhEafpvm+tiYlgv1y1jj85VvG+wiI="; 12 + installPhase = '' 13 + runHook preInstall 14 14 15 - 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}" 15 + 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). 30 26 ''; 31 - }) 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 }: 1 + { lib, stdenvNoCC, fetchzip }: 3 2 4 - let 5 - major = "1"; 6 - minor = "102"; 7 - version = "${major}.${minor}"; 8 - name = "gentium-book-basic-${version}"; 9 - in (fetchzip rec { 10 - inherit name; 3 + stdenvNoCC.mkDerivation rec { 4 + pname = "gentium-book-basic"; 5 + version = "1.102"; 11 6 12 - url = "http://software.sil.org/downloads/r/gentium/GentiumBasic_${major}${minor}.zip"; 7 + src = fetchzip { 8 + url = "http://software.sil.org/downloads/r/gentium/GentiumBasic_${lib.versions.major version}${lib.versions.minor version}.zip"; 9 + hash = "sha256-oCmpl95MJRfCV25cg/4cf8AwQWnoymXasSss1ziOPoE="; 10 + }; 13 11 14 - sha256 = "0598zr5f7d6ll48pbfbmmkrybhhdks9b2g3m2g67wm40070ffzmd"; 12 + installPhase = '' 13 + runHook preInstall 14 + 15 + mkdir -p $out/share/{doc,fonts} 16 + install -Dm644 *.ttf -t $out/share/fonts/truetype 17 + install -Dm644 FONTLOG.txt GENTIUM-FAQ.txt -t $out/share/doc/${pname}-${version} 18 + 19 + runHook postInstall 20 + ''; 15 21 16 22 meta = with lib; { 17 23 homepage = "https://software.sil.org/gentium/"; ··· 20 26 license = licenses.ofl; 21 27 platforms = platforms.all; 22 28 }; 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 - }) 29 + }
+17 -25
pkgs/data/fonts/gentium/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 = "gentium"; 5 5 version = "6.101"; 6 - name = "gentium-${version}"; 7 - in (fetchzip rec { 8 - inherit name; 6 + 7 + src = fetchzip { 8 + url = "http://software.sil.org/downloads/r/gentium/GentiumPlus-${version}.zip"; 9 + hash = "sha256-iKD1Q7/lsbZCuJQoJqySQHwplrHv8yzmph+QwKpYgMU="; 10 + }; 9 11 10 - url = "http://software.sil.org/downloads/r/gentium/GentiumPlus-${version}.zip"; 12 + installPhase = '' 13 + runHook preInstall 11 14 12 - sha256 = "sha256-+T5aUlqQYDWRp4/4AZzsREHgjAnOeUB6qn1GAI0A5hE="; 15 + install -Dm644 *.ttf -t $out/share/fonts/truetype 16 + install -Dm644 FONTLOG.txt README.txt -t $out/share/doc/${pname}-${version} 17 + cp -r documentation $out/share/doc/${pname}-${version} 18 + 19 + runHook postInstall 20 + ''; 13 21 14 22 meta = with lib; { 15 23 homepage = "https://software.sil.org/gentium/"; ··· 34 42 license = licenses.ofl; 35 43 platforms = platforms.all; 36 44 }; 37 - }).overrideAttrs (_: { 38 - postFetch = '' 39 - mkdir -p $out/share/{doc,fonts} 40 - unzip -l $downloadedFile 41 - unzip -j $downloadedFile \*.ttf \ 42 - -d $out/share/fonts/truetype 43 - unzip -j $downloadedFile \ 44 - \*/FONTLOG.txt \ 45 - \*/README.txt \ 46 - -d $out/share/doc/${name} 47 - unzip -j $downloadedFile \ 48 - \*/documentation/\*.html \ 49 - \*/documentation/\*.txt \ 50 - -x \*/documentation/source/\* \ 51 - -d $out/share/doc/${name}/documentation 52 - ''; 53 - }) 45 + }
+16 -14
pkgs/data/fonts/hack/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 = "hack-font"; 5 5 version = "3.003"; 6 - in (fetchzip { 7 - name = "hack-font-${version}"; 8 6 9 - url = "https://github.com/chrissimpkins/Hack/releases/download/v${version}/Hack-v${version}-ttf.zip"; 7 + 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 + }; 10 11 11 - sha256 = "1l6ih6v7dqali5c7zh6z2xnbf9h2wz0ag6fdgszmqd5lnhw39v6s"; 12 + installPhase = '' 13 + runHook preInstall 14 + 15 + install -Dm644 *.ttf -t $out/share/fonts/hack 16 + 17 + runHook postInstall 18 + ''; 12 19 13 20 meta = with lib; { 14 21 description = "A typeface designed for source code"; ··· 22 29 homepage = "https://sourcefoundry.org/hack/"; 23 30 24 31 /* 25 - "The font binaries are released under a license that permits unlimited 32 + "The font binaries are released under a license that permits unlimited 26 33 print, desktop, and web use for commercial and non-commercial 27 34 applications. It may be embedded and distributed in documents and 28 35 applications. The source is released in the widely supported UFO format ··· 33 40 maintainers = with maintainers; [ dywedir ]; 34 41 platforms = platforms.all; 35 42 }; 36 - }).overrideAttrs (_: { 37 - postFetch = '' 38 - mkdir -p $out/share/fonts 39 - unzip -j $downloadedFile \*.ttf -d $out/share/fonts/hack 40 - ''; 41 - }) 43 + }
+16 -13
pkgs/data/fonts/hasklig/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 = "hasklig"; 5 5 version = "1.1"; 6 - in (fetchzip { 7 - name = "hasklig-${version}"; 6 + 7 + src = fetchzip { 8 + url = "https://github.com/i-tu/Hasklig/releases/download/${version}/Hasklig-${version}.zip"; 9 + stripRoot = false; 10 + hash = "sha256-jsPQtjuegMePt4tB1dZ9mq15LSxXBYwtakbq4od/sko="; 11 + }; 12 + 13 + installPhase = '' 14 + runHook preInstall 8 15 9 - url = "https://github.com/i-tu/Hasklig/releases/download/${version}/Hasklig-${version}.zip"; 16 + install -m444 -Dt $out/share/fonts/opentype *.otf 10 17 11 - sha256 = "0xxyx0nkapviqaqmf3b610nq17k20afirvc72l32pfspsbxz8ybq"; 18 + runHook postInstall 19 + ''; 12 20 13 21 meta = with lib; { 14 22 homepage = "https://github.com/i-tu/Hasklig"; ··· 17 25 platforms = platforms.all; 18 26 maintainers = with maintainers; [ davidrusu Profpatsch ]; 19 27 }; 20 - }).overrideAttrs (_: { 21 - postFetch = '' 22 - unzip $downloadedFile 23 - install -m444 -Dt $out/share/fonts/opentype *.otf 24 - ''; 25 - }) 28 + }
+18 -17
pkgs/data/fonts/hyperscrypt/default.nix
··· 1 - # when changing this expression convert it from 'fetchzip' to 'stdenvNoCC.mkDerivation' 2 - { fetchzip, lib }: 1 + { lib, stdenvNoCC, fetchzip }: 3 2 4 - let 3 + stdenvNoCC.mkDerivation rec { 4 + pname = "hyperscrypt"; 5 5 version = "1.1"; 6 - pname = "HyperScrypt"; 7 - in 6 + 7 + src = fetchzip { 8 + url = "https://gitlab.com/StudioTriple/Hyper-Scrypt/-/archive/${version}/Hyper-Scrypt-${version}.zip"; 9 + hash = "sha256-ONlAB9C/GYK6KmOaiHCYErkS6OlQ3TUnoumNDHGZnes="; 10 + }; 11 + 12 + installPhase = '' 13 + runHook preInstall 14 + 15 + install -Dm644 fonts/HyperScrypt_Web/*.ttf -t $out/share/fonts/truetype/ 16 + install -Dm644 fonts/HyperScrypt_Web/*.otf fonts/*.otf -t $out/share/fonts/opentype/ 8 17 9 - (fetchzip { 10 - name = "${lib.toLower pname}-font-${version}"; 11 - url = "https://gitlab.com/StudioTriple/Hyper-Scrypt/-/archive/${version}/Hyper-Scrypt-${version}.zip"; 12 - sha256 = "01pf5p2scmw02s0gxnibiwxbpzczphaaapv0v4s7svk9aw2gmc0m"; 18 + runHook postInstall 19 + ''; 13 20 14 21 meta = with lib; { 15 22 homepage = "https://velvetyne.fr/fonts/hyper-scrypt/"; ··· 28 35 molted metal, Hyper Scrypt is based upon a rigorous grid, 29 36 allowing some neat alignements between shapes in multi lines 30 37 layouts. 31 - ''; 38 + ''; 32 39 license = licenses.ofl; 33 40 maintainers = with maintainers; [ leenaars ]; 34 41 platforms = platforms.all; 35 42 }; 36 - }).overrideAttrs (_: { 37 - postFetch = '' 38 - mkdir -p $out/share/fonts/{truetype,opentype} 39 - unzip -j $downloadedFile \*.ttf -d $out/share/fonts/truetype/${pname}.ttf 40 - unzip -j $downloadedFile \*${pname}.otf -d $out/share/fonts/opentype/${pname}.otf 41 - ''; 42 - }) 43 + }
+14 -13
pkgs/data/fonts/ibm-plex/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 = "ibm-plex"; 5 5 version = "6.0.1"; 6 6 7 - in (fetchzip { 8 - name = "ibm-plex-${version}"; 7 + src = fetchzip { 8 + url = "https://github.com/IBM/plex/releases/download/v${version}/OpenType.zip"; 9 + hash = "sha256-n13NuKrZUc0JGvDf2PLZkxogefDkEHaOZk4JN42/C74="; 10 + }; 11 + 12 + installPhase = '' 13 + runHook preInstall 9 14 10 - url = "https://github.com/IBM/plex/releases/download/v${version}/OpenType.zip"; 15 + install -Dm644 */*.otf IBM-Plex-Sans-JP/unhinted/* -t $out/share/fonts/opentype 11 16 12 - sha256 = "sha256-HxO0L5Q6WJQBqtg64cczzuRcSYi4jEqbOzEWxDmqFp8="; 17 + runHook postInstall 18 + ''; 13 19 14 20 meta = with lib; { 15 21 description = "IBM Plex Typeface"; ··· 19 25 platforms = platforms.all; 20 26 maintainers = [ maintainers.romildo ]; 21 27 }; 22 - }).overrideAttrs (_: { 23 - postFetch = '' 24 - mkdir -p $out/share/fonts 25 - unzip -j $downloadedFile "OpenType/*/*.otf" -x "OpenType/IBM-Plex-Sans-JP/unhinted/*" -d $out/share/fonts/opentype 26 - ''; 27 - }) 28 + }
+17 -14
pkgs/data/fonts/inter/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 = "inter"; 5 5 version = "3.19"; 6 - in (fetchzip { 7 - name = "inter-${version}"; 6 + 7 + src = fetchzip { 8 + url = "https://github.com/rsms/inter/releases/download/v${version}/Inter-${version}.zip"; 9 + stripRoot = false; 10 + hash = "sha256-6kUQUTFtxiJEU6sYC6HzMwm1H4wvaKIoxoY3F6GJJa8="; 11 + }; 12 + 13 + installPhase = '' 14 + runHook preInstall 8 15 9 - url = "https://github.com/rsms/inter/releases/download/v${version}/Inter-${version}.zip"; 16 + mkdir -p $out/share/fonts/opentype 17 + cp */*.otf $out/share/fonts/opentype 10 18 11 - sha256 = "sha256-8p15thg3xyvCA/8dH2jGQoc54nzESFDyv5m47FgWrSI="; 19 + runHook postInstall 20 + ''; 12 21 13 22 meta = with lib; { 14 23 homepage = "https://rsms.me/inter/"; ··· 17 26 platforms = platforms.all; 18 27 maintainers = with maintainers; [ demize dtzWill ]; 19 28 }; 20 - }).overrideAttrs (_: { 21 - postFetch = '' 22 - mkdir -p $out/share/fonts/opentype 23 - unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype 24 - ''; 25 - }) 26 - 29 + }
+16 -12
pkgs/data/fonts/ipaexfont/default.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 = "ipaexfont-004.01"; 3 + stdenvNoCC.mkDerivation { 4 + pname = "ipaexfont"; 5 + version = "004.01"; 6 6 7 - url = "https://moji.or.jp/wp-content/ipafont/IPAexfont/IPAexfont00401.zip"; 7 + src = fetchzip { 8 + url = "https://moji.or.jp/wp-content/ipafont/IPAexfont/IPAexfont00401.zip"; 9 + hash = "sha256-/87qJIb+v4qrtDy+ApfXxh59reOk+6RhGqFN98mc+8Q="; 10 + }; 8 11 9 - sha256 = "0wp369kri33kb1mmiq4lpl9i4xnacw9fj63ycmkmlkq64s8qnjnx"; 12 + installPhase = '' 13 + runHook preInstall 14 + 15 + install -Dm644 *.ttf -t $out/share/fonts/opentype 16 + 17 + runHook postInstall 18 + ''; 10 19 11 20 meta = with lib; { 12 21 description = "Japanese font package with Mincho and Gothic fonts"; ··· 21 30 license = licenses.ipa; 22 31 maintainers = with maintainers; [ gebner ]; 23 32 }; 24 - }).overrideAttrs (_: { 25 - postFetch = '' 26 - mkdir -p $out/share/fonts 27 - unzip -j $downloadedFile \*.ttf -d $out/share/fonts/opentype 28 - ''; 29 - }) 33 + }
+16 -12
pkgs/data/fonts/ipafont/default.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 = "ipafont-003.03"; 3 + stdenvNoCC.mkDerivation { 4 + pname = "ipafont"; 5 + version = "003.03"; 6 6 7 - url = "https://moji.or.jp/wp-content/ipafont/IPAfont/IPAfont00303.zip"; 7 + src = fetchzip { 8 + url = "https://moji.or.jp/wp-content/ipafont/IPAfont/IPAfont00303.zip"; 9 + hash = "sha256-EzUNKuDNHr0NIXiqX09w99wtz1r2pZurR/izdgzTcAs="; 10 + }; 8 11 9 - sha256 = "0lrjd0bfy36f9j85m12afg5nvr5id3sig2nmzs5qifskbd7mqv9h"; 12 + installPhase = '' 13 + runHook preInstall 14 + 15 + install -Dm644 *.ttf -t $out/share/fonts/opentype 16 + 17 + runHook postInstall 18 + ''; 10 19 11 20 meta = { 12 21 description = "Japanese font package with Mincho and Gothic fonts"; ··· 19 28 license = lib.licenses.ipa; 20 29 maintainers = [ lib.maintainers.auntie ]; 21 30 }; 22 - }).overrideAttrs (_: { 23 - postFetch = '' 24 - mkdir -p $out/share/fonts 25 - unzip -j $downloadedFile \*.ttf -d $out/share/fonts/opentype 26 - ''; 27 - }) 31 + }
+16 -13
pkgs/data/fonts/jost/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 = "jost"; 5 5 version = "3.5"; 6 - in (fetchzip { 7 - name = "jost-${version}"; 8 - url = "https://github.com/indestructible-type/Jost/releases/download/${version}/Jost.zip"; 6 + 7 + src = fetchzip { 8 + url = "https://github.com/indestructible-type/Jost/releases/download/${version}/Jost.zip"; 9 + hash = "sha256-ne81bMhmTzNZ/GGIzb7nCYh19vNLK+hJ3cP/zDxtiGM="; 10 + }; 11 + 12 + installPhase = '' 13 + runHook preInstall 14 + 15 + install -Dm644 fonts/otf/*.otf -t $out/share/fonts/opentype 9 16 10 - sha256="0l78vhmbsyfmrva5wc76pskhxqryyg8q5xddpj9g5wqsddy525dq"; 17 + runHook postInstall 18 + ''; 11 19 12 20 meta = with lib; { 13 21 homepage = "https://github.com/indestructible-type/Jost"; ··· 15 23 license = licenses.ofl; 16 24 maintainers = [ maintainers.ar1a ]; 17 25 }; 18 - }).overrideAttrs (_: { 19 - postFetch = '' 20 - mkdir -p $out/share/fonts 21 - unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype 22 - ''; 23 - }) 26 + }
+17 -12
pkgs/data/fonts/kawkab-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 { 4 + pname = "kawkab-mono"; 5 + version = "20151015"; 6 + 7 + src = fetchzip { 8 + url = "http://makkuk.com/kawkab-mono/downloads/kawkab-mono-0.1.zip"; 9 + stripRoot = false; 10 + hash = "sha256-arZTzXj7Ba5G4WF3eZVGNaONhOsYVPih9iBgsN/lg14="; 11 + }; 3 12 4 - (fetchzip { 5 - name = "kawkab-mono-20151015"; 13 + installPhase = '' 14 + runHook preInstall 6 15 7 - url = "http://makkuk.com/kawkab-mono/downloads/kawkab-mono-0.1.zip"; 16 + install -Dm644 *.ttf -t $out/share/fonts/truetype 8 17 9 - sha256 = "1vfrb7xs817najplncg7zl9j5yxj8qnwb7aqm2v9p9xwafa4d2yd"; 18 + runHook postInstall 19 + ''; 10 20 11 21 meta = { 12 22 description = "An arab fixed-width font"; 13 23 homepage = "https://makkuk.com/kawkab-mono/"; 14 24 license = lib.licenses.ofl; 15 25 }; 16 - }).overrideAttrs (_: { 17 - postFetch = '' 18 - mkdir -p $out/share/fonts 19 - unzip -j $downloadedFile \*.ttf -d $out/share/fonts/truetype 20 - ''; 21 - }) 26 + }
+17 -12
pkgs/data/fonts/lato/default.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 = "lato-2.0"; 3 + stdenvNoCC.mkDerivation { 4 + pname = "lato"; 5 + version = "2.0"; 6 6 7 - url = "https://www.latofonts.com/download/Lato2OFL.zip"; 7 + src = fetchzip { 8 + url = "https://www.latofonts.com/download/Lato2OFL.zip"; 9 + stripRoot = false; 10 + hash = "sha256-n1TsqigCQIGqyGLGTjLtjHuBf/iCwRlnqh21IHfAuXI="; 11 + }; 12 + 13 + installPhase = '' 14 + runHook preInstall 8 15 9 - sha256 = "1amwn6vcaggxrd2s4zw21s2pr47zmzdf2xfy4x9lxa2cd9bkhvg5"; 16 + install -Dm644 Lato2OFL/*.ttf -t $out/share/fonts/lato 17 + 18 + runHook postInstall 19 + ''; 10 20 11 21 meta = with lib; { 12 22 homepage = "https://www.latofonts.com/"; ··· 32 42 platforms = platforms.all; 33 43 maintainers = with maintainers; [ chris-martin ]; 34 44 }; 35 - }).overrideAttrs (_: { 36 - postFetch = '' 37 - mkdir -p $out/share/fonts 38 - unzip -j $downloadedFile \*.ttf -d $out/share/fonts/lato 39 - ''; 40 - }) 45 + }
+19 -15
pkgs/data/fonts/lmmath/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 = "lmmath"; 5 5 version = "1.959"; 6 - in (fetchzip rec { 7 - name = "lmmath-${version}"; 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 + }; 8 11 9 - url = "http://www.gust.org.pl/projects/e-foundry/lm-math/download/latinmodern-math-1959.zip"; 10 - sha256 = "05k145bxgxjh7i9gx1ahigxfpc2v2vwzsy2mc41jvvg51kjr8fnn"; 12 + 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 + ''; 11 22 12 23 meta = with lib; { 13 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"; ··· 19 30 maintainers = with maintainers; [ siddharthist ]; 20 31 platforms = platforms.all; 21 32 }; 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 - }) 33 + }
+14 -13
pkgs/data/fonts/mno16/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 { 5 4 pname = "mno16"; 6 5 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"; 6 + 7 + src = fetchzip { 8 + url = "https://github.com/sevmeyer/${pname}/releases/download/${version}/${pname}-${version}.zip"; 9 + stripRoot = false; 10 + hash = "sha256-xJQ9V7GlGUTEeYhqYFl/SemS6iqV0eW85YOn/tLgA+M="; 11 + }; 12 + 13 + installPhase = '' 14 + mkdir -p $out/share/fonts/truetype 15 + cp fonts/*.ttf $out/share/fonts/truetype/ 16 + ''; 11 17 12 18 meta = with lib; { 13 19 description = "minimalist monospaced font"; 14 20 homepage = "https://sev.dev/fonts/mno16"; 15 21 license = licenses.cc0; 16 22 }; 17 - }).overrideAttrs (_: { 18 - postFetch = '' 19 - mkdir -p $out/share/fonts/truetype 20 - unzip -j $downloadedFile \*.ttf -d $out/share/fonts/truetype/ 21 - ''; 22 - }) 23 + }
+17 -13
pkgs/data/fonts/mononoki/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 = "mononoki"; 5 5 version = "1.3"; 6 - in (fetchzip { 7 - name = "mononoki-${version}"; 8 6 9 - url = "https://github.com/madmalik/mononoki/releases/download/${version}/mononoki.zip"; 7 + src = fetchzip { 8 + url = "https://github.com/madmalik/mononoki/releases/download/${version}/mononoki.zip"; 9 + stripRoot = false; 10 + hash = "sha256-bZYBRdmbQVs4i6UzMIHwJnoLWggX4CW8ZogNFYiX/9w="; 11 + }; 10 12 11 - sha256 = "sha256-K2uOpJRmQ1NcDZfh6rorCF0MvGHFCsSW8J7Ue9OC/OY="; 13 + installPhase = '' 14 + runHook preInstall 15 + 16 + mkdir -p $out/share/fonts/mononoki 17 + cp webfont/* $out/share/fonts/mononoki 18 + 19 + runHook postInstall 20 + ''; 12 21 13 22 meta = with lib; { 14 23 homepage = "https://github.com/madmalik/mononoki"; ··· 16 25 license = licenses.ofl; 17 26 platforms = platforms.all; 18 27 }; 19 - }).overrideAttrs (_: { 20 - postFetch = '' 21 - mkdir -p $out/share/fonts/mononoki 22 - unzip -j $downloadedFile -d $out/share/fonts/mononoki 23 - ''; 24 - }) 28 + }
+18 -15
pkgs/data/fonts/nanum-gothic-coding/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 = "nanum-gothic-coding"; 5 + version = "2.5"; 6 + 7 + src = fetchzip { 8 + url = "https://github.com/naver/nanumfont/releases/download/VER${version}/NanumGothicCoding-${version}.zip"; 9 + stripRoot = false; 10 + hash = "sha256-jHbbCMUxn54iQMKdAWI3r8CDxi+5LLJh8ucQzq2Ukdc="; 11 + }; 3 12 4 - let 5 - version = "VER2.5"; 6 - fullName = "NanumGothicCoding-2.5"; 13 + installPhase = '' 14 + runHook preInstall 7 15 8 - in (fetchzip { 9 - name = "nanum-gothic-coding"; 10 - url = "https://github.com/naver/nanumfont/releases/download/${version}/${fullName}.zip"; 16 + mkdir -p $out/share/fonts/NanumGothicCoding 17 + cp *.ttf $out/share/fonts/NanumGothicCoding 11 18 12 - sha256 = "0b3pkhd6xn6393zi0dhj3ah08w1y1ji9fl6584bi0c8lanamf2pc"; 19 + runHook postInstall 20 + ''; 13 21 14 22 meta = with lib; { 15 23 description = "A contemporary monospaced sans-serif typeface with a warm touch"; ··· 18 26 platforms = platforms.all; 19 27 maintainers = with maintainers; [ ]; 20 28 }; 21 - }).overrideAttrs (_: { 22 - postFetch = '' 23 - mkdir -p $out/share/fonts/NanumGothicCoding 24 - unzip -j $downloadedFile \*.ttf -d $out/share/fonts/NanumGothicCoding 25 - ''; 26 - }) 29 + }
+16 -13
pkgs/data/fonts/national-park/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 { 5 4 pname = "national-park-typeface"; 6 5 version = "206464"; 7 - in (fetchzip { 8 - name = "${pname}-${version}"; 9 - url = "https://files.cargocollective.com/c${version}/NationalPark.zip"; 6 + 7 + src = fetchzip { 8 + url = "https://files.cargocollective.com/c${version}/NationalPark.zip"; 9 + stripRoot = false; 10 + hash = "sha256-VUboZZVJfKupnoHXo3RxetEEYimrr1DxghVZaaWnnw4="; 11 + }; 12 + 13 + installPhase = '' 14 + runHook preInstall 15 + 16 + install -Dm644 *.otf -t $out/share/fonts/opentype/ 10 17 11 - sha256 = "044gh4xcasp8i9ny6z4nmns1am2pk5krc4ann2afq35v9bnl2q5d"; 18 + runHook postInstall 19 + ''; 12 20 13 21 meta = with lib; { 14 22 description = ''Typeface designed to mimic the national park service ··· 17 25 license = licenses.ofl; 18 26 maintainers = with maintainers; [ dtzWill ]; 19 27 }; 20 - }).overrideAttrs (_: { 21 - postFetch = '' 22 - mkdir -p $out/share/fonts 23 - unzip -j $downloadedFile National\*.otf -d $out/share/fonts/opentype/ 24 - ''; 25 - }) 28 + }
+17 -14
pkgs/data/fonts/norwester/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.2"; 3 + stdenvNoCC.mkDerivation rec { 6 4 pname = "norwester"; 7 - in (fetchzip { 8 - name = "${pname}-${version}"; 5 + version = "1.2"; 6 + 7 + src = fetchzip { 8 + url = "http://jamiewilson.io/norwester/assets/norwester.zip"; 9 + stripRoot = false; 10 + hash = "sha256-Ak/nobrQE/XYGWs/IhlZlTp74ff+s4adUR6Sht5Yf8g="; 11 + }; 12 + 13 + installPhase = '' 14 + runHook preInstall 9 15 10 - url = "http://jamiewilson.io/norwester/assets/norwester.zip"; 16 + mkdir -p $out/share/fonts/opentype 17 + cp ${pname}-v${version}/${pname}.otf $out/share/fonts/opentype/ 11 18 12 - sha256 = "1npsaiiz9g5z6315lnmynwcnrfl37fyxc7w1mhkw1xbzcnv74z4r"; 19 + runHook postInstall 20 + ''; 13 21 14 22 meta = with lib; { 15 23 homepage = "http://jamiewilson.io/norwester"; ··· 18 26 license = licenses.ofl; 19 27 platforms = platforms.all; 20 28 }; 21 - }).overrideAttrs (_: { 22 - postFetch = '' 23 - mkdir -p $out/share/fonts/opentype 24 - unzip -D -j $downloadedFile ${pname}-v${version}/${pname}.otf -d $out/share/fonts/opentype/ 25 - ''; 26 - }) 29 + }
+17 -15
pkgs/data/fonts/oldstandard/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 = "oldstandard"; 5 5 version = "2.2"; 6 - name = "oldstandard-${version}"; 7 - in (fetchzip rec { 8 - inherit name; 9 6 10 - url = "https://github.com/akryukov/oldstand/releases/download/v${version}/${name}.otf.zip"; 7 + src = fetchzip { 8 + url = "https://github.com/akryukov/oldstand/releases/download/v${version}/${pname}-${version}.otf.zip"; 9 + stripRoot = false; 10 + hash = "sha256-cDB5KJm87DK+GczZ3Nmn4l5ejqViswVbwrJ9XbhEh8I="; 11 + }; 11 12 12 - sha256 = "1qwfsyp51grr56jcnkkmnrnl3r20pmhp9zh9g88kp64m026cah6n"; 13 + installPhase = '' 14 + runHook preInstall 15 + 16 + install -m444 -Dt $out/share/fonts/opentype *.otf 17 + install -m444 -Dt $out/share/doc/${pname}-${version} FONTLOG.txt 18 + 19 + runHook postInstall 20 + ''; 13 21 14 22 meta = with lib; { 15 23 homepage = "https://github.com/akryukov/oldstand"; ··· 18 26 license = licenses.ofl; 19 27 platforms = platforms.all; 20 28 }; 21 - }).overrideAttrs (_: { 22 - postFetch = '' 23 - unzip $downloadedFile 24 - install -m444 -Dt $out/share/fonts/opentype *.otf 25 - install -m444 -Dt $out/share/doc/${name} FONTLOG.txt 26 - ''; 27 - }) 29 + }
+17 -15
pkgs/data/fonts/open-dyslexic/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 = "open-dyslexic"; 5 5 version = "2016-06-23"; 6 - in (fetchzip { 7 - name = "open-dyslexic-${version}"; 8 6 9 - url = "https://github.com/antijingoist/open-dyslexic/archive/20160623-Stable.zip"; 7 + src = fetchzip { 8 + url = "https://github.com/antijingoist/open-dyslexic/archive/20160623-Stable.zip"; 9 + hash = "sha256-f/uavR3n0qHyqumZDw7r8Zy0om2RlJAKyWuGaUXSJ1s="; 10 + }; 10 11 11 - sha256 = "1vl8z5rknh2hpr2f0v4b2qgs5kclx5pzyk8al7243k5db82a2cyi"; 12 + installPhase = '' 13 + runHook preInstall 14 + 15 + install -Dm644 otf/*.otf -t $out/share/fonts/opentype 16 + install -Dm644 README.md -t $out/share/doc/open-dyslexic 17 + 18 + runHook postInstall 19 + ''; 12 20 13 21 meta = with lib; { 14 22 homepage = "https://opendyslexic.org/"; 15 23 description = "Font created to increase readability for readers with dyslexia"; 16 24 license = "Bitstream Vera License (https://www.gnome.org/fonts/#Final_Bitstream_Vera_Fonts)"; 17 25 platforms = platforms.all; 18 - maintainers = [maintainers.rycee]; 26 + maintainers = [ maintainers.rycee ]; 19 27 }; 20 - }).overrideAttrs (_: { 21 - postFetch = '' 22 - mkdir -p $out/share/{doc,fonts} 23 - unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype 24 - unzip -j $downloadedFile \*/README.md -d $out/share/doc/open-dyslexic 25 - ''; 26 - }) 28 + }
+17 -16
pkgs/data/fonts/overpass/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 = "overpass"; 5 5 version = "3.0.5"; 6 - name = "overpass-${version}"; 7 - in (fetchzip rec { 8 - inherit name; 6 + 7 + src = fetchzip { 8 + url = "https://github.com/RedHatOfficial/Overpass/releases/download/v${version}/overpass-${version}.zip"; 9 + hash = "sha256-8AWT0/DELfNWXtZOejC90DbUSOtyGt9tSkcSuO7HP2o="; 10 + }; 11 + 12 + installPhase = '' 13 + runHook preInstall 9 14 10 - url = "https://github.com/RedHatOfficial/Overpass/releases/download/v${version}/overpass-${version}.zip"; 15 + install -Dm644 */*/*.otf -t $out/share/fonts/opentype 16 + install -Dm644 */*/*.ttf -t $out/share/fonts/truetype 17 + install -Dm644 *.md -t $out/share/doc/${pname}-${version} 11 18 12 - sha256 = "1fpyhd6x3i3g0xxjmyfnjsri1kkvci15fv7jp1bnza7k0hz0bnha"; 19 + runHook postInstall 20 + ''; 13 21 14 22 meta = with lib; { 15 23 homepage = "https://overpassfont.org/"; ··· 18 26 platforms = platforms.all; 19 27 maintainers = [ maintainers.rycee ]; 20 28 }; 21 - }).overrideAttrs (_: { 22 - postFetch = '' 23 - mkdir -p $out/share/fonts $out/share/doc 24 - unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype 25 - unzip -j $downloadedFile \*.ttf -d $out/share/fonts/truetype 26 - unzip -j $downloadedFile \*.md -d $out/share/doc/${name} 27 - ''; 28 - }) 29 + }
+21 -16
pkgs/data/fonts/paratype-pt/mono.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 = "paratype-pt-mono"; 5 + version = "2.005"; 6 + 7 + src = fetchzip { 8 + urls = [ 9 + "https://company.paratype.com/system/attachments/631/original/ptmono.zip" 10 + "http://rus.paratype.ru/system/attachments/631/original/ptmono.zip" 11 + ]; 12 + stripRoot = false; 13 + hash = "sha256-mfDAu/KGelC6wZpUCrUrLVZKo+XiKNBqcpMI8tH2tMw="; 14 + }; 3 15 4 - (fetchzip { 5 - name = "paratype-pt-mono"; 16 + installPhase = '' 17 + runHook preInstall 6 18 7 - urls = [ 8 - "https://company.paratype.com/system/attachments/631/original/ptmono.zip" 9 - "http://rus.paratype.ru/system/attachments/631/original/ptmono.zip" 10 - ]; 19 + install -Dm644 *.ttf -t $out/share/fonts/truetype 20 + install -Dm644 *.txt -t $out/share/doc/paratype 11 21 12 - sha256 = "07kl82ngby55khvzsvn831ddpc0q8djgz2y6gsjixkyjfdk2xjjm"; 22 + runHook postInstall 23 + ''; 13 24 14 25 meta = with lib; { 15 26 homepage = "http://www.paratype.ru/public/"; ··· 23 34 platforms = platforms.all; 24 35 maintainers = with maintainers; [ raskin ]; 25 36 }; 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 \*.txt -d $out/share/doc/paratype 31 - ''; 32 - }) 37 + }
+21 -16
pkgs/data/fonts/paratype-pt/sans.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 = "paratype-pt-sans"; 5 + version = "2.005"; 6 + 7 + src = fetchzip { 8 + urls = [ 9 + "https://company.paratype.com/system/attachments/629/original/ptsans.zip" 10 + "http://rus.paratype.ru/system/attachments/629/original/ptsans.zip" 11 + ]; 12 + stripRoot = false; 13 + hash = "sha256-34TqYXtWzkAstaGQBhJy+/hVk5tg6ZvHZ/kvUroWVLs="; 14 + }; 3 15 4 - (fetchzip { 5 - name = "paratype-pt-sans"; 16 + installPhase = '' 17 + runHook preInstall 6 18 7 - urls = [ 8 - "https://company.paratype.com/system/attachments/629/original/ptsans.zip" 9 - "http://rus.paratype.ru/system/attachments/629/original/ptsans.zip" 10 - ]; 19 + install -Dm644 *.ttf -t $out/share/fonts/truetype 20 + install -Dm644 *.txt -t $out/share/doc/paratype 11 21 12 - sha256 = "01fkd417gv98jf3a6zyfi9w2dkqsbddy1vacga2672yf0kh1z1r0"; 22 + runHook postInstall 23 + ''; 13 24 14 25 meta = with lib; { 15 26 homepage = "http://www.paratype.ru/public/"; ··· 23 34 platforms = platforms.all; 24 35 maintainers = with maintainers; [ raskin ]; 25 36 }; 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 \*.txt -d $out/share/doc/paratype 31 - ''; 32 - }) 37 + }
+21 -16
pkgs/data/fonts/paratype-pt/serif.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 = "paratype-pt-serif"; 5 + version = "2.005"; 6 + 7 + src = fetchzip { 8 + urls = [ 9 + "https://company.paratype.com/system/attachments/634/original/ptserif.zip" 10 + "http://rus.paratype.ru/system/attachments/634/original/ptserif.zip" 11 + ]; 12 + stripRoot = false; 13 + hash = "sha256-4L3t5NEHmj975fn8eBAkRUO1OL0xseNp9g7k7tt/O2c="; 14 + }; 3 15 4 - (fetchzip { 5 - name = "paratype-pt-serif"; 16 + installPhase = '' 17 + runHook preInstall 6 18 7 - urls = [ 8 - "https://company.paratype.com/system/attachments/634/original/ptserif.zip" 9 - "http://rus.paratype.ru/system/attachments/634/original/ptserif.zip" 10 - ]; 19 + install -Dm644 *.ttf -t $out/share/fonts/truetype 20 + install -Dm644 *.txt -t $out/share/doc/paratype 11 21 12 - sha256 = "1iw5qi4ag3yp1lwmi91lb18gr768bqwl46xskaqnkhr9i9qp0v6d"; 22 + runHook postInstall 23 + ''; 13 24 14 25 meta = with lib; { 15 26 homepage = "http://www.paratype.ru/public/"; ··· 23 34 platforms = platforms.all; 24 35 maintainers = with maintainers; [ raskin ]; 25 36 }; 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 \*.txt -d $out/share/doc/paratype 31 - ''; 32 - }) 37 + }