treewide: convert 16 fonts

+245 -173
+13 -15
pkgs/data/fonts/liberastika/default.nix
··· 1 - { lib, fetchzip }: 1 + { lib, stdenvNoCC, fetchzip }: 2 2 3 - let 3 + stdenvNoCC.mkDerivation rec { 4 + pname = "liberastika"; 4 5 version = "1.1.5"; 5 - in fetchzip rec { 6 - name = "liberastika-${version}"; 7 6 8 - url = "mirror://sourceforge/project/lib-ka/liberastika-ttf-${version}.zip"; 7 + src = fetchzip { 8 + url = "mirror://sourceforge/project/lib-ka/liberastika-ttf-${version}.zip"; 9 + stripRoot = false; 10 + hash = "sha256-woUpOmxhj6eEw7PKJ8EyRcs3ORj0gCZhxHP5a5dy5z0="; 11 + }; 9 12 10 - stripRoot = false; 13 + installPhase = '' 14 + runHook preInstall 11 15 12 - postFetch = '' 13 - mkdir -p $out/share/fonts 14 - install -Dm644 $out/*.ttf -t $out/share/fonts/truetype 15 - shopt -s extglob dotglob 16 - rm -rf $out/!(share) 17 - shopt -u extglob dotglob 18 - ''; 16 + install -Dm644 *.ttf -t $out/share/fonts/truetype 19 17 20 - sha256 = "sha256-1hoETOjPRUIzzM+NUR+g/Ph16jXmH2ARSlZHjgEwoeM="; 18 + runHook postInstall 19 + ''; 21 20 22 21 meta = with lib; { 23 22 description = "Liberation Sans fork with improved cyrillic support"; ··· 25 24 26 25 license = licenses.gpl2; 27 26 platforms = platforms.all; 28 - hydraPlatforms = []; 29 27 maintainers = [ ]; 30 28 }; 31 29 }
+15 -11
pkgs/data/fonts/mph-2b-damase/default.nix
··· 1 - { fetchzip }: 1 + { lib, stdenvNoCC, fetchzip }: 2 2 3 - fetchzip { 4 - name = "MPH-2B-Damase-2"; 3 + stdenvNoCC.mkDerivation rec { 4 + pname = "mph-2b-damase"; 5 + version = "2"; 5 6 6 - url = "http://www.wazu.jp/downloads/damase_v.2.zip"; 7 + src = fetchzip { 8 + url = "https://web.archive.org/web/20160322114946/http://www.wazu.jp/downloads/damase_v.2.zip"; 9 + hash = "sha256-4x78D+c3ZBxfhTQQ4+gyxvrsuztHF2ItXLh4uA0PxvU="; 10 + }; 7 11 8 - postFetch = '' 9 - mkdir -p $out/share/fonts 10 - unzip -j $downloadedFile \*.ttf -d $out/share/fonts/truetype 12 + installPhase = '' 13 + runHook preInstall 14 + 15 + install -Dm644 *.ttf -t $out/share/fonts/truetype 16 + 17 + runHook postInstall 11 18 ''; 12 19 13 - sha256 = "0yzf12z6fpbgycqwiz88f39iawdhjabadfa14wxar3nhl9n434ql"; 14 - 15 - meta = { 16 - }; 20 + meta = { }; 17 21 }
+16 -6
pkgs/data/fonts/mro-unicode/default.nix
··· 1 - { lib, fetchzip }: 1 + { lib, stdenvNoCC, fetchurl }: 2 2 3 - fetchzip { 4 - name = "mro-unicode-2013-05-25"; 3 + stdenvNoCC.mkDerivation { 4 + pname = "mro-unicode"; 5 + version = "unstable-2013-05-25"; 5 6 6 - url = "https://github.com/phjamr/MroUnicode/raw/f297de070f7eba721a47c850e08efc119d3bfbe8/MroUnicode-Regular.ttf"; 7 + src = fetchurl { 8 + url = "https://github.com/phjamr/MroUnicode/raw/f297de070f7eba721a47c850e08efc119d3bfbe8/MroUnicode-Regular.ttf"; 9 + hash = "sha256-hcQmTuRWxaU5KEMXg/O0b1olE8YxXWz0PAlqAJknR/0="; 10 + }; 11 + 12 + dontUnpack = true; 13 + 14 + installPhase = '' 15 + runHook preInstall 7 16 8 - postFetch = "install -Dm644 $downloadedFile $out/share/fonts/truetype/MroUnicode-Regular.ttf"; 17 + install -Dm644 $src $out/share/fonts/truetype/MroUnicode-Regular.ttf 9 18 10 - sha256 = "1i71bjd9gdyn8ladfncbfhz6xz1h8xx8yf876j1z8lh719410c8g"; 19 + runHook postInstall 20 + ''; 11 21 12 22 meta = with lib; { 13 23 homepage = "https://github.com/phjamr/MroUnicode";
+17 -14
pkgs/data/fonts/pretendard/default.nix
··· 1 - { lib, fetchzip }: 1 + { lib, stdenvNoCC, fetchzip }: 2 2 3 3 let 4 4 version = "1.3.3"; 5 5 6 - mkPretendard = { pname, typeface, sha256 }: 7 - fetchzip { 8 - name = "${pname}-${version}"; 6 + mkPretendard = { pname, typeface, hash }: 7 + stdenvNoCC.mkDerivation { 8 + inherit pname version; 9 9 10 - url = "https://github.com/orioncactus/pretendard/releases/download/v${version}/${typeface}-${version}.zip"; 11 - inherit sha256; 10 + src = fetchzip { 11 + url = "https://github.com/orioncactus/pretendard/releases/download/v${version}/${typeface}-${version}.zip"; 12 + stripRoot = false; 13 + inherit hash; 14 + }; 15 + 16 + installPhase = '' 17 + runHook preInstall 12 18 13 - stripRoot = false; 19 + install -Dm644 public/static/*.otf -t $out/share/fonts/opentype 14 20 15 - postFetch = '' 16 - mkdir -p $out/share/fonts/ 17 - install -Dm644 $out/public/static/*.otf -t $out/share/fonts/opentype 18 - rm -rf $out/{public,web,LICENSE.txt} 21 + runHook postInstall 19 22 ''; 20 23 21 24 meta = with lib; { ··· 32 35 pretendard = mkPretendard { 33 36 pname = "pretendard"; 34 37 typeface = "Pretendard"; 35 - sha256 = "sha256-lRHRdCAg3i3+3Y6j0dCXUgwLdeS/VeI6KNkbDKchNEY="; 38 + hash = "sha256-xCEZlwTPhrNIO6WODl55wo2oin+iMYOL/rVaEybpzr0="; 36 39 }; 37 40 38 41 pretendard-jp = mkPretendard { 39 42 pname = "pretendard-jp"; 40 43 typeface = "PretendardJP"; 41 - sha256 = "sha256-VgGt/WoaaJJDAzw+gUQVgTQ+q34bdAaKUB4cA9eU0dQ="; 44 + hash = "sha256-x0G7ULzkIJqZlK995+wWKHXZdWryUTRouGTa5LsJQzk="; 42 45 }; 43 46 44 47 pretendard-std = mkPretendard { 45 48 pname = "pretendard-std"; 46 49 typeface = "PretendardStd"; 47 - sha256 = "sha256-FOlZrr6CHPfUm9Q+Yoi0HLQUI7cAhQYq6P6sJGXBIWg="; 50 + hash = "sha256-/I8LZhFB86/+o+IzUP+bSIq7scKPOL7k/6/Bom0ZSqg="; 48 51 }; 49 52 }
+13 -9
pkgs/data/fonts/ruwudu/default.nix
··· 1 - { lib, fetchzip }: 1 + { lib, stdenvNoCC, fetchzip }: 2 2 3 - fetchzip rec { 3 + stdenvNoCC.mkDerivation rec { 4 4 pname = "ruwudu"; 5 5 version = "2.000"; 6 6 7 - url = "https://software.sil.org/downloads/r/ruwudu/Ruwudu-${version}.zip"; 7 + src = fetchzip { 8 + url = "https://software.sil.org/downloads/r/ruwudu/Ruwudu-${version}.zip"; 9 + hash = "sha256-FP+ZHm1fKlozAAI2PbJ4r4v5OwRxBtYMRLmRwPbqx2I="; 10 + }; 8 11 9 - postFetch = '' 10 - rm -rf $out/web $out/manifest.json 12 + installPhase = '' 13 + runHook preInstall 14 + 11 15 mkdir -p $out/share/{doc/${pname},fonts/truetype} 12 - mv $out/*.ttf $out/share/fonts/truetype/ 13 - mv $out/*.txt $out/documentation $out/share/doc/${pname}/ 16 + mv *.ttf $out/share/fonts/truetype/ 17 + mv *.txt documentation $out/share/doc/${pname}/ 18 + 19 + runHook postInstall 14 20 ''; 15 - 16 - sha256 = "sha256-JCvVPbAFBWHL2eEnEUSgdTZ+Vkw3wkS3aS85xQZKNQs="; 17 21 18 22 meta = with lib; { 19 23 homepage = "https://software.sil.org/ruwudu/";
+17 -7
pkgs/data/fonts/sampradaya/default.nix
··· 1 - { lib, fetchzip }: 1 + { lib, stdenvNoCC, fetchurl }: 2 2 3 - fetchzip { 4 - name = "sampradaya-2015-05-26"; 3 + stdenvNoCC.mkDerivation rec { 4 + pname = "sampradaya"; 5 + version = "0.5.0"; 5 6 6 - url = "https://bitbucket.org/OorNaattaan/sampradaya/raw/afa9f7c6ab17e14bd7dd74d0acaec2f75454dfda/Sampradaya.ttf"; 7 + src = fetchurl { 8 + url = "https://github.com/deepestblue/sampradaya/releases/download/v${version}/Sampradaya.ttf"; 9 + hash = "sha256-ygKMNzHvbLR2A5HHrfY2C9ZUg0yng+JL3cyg6sBKqeQ="; 10 + }; 7 11 8 - postFetch = "install -Dm644 $downloadedFile $out/share/fonts/truetype/Sampradaya.ttf"; 12 + dontUnpack = true; 9 13 10 - sha256 = "1pqyj5r5jc7dk8yyzl7i6qq2m9zvahcjj49a66wwzdby5zyw8dqv"; 14 + installPhase = '' 15 + runHook preInstall 16 + 17 + install -Dm644 $src $out/share/fonts/truetype/Sampradaya.ttf 18 + 19 + runHook postInstall 20 + ''; 11 21 12 22 meta = with lib; { 13 - homepage = "https://bitbucket.org/OorNaattaan/sampradaya/"; 23 + homepage = "https://github.com/deepestblue/sampradaya"; 14 24 description = "Unicode-compliant Grantha font"; 15 25 maintainers = with maintainers; [ mathnerd314 ]; 16 26 license = licenses.ofl; # See font metadata
+16 -8
pkgs/data/fonts/shrikhand/default.nix
··· 1 - { lib, fetchzip }: 1 + { lib, stdenvNoCC, fetchurl }: 2 2 3 - let 4 - version = "2016-03-03"; 5 - in fetchzip { 6 - name = "shrikhand-${version}"; 3 + stdenvNoCC.mkDerivation { 4 + pname = "shrikhand"; 5 + version = "unstable-2016-03-03"; 7 6 8 - url = "https://github.com/jonpinhorn/shrikhand/raw/c11c9b0720fba977fad7cb4f339ebacdba1d1394/build/Shrikhand-Regular.ttf"; 7 + src = fetchurl { 8 + url = "https://github.com/jonpinhorn/shrikhand/raw/c11c9b0720fba977fad7cb4f339ebacdba1d1394/build/Shrikhand-Regular.ttf"; 9 + hash = "sha256-wHP1Bwu5Yw3a+RwDOHrmthsnuvwyCV4l6ma5EjA6EMA="; 10 + }; 9 11 10 - postFetch = "install -D -m644 $downloadedFile $out/share/fonts/truetype/Shrikhand-Regular.ttf"; 12 + dontUnpack = true; 11 13 12 - sha256 = "0s54k9cs1g2yz6lwg5gakqb12vg5qkfdz3pc8mh7mib2s6q926hs"; 14 + installPhase = '' 15 + runHook preInstall 16 + 17 + install -D -m644 $src $out/share/fonts/truetype/Shrikhand-Regular.ttf 18 + 19 + runHook postInstall 20 + ''; 13 21 14 22 meta = with lib; { 15 23 homepage = "https://jonpinhorn.github.io/shrikhand/";
+16 -12
pkgs/data/fonts/sil-abyssinica/default.nix
··· 1 - { fetchzip, lib }: 1 + { lib, stdenvNoCC, fetchzip }: 2 2 3 - let 3 + stdenvNoCC.mkDerivation rec { 4 + pname = "sil-abyssinica"; 4 5 version = "2.200"; 5 - in 6 - fetchzip rec { 7 - name = "sil-abyssinica-${version}"; 8 - url = "https://software.sil.org/downloads/r/abyssinica/AbyssinicaSIL-${version}.zip"; 9 - sha256 = "sha256-Kvswqzw8remcu36QaVjeyk03cR4wW5BKQMDihiaxJoE="; 10 6 11 - postFetch = '' 12 - rm -rf $out/web 13 - mkdir -p $out/share/{fonts/truetype,doc/${name}} 14 - mv $out/*.ttf $out/share/fonts/truetype/ 15 - mv $out/*.txt $out/documentation $out/share/doc/${name}/ 7 + src = fetchzip { 8 + url = "https://software.sil.org/downloads/r/abyssinica/AbyssinicaSIL-${version}.zip"; 9 + hash = "sha256-IdWMZHm9VoLVDO0//ISujxlXUxe0O6+aEcdP63YRmPg="; 10 + }; 11 + 12 + installPhase = '' 13 + runHook preInstall 14 + 15 + mkdir -p $out/share/{fonts/truetype,doc/${pname}-${version}} 16 + mv *.ttf $out/share/fonts/truetype/ 17 + mv *.txt documentation $out/share/doc/${pname}-${version}/ 18 + 19 + runHook postInstall 16 20 ''; 17 21 18 22 meta = with lib; {
+16 -12
pkgs/data/fonts/sil-padauk/default.nix
··· 1 - { fetchzip, lib }: 1 + { lib, stdenvNoCC, fetchzip }: 2 2 3 - let 3 + stdenvNoCC.mkDerivation rec { 4 + pname = "sil-padauk"; 4 5 version = "5.001"; 5 - in 6 - fetchzip rec { 7 - name = "sil-padauk-${version}"; 8 - url = "https://software.sil.org/downloads/r/padauk/Padauk-${version}.zip"; 9 - sha256 = "sha256-6H9EDmXr1Ox2fgLw9sG5JrCAllK3tbjvMfLi8DTF1f0="; 10 6 11 - postFetch = '' 7 + src = fetchzip { 8 + url = "https://software.sil.org/downloads/r/padauk/Padauk-${version}.zip"; 9 + hash = "sha256-rLzuDUd+idjTN0xQxblXQ9V2rQtJPN2EtWGmTRY1R7U="; 10 + }; 11 + 12 + installPhase = '' 13 + runHook preInstall 14 + 12 15 mkdir -p $out/share/fonts/truetype 13 - rm -rf $out/{manifest.json,web/} 14 - mv $out/*.ttf $out/share/fonts/truetype/ 15 - mkdir -p $out/share/doc/${name} 16 - mv $out/*.txt $out/documentation/ $out/share/doc/${name}/ 16 + mv *.ttf $out/share/fonts/truetype/ 17 + mkdir -p $out/share/doc/${pname}-${version} 18 + mv *.txt documentation/ $out/share/doc/${pname}-${version}/ 19 + 20 + runHook postInstall 17 21 ''; 18 22 19 23 meta = with lib; {
+14 -11
pkgs/data/fonts/sitelen-seli-kiwen/default.nix
··· 1 - { lib, fetchzip }: 1 + { lib, stdenvNoCC, fetchzip }: 2 2 3 - let 4 - rev = "69132c99873894746c9710707aaeb2cea2609709"; 5 - in 6 - fetchzip { 3 + stdenvNoCC.mkDerivation { 7 4 pname = "sitelen-seli-kiwen"; 8 5 version = "unstable-2022-06-28"; 9 6 10 - url = "https://raw.githubusercontent.com/kreativekorp/sitelen-seli-kiwen/${rev}/sitelenselikiwen.zip"; 11 - hash = "sha256-63sl/Ha2QAe8pVKCpLNs//DB0kjLdW01u6tVMrGquIU="; 12 - stripRoot = false; 7 + src = fetchzip { 8 + url = "https://raw.githubusercontent.com/kreativekorp/sitelen-seli-kiwen/69132c99873894746c9710707aaeb2cea2609709/sitelenselikiwen.zip"; 9 + stripRoot = false; 10 + hash = "sha256-viOLAj9Rn60bcQkkDHVuKHCE8KPnIz/L0hIJhum1SSQ="; 11 + }; 12 + 13 + installPhase = '' 14 + runHook preInstall 13 15 14 - postFetch = '' 15 16 mkdir -p $out/share/fonts/{opentype,truetype} 16 - mv $out/*.eot $out/share/fonts/opentype/ 17 - mv $out/*.ttf $out/share/fonts/truetype/ 17 + mv *.eot $out/share/fonts/opentype/ 18 + mv *.ttf $out/share/fonts/truetype/ 19 + 20 + runHook postInstall 18 21 ''; 19 22 20 23 meta = with lib; {
+15 -11
pkgs/data/fonts/stix-otf/default.nix
··· 1 - { lib, fetchzip }: 1 + { lib, stdenvNoCC, fetchzip }: 2 2 3 - let 3 + stdenvNoCC.mkDerivation rec { 4 + pname = "stix-otf"; 4 5 version = "1.1.1"; 5 - in fetchzip { 6 - name = "stix-otf-${version}"; 7 6 8 - url = "http://ftp.fi.muni.cz/pub/linux/gentoo/distfiles/STIXv${version}-word.zip"; 7 + src = fetchzip { 8 + url = "https://sources.debian.org/src/fonts-stix/1.1.1-4.1/STIXv${version}-word.zip"; 9 + stripRoot = false; 10 + hash = "sha256-M3STue+RPHi8JgZZupV0dVLZYKBiFutbBOlanuKkD08="; 11 + }; 9 12 10 - postFetch = '' 11 - mkdir -p $out/share/fonts 12 - unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype 13 + installPhase = '' 14 + runHook preInstall 15 + 16 + install -Dm644 Fonts/STIX-Word/*.otf -t $out/share/fonts/opentype 17 + 18 + runHook postInstall 13 19 ''; 14 - 15 - sha256 = "04d4qxq3i9fyapsmxk6d9v1xirjam8c74fyxs6n24d3gf2945zmw"; 16 20 17 21 meta = with lib; { 18 22 homepage = "http://www.stixfonts.org/"; 19 23 description = "Fonts for Scientific and Technical Information eXchange"; 20 24 license = licenses.ofl; 21 25 platforms = platforms.all; 22 - maintainers = [maintainers.rycee]; 26 + maintainers = [ maintainers.rycee ]; 23 27 }; 24 28 }
+24 -14
pkgs/data/fonts/tai-languages/default.nix
··· 1 - { lib, fetchzip }: 1 + { lib, stdenvNoCC, fetchurl }: 2 2 3 3 { 4 - tai-ahom = fetchzip { 5 - name = "tai-ahom-2015-07-06"; 4 + tai-ahom = stdenvNoCC.mkDerivation rec { 5 + pname = "tai-ahom"; 6 + version = "unstable-2015-07-06"; 6 7 7 - url = "https://github.com/enabling-languages/tai-languages/blob/b57a3ea4589af69bb8e87c6c4bb7cd367b52f0b7/ahom/.fonts/ttf/.original/AhomUnicode_FromMartin.ttf?raw=true"; 8 + src = fetchurl { 9 + url = "https://github.com/enabling-languages/tai-languages/raw/b57a3ea4589af69bb8e87c6c4bb7cd367b52f0b7/ahom/.fonts/ttf/.original/AhomUnicode_FromMartin.ttf"; 10 + hash = "sha256-U1vcVf/VgXhvK1f2Iw2JKkd2EzJgz7KbHAwnUanX8n4="; 11 + }; 8 12 9 - postFetch = "install -Dm644 $downloadedFile $out/share/fonts/truetype/AhomUnicode.ttf"; 13 + dontUnpack = true; 10 14 11 - sha256 = "03h8ql9d5bzq4j521j0cz08ddf717bzim1nszh2aar6kn0xqnp9q"; 15 + installPhase = '' 16 + runHook preInstall 12 17 13 - meta = with lib; { 14 - homepage = "https://github.com/enabling-languages/tai-languages"; 15 - description = "Unicode-compliant Tai Ahom font"; 16 - maintainers = with maintainers; [ mathnerd314 ]; 17 - license = licenses.ofl; # See font metadata 18 - platforms = platforms.all; 18 + install -Dm644 $src $out/share/fonts/truetype/AhomUnicode.ttf 19 + 20 + runHook postInstall 21 + ''; 22 + 23 + meta = with lib; { 24 + homepage = "https://github.com/enabling-languages/tai-languages"; 25 + description = "Unicode-compliant Tai Ahom font"; 26 + maintainers = with maintainers; [ mathnerd314 ]; 27 + license = licenses.ofl; # See font metadata 28 + platforms = platforms.all; 29 + }; 19 30 }; 20 - }; 21 31 22 - # TODO: package others (Khamti Shan, Tai Aiton, Tai Phake, and/or Assam Tai) 32 + # TODO: package others (Khamti Shan, Tai Aiton, Tai Phake, and/or Assam Tai) 23 33 24 34 }
+13 -11
pkgs/data/fonts/ttf-envy-code-r/default.nix
··· 1 - { lib, fetchzip }: 1 + { lib, stdenvNoCC, fetchzip }: 2 2 3 - let 3 + stdenvNoCC.mkDerivation rec { 4 4 pname = "ttf-envy-code-r"; 5 5 version = "PR7"; 6 - in fetchzip { 7 - name = "${pname}-0.${version}"; 8 6 9 - url = "http://download.damieng.com/fonts/original/EnvyCodeR-${version}.zip"; 7 + src = fetchzip { 8 + url = "http://download.damieng.com/fonts/original/EnvyCodeR-${version}.zip"; 9 + hash = "sha256-pJqC/sbNjxEwbVf2CVoXMBI5zvT3DqzRlKSqFT8I2sM="; 10 + }; 10 11 11 - postFetch = '' 12 - mkdir -p $out/share/{doc,fonts} 13 - unzip -j $downloadedFile \*.ttf -d $out/share/fonts/truetype 14 - unzip -j $downloadedFile \*.txt -d "$out/share/doc/${pname}" 15 - ''; 12 + installPhase = '' 13 + runHook preInstall 16 14 17 - sha256 = "0x0r07nax68cmz7490x2crzzgdg4j8fg63wppcmjqm0230bggq2z"; 15 + install -Dm644 *.ttf -t $out/share/fonts/truetype 16 + install -Dm644 *.txt -t $out/share/doc/${pname} 17 + 18 + runHook postInstall 19 + ''; 18 20 19 21 meta = with lib; { 20 22 homepage = "https://damieng.com/blog/tag/envy-code-r";
+14 -11
pkgs/data/fonts/ttf-tw-moe/default.nix
··· 1 - { lib, fetchzip }: 2 - let 1 + { lib, stdenvNoCC, fetchzip }: 2 + 3 + stdenvNoCC.mkDerivation rec { 4 + pname = "ttf-tw-moe"; 3 5 version = "2020-11-14"; 4 - in 5 - fetchzip { 6 - name = "ttf-tw-moe"; 6 + 7 + src = fetchzip { 8 + url = "https://github.com/Jiehong/TW-fonts/archive/${version}.zip"; 9 + hash = "sha256-9gy8xO93ViIPmpg1du0DbXVCR2FowourLH8nP9d6HK0="; 10 + }; 11 + 12 + installPhase = '' 13 + runHook preInstall 7 14 8 - url = "https://github.com/Jiehong/TW-fonts/archive/${version}.zip"; 15 + install -Dm644 *.ttf -t $out/share/fonts/truetype 9 16 10 - postFetch = '' 11 - mkdir -p $out/share/fonts 12 - unzip -j $downloadedFile TW-fonts-${version}/\*.ttf -d $out/share/fonts/truetype 17 + runHook postInstall 13 18 ''; 14 - 15 - sha256 = "1jd3gjjfa4vadp6d499n0irz5b22z611kd7q5qgqf6s2fwbxfhiz"; 16 19 17 20 meta = with lib; { 18 21 homepage = "http://www.moe.gov.tw/";
+12 -8
pkgs/data/fonts/ubuntu-font-family/default.nix
··· 1 - { lib, fetchzip }: 1 + { lib, stdenvNoCC, fetchzip }: 2 2 3 - fetchzip rec { 3 + stdenvNoCC.mkDerivation rec { 4 4 pname = "ubuntu-font-family"; 5 5 version = "0.83"; 6 6 7 - url = "https://assets.ubuntu.com/v1/fad7939b-ubuntu-font-family-${version}.zip"; 7 + src = fetchzip { 8 + url = "https://assets.ubuntu.com/v1/fad7939b-ubuntu-font-family-${version}.zip"; 9 + hash = "sha256-FAg1xn8Gcbwmuvqtg9SquSet4oTT9nqE+Izeq7ZMVcA="; 10 + }; 8 11 9 - postFetch = '' 12 + installPhase = '' 13 + runHook preInstall 14 + 10 15 mkdir -p $out/share/fonts/ubuntu 11 - mv $out/*.ttf $out/share/fonts/ubuntu 12 - find $out -maxdepth 1 ! -type d -exec rm {} + 16 + mv *.ttf $out/share/fonts/ubuntu 17 + 18 + runHook postInstall 13 19 ''; 14 - 15 - sha256 = "090y665h4kf2bi623532l6wiwkwnpd0xds0jr7560xwfwys1hiqh"; 16 20 17 21 meta = with lib; { 18 22 description = "Ubuntu Font Family";
+14 -13
pkgs/data/fonts/victor-mono/default.nix
··· 1 - { lib, fetchzip }: 1 + { lib, stdenvNoCC, fetchzip }: 2 2 3 - let 3 + stdenvNoCC.mkDerivation rec { 4 + pname = "victor-mono"; 4 5 version = "1.5.4"; 5 - in 6 - fetchzip { 7 - name = "victor-mono-${version}"; 8 - stripRoot = false; 9 6 10 7 # Upstream prefers we download from the website, 11 8 # but we really insist on a more versioned resource. ··· 14 11 # so we extract it from the tagged release. 15 12 # Both methods produce the same file, but this way 16 13 # we can safely reason about what version it is. 17 - url = "https://github.com/rubjo/victor-mono/raw/v${version}/public/VictorMonoAll.zip"; 14 + src = fetchzip { 15 + url = "https://github.com/rubjo/victor-mono/raw/v${version}/public/VictorMonoAll.zip"; 16 + stripRoot = false; 17 + hash = "sha256-E8j1bfYrM8yRtasiwgTvyE4EYx2LyAbmw3MXH1l+owk="; 18 + }; 19 + 20 + installPhase = '' 21 + runHook preInstall 18 22 19 - postFetch = '' 20 23 mkdir -p "$out/share/fonts/" 21 24 22 - mv $out/OTF $out/share/fonts/opentype 23 - mv $out/TTF $out/share/fonts/truetype 25 + mv OTF $out/share/fonts/opentype 26 + mv TTF $out/share/fonts/truetype 24 27 25 - rm -r $out/{EOT,WOFF,WOFF2,LICENSE.txt} 28 + runHook postInstall 26 29 ''; 27 - 28 - sha256 = "sha256-1si0d2lpuXaDcSc3giVMMMbZc/eKbHKU3wmwfYHZ8o0="; 29 30 30 31 meta = with lib; { 31 32 description = "Free programming font with cursive italics and ligatures";