Merge pull request #211447 from wegank/fetchzip-reduce

treewide: fonts: reduce unneeded fetchzips

authored by Anderson Torres and committed by GitHub 2bdbfb99 eb45a616

+473 -306
+41 -20
pkgs/data/fonts/arphic/default.nix
··· 1 - { lib, fetchzip, mkfontscale, mkfontdir }: 1 + { lib, stdenvNoCC, fetchurl, mkfontdir, mkfontscale }: 2 2 3 3 let 4 4 version = "0.2.20080216.2"; 5 - in { 6 - arphic-ukai = fetchzip { 7 - name = "arphic-ukai-${version}"; 5 + in 6 + { 7 + arphic-ukai = stdenvNoCC.mkDerivation rec { 8 + pname = "arphic-ukai"; 9 + inherit version; 10 + 11 + src = fetchurl { 12 + url = "mirror://ubuntu/pool/main/f/fonts-${pname}/fonts-${pname}_${version}.orig.tar.bz2"; 13 + hash = "sha256-tJaNc1GfT4dH6FVI+4XSG2Zdob8bqQCnxJmXbmqK49I="; 14 + }; 15 + 16 + nativeBuildInputs = [ 17 + mkfontscale 18 + mkfontdir 19 + ]; 8 20 9 - url = "mirror://ubuntu/pool/main/f/fonts-arphic-ukai/fonts-arphic-ukai_${version}.orig.tar.bz2"; 21 + installPhase = '' 22 + runHook preInstall 10 23 11 - postFetch = '' 12 - tar -xjvf $downloadedFile --strip-components=1 13 24 install -D -v ukai.ttc $out/share/fonts/truetype/arphic-ukai.ttc 14 25 cd $out/share/fonts 15 - ${mkfontdir}/bin/mkfontdir 16 - ${mkfontscale}/bin/mkfontscale 26 + mkfontdir 27 + mkfontscale 28 + 29 + runHook postInstall 17 30 ''; 18 31 19 - sha256 = "0xi5ycm7ydzpn7cqxv1kcj9vd70nr9wn8v27hmibyjc25y2qdmzl"; 20 - 21 32 meta = with lib; { 22 33 description = "CJK Unicode font Kai style"; 23 34 homepage = "https://www.freedesktop.org/wiki/Software/CJKUnifonts/"; ··· 28 39 }; 29 40 }; 30 41 31 - arphic-uming = fetchzip { 32 - name = "arphic-uming-${version}"; 42 + arphic-uming = stdenvNoCC.mkDerivation rec { 43 + pname = "arphic-uming"; 44 + inherit version; 33 45 34 - url = "mirror://ubuntu/pool/main/f/fonts-arphic-uming/fonts-arphic-uming_${version}.orig.tar.bz2"; 46 + src = fetchurl { 47 + url = "mirror://ubuntu/pool/main/f/fonts-${pname}/fonts-${pname}_${version}.orig.tar.bz2"; 48 + hash = "sha256-48GeBOp6VltKz/bx5CSAhNLhB1LjBb991sdugIYNwds="; 49 + }; 35 50 36 - postFetch = '' 37 - tar -xjvf $downloadedFile --strip-components=1 51 + nativeBuildInputs = [ 52 + mkfontscale 53 + mkfontdir 54 + ]; 55 + 56 + installPhase = '' 57 + runHook preInstall 58 + 38 59 install -D -v uming.ttc $out/share/fonts/truetype/arphic-uming.ttc 39 60 cd $out/share/fonts 40 - ${mkfontdir}/bin/mkfontdir 41 - ${mkfontscale}/bin/mkfontscale 61 + mkfontdir 62 + mkfontscale 63 + 64 + runHook postInstall 42 65 ''; 43 - 44 - sha256 = "16jybvj1cxamm682caj6nsm6l5c60x9mgchp1l2izrw2rvc8x38d"; 45 66 46 67 meta = with lib; { 47 68 description = "CJK Unicode font Ming style";
+17 -9
pkgs/data/fonts/baekmuk-ttf/default.nix
··· 1 - { fetchzip }: 1 + { lib, stdenvNoCC, fetchurl }: 2 2 3 - fetchzip rec { 4 - name = "baekmuk-ttf-2.2"; 3 + stdenvNoCC.mkDerivation rec { 4 + pname = "baekmuk-ttf"; 5 + version = "2.2"; 5 6 6 - url = "http://kldp.net/baekmuk/release/865-${name}.tar.gz"; 7 - postFetch = '' 8 - tar -xzvf $downloadedFile --strip-components=1 7 + src = fetchurl { 8 + url = "http://kldp.net/baekmuk/release/865-${pname}-${version}.tar.gz"; 9 + hash = "sha256-CKt9/7VdWIfMlCzjcPXjO3VqVfu06vC5DyRAcOjVGII="; 10 + }; 11 + 12 + dontBuild = true; 13 + 14 + installPhase = '' 15 + runHook preInstall 16 + 9 17 install -m444 -Dt $out/share/fonts ttf/*.ttf 10 - install -m444 -Dt $out/share/doc/${name} COPYRIGHT* 18 + install -m444 -Dt $out/share/doc/${pname}-${version} COPYRIGHT* 19 + 20 + runHook postInstall 11 21 ''; 12 - sha256 = "1jgsvack1l14q8lbcv4qhgbswi30mf045k37rl772hzcmx0r206g"; 13 22 14 23 meta = { 15 24 description = "Korean font"; ··· 17 26 license = "BSD-like"; 18 27 }; 19 28 } 20 -
+16 -8
pkgs/data/fonts/bakoma-ttf/default.nix
··· 1 - { fetchzip }: 1 + { lib, stdenvNoCC, fetchurl }: 2 2 3 - fetchzip { 4 - name = "bakoma-ttf"; 3 + stdenvNoCC.mkDerivation rec { 4 + pname = "bakoma-ttf"; 5 + version = "2.2"; 5 6 6 - url = "http://tarballs.nixos.org/sha256/1j1y3cq6ys30m734axc0brdm2q9n2as4h32jws15r7w5fwr991km"; 7 + src = fetchurl { 8 + name = "${pname}.tar.bz2"; 9 + url = "http://tarballs.nixos.org/sha256/1j1y3cq6ys30m734axc0brdm2q9n2as4h32jws15r7w5fwr991km"; 10 + hash = "sha256-dYaUMneFn1yC5lIMSLQSNmFRW16AdUXGqWBobzAbPsg="; 11 + }; 7 12 8 - postFetch = '' 9 - tar xjvf $downloadedFile --strip-components=1 13 + dontBuild = true; 14 + 15 + installPhase = '' 16 + runHook preInstall 17 + 10 18 mkdir -p $out/share/fonts/truetype 11 19 cp ttf/*.ttf $out/share/fonts/truetype 12 - ''; 13 20 14 - sha256 = "0g7i723n00cqx2va05z1h6v3a2ar69gqw4hy6pjj7m0ml906rngc"; 21 + runHook postInstall 22 + ''; 15 23 16 24 meta = { 17 25 description = "TrueType versions of the Computer Modern and AMS TeX Fonts";
+16 -9
pkgs/data/fonts/caladea/default.nix
··· 1 - { lib, fetchzip }: 1 + { lib, stdenvNoCC, fetchurl }: 2 2 3 - let 3 + stdenvNoCC.mkDerivation rec { 4 + pname = "caladea"; 4 5 version = "20130214"; 5 - in fetchzip { 6 - name = "caladea-${version}"; 6 + 7 + src = fetchurl { 8 + url = "https://commondatastorage.googleapis.com/chromeos-localmirror/distfiles/crosextrafonts-${version}.tar.gz"; 9 + hash = "sha256-xI0cL9YTycBslZw02nuDiAWeJAjSuxmEXcPtNfduTQk="; 10 + }; 11 + 12 + dontBuild = true; 13 + 14 + installPhase = '' 15 + runHook preInstall 7 16 8 - url = "https://commondatastorage.googleapis.com/chromeos-localmirror/distfiles/crosextrafonts-${version}.tar.gz"; 9 - postFetch = '' 10 - tar -xzvf $downloadedFile --strip-components=1 11 17 mkdir -p $out/etc/fonts/conf.d 12 18 mkdir -p $out/share/fonts/truetype 13 19 cp -v *.ttf $out/share/fonts/truetype 14 20 cp -v ${./cambria-alias.conf} $out/etc/fonts/conf.d/30-cambria.conf 21 + 22 + runHook postInstall 15 23 ''; 16 - sha256 = "0kwm42ggr8kvcn3554cpmv90xzam1sdncx7x3zs3bzp88mxrnv1z"; 17 24 18 25 meta = with lib; { 19 26 # This font doesn't appear to have any official web site but this ··· 27 34 ''; 28 35 license = licenses.asl20; 29 36 platforms = platforms.all; 30 - maintainers = [maintainers.rycee]; 37 + maintainers = [ maintainers.rycee ]; 31 38 32 39 # Reduce the priority of this package. The intent is that if you 33 40 # also install the `vista-fonts` package, then you probably will
+5 -5
pkgs/data/fonts/carlito/default.nix
··· 1 - { lib, fetchzip, stdenvNoCC }: 1 + { lib, fetchurl, stdenvNoCC }: 2 2 3 3 stdenvNoCC.mkDerivation rec { 4 4 pname = "carlito"; 5 5 version = "20130920"; 6 6 7 - src = fetchzip { 7 + src = fetchurl { 8 8 url = "https://commondatastorage.googleapis.com/chromeos-localmirror/distfiles/crosextrafonts-carlito-${version}.tar.gz"; 9 - sha256 = "sha256-OGDO5WoF7OmiRdLRRrIXMzg276Pgeq1L3Offcl0W2jg="; 9 + sha256 = "sha256-S9ErbLwyHBzxbaduLFhcklzpVqCAZ65vbGTv9sz9r1o="; 10 10 }; 11 11 12 12 installPhase = '' 13 13 mkdir -p $out/etc/fonts/conf.d 14 14 mkdir -p $out/share/fonts/truetype 15 - cp -v $src/*.ttf $out/share/fonts/truetype 15 + cp -v *.ttf $out/share/fonts/truetype 16 16 cp -v ${./calibri-alias.conf} $out/etc/fonts/conf.d/30-calibri.conf 17 17 ''; 18 18 ··· 28 28 ''; 29 29 license = licenses.ofl; 30 30 platforms = platforms.all; 31 - maintainers = [maintainers.rycee]; 31 + maintainers = [ maintainers.rycee ]; 32 32 33 33 # Reduce the priority of this package. The intent is that if you 34 34 # also install the `vista-fonts` package, then you probably will
+15 -10
pkgs/data/fonts/cm-unicode/default.nix
··· 1 - { lib, fetchzip }: 1 + { lib, stdenvNoCC, fetchurl }: 2 2 3 - let 3 + stdenvNoCC.mkDerivation rec { 4 + pname = "cm-unicode"; 4 5 version = "0.7.0"; 5 - in fetchzip rec { 6 - name = "cm-unicode-${version}"; 6 + 7 + src = fetchurl { 8 + url = "mirror://sourceforge/cm-unicode/cm-unicode/${version}/${pname}-${version}-otf.tar.xz"; 9 + hash = "sha256-VIp+vk1IYbEHW15wMrfGVOPqg1zBZDpgFx+jlypOHCg="; 10 + }; 11 + 12 + dontBuild = true; 7 13 8 - url = "mirror://sourceforge/cm-unicode/cm-unicode/${version}/${name}-otf.tar.xz"; 14 + installPhase = '' 15 + runHook preInstall 9 16 10 - postFetch = '' 11 - tar -xJvf $downloadedFile --strip-components=1 12 17 install -m444 -Dt $out/share/fonts/opentype *.otf 13 - install -m444 -Dt $out/share/doc/${name} README FontLog.txt 14 - ''; 18 + install -m444 -Dt $out/share/doc/${pname}-${version} README FontLog.txt 15 19 16 - sha256 = "1rzz7yhqq3lljyqxbg46jfzfd09qgpgx865lijr4sgc94riy1ypn"; 20 + runHook postInstall 21 + ''; 17 22 18 23 meta = with lib; { 19 24 homepage = "https://cm-unicode.sourceforge.io/";
+18 -11
pkgs/data/fonts/crimson/default.nix
··· 1 - { lib, fetchzip }: 1 + { lib, stdenvNoCC, fetchFromGitHub }: 2 2 3 - let 3 + stdenvNoCC.mkDerivation rec { 4 + pname = "crimson"; 4 5 version = "2014.10"; 5 - in fetchzip rec { 6 - name = "crimson-${version}"; 6 + 7 + src = fetchFromGitHub { 8 + owner = "skosch"; 9 + repo = "Crimson"; 10 + rev = "fonts-october2014"; 11 + hash = "sha256-Wp9L77q93TRmrAr0P4iH9gm0tqFY0X/xSsuFcd19aAE="; 12 + }; 13 + 14 + dontBuild = true; 7 15 8 - url = "https://github.com/skosch/Crimson/archive/fonts-october2014.tar.gz"; 16 + installPhase = '' 17 + runHook preInstall 9 18 10 - postFetch = '' 11 - tar -xzvf $downloadedFile --strip-components=1 12 19 install -m444 -Dt $out/share/fonts/opentype "Desktop Fonts/OTF/"*.otf 13 - install -m444 -Dt $out/share/doc/${name} README.md 20 + install -m444 -Dt $out/share/doc/${pname}-${version} README.md 21 + 22 + runHook postInstall 14 23 ''; 15 - 16 - sha256 = "0mg65f0ydyfmb43jqr1f34njpd10w8npw15cbb7z0nxmy4nkl842"; 17 24 18 25 meta = with lib; { 19 26 homepage = "https://github.com/skosch/Crimson"; 20 27 description = "A font family inspired by beautiful oldstyle typefaces"; 21 28 license = licenses.ofl; 22 29 platforms = platforms.all; 23 - maintainers = [maintainers.rycee]; 30 + maintainers = [ maintainers.rycee ]; 24 31 }; 25 32 }
+16 -8
pkgs/data/fonts/culmus/default.nix
··· 1 - { lib, fetchzip }: 1 + { lib, stdenvNoCC, fetchurl }: 2 2 3 - let 3 + stdenvNoCC.mkDerivation rec { 4 + pname = "culmus"; 4 5 version = "0.133"; 5 - in fetchzip { 6 - name = "culmus-${version}"; 7 - url = "mirror://sourceforge/culmus/culmus/${version}/culmus-${version}.tar.gz"; 8 - postFetch = '' 9 - tar xf $downloadedFile --strip=1 6 + 7 + src = fetchurl { 8 + url = "mirror://sourceforge/${pname}/${pname}/${version}/${pname}-${version}.tar.gz"; 9 + hash = "sha256-wMaHN0LQdUT2us8q1S65yzkpdNVkJ5ONwd+8g5nGTQU="; 10 + }; 11 + 12 + dontBuild = true; 13 + 14 + installPhase = '' 15 + runHook preInstall 16 + 10 17 mkdir -p $out/share/fonts/{truetype,type1} 11 18 cp -v *.pfa $out/share/fonts/type1/ 12 19 cp -v *.afm $out/share/fonts/type1/ ··· 14 21 cp -v *.ttf $out/share/fonts/truetype/ 15 22 cp -v *.otf $out/share/fonts/truetype/ 16 23 cp -v fonts.scale-ttf $out/share/fonts/truetype/fonts.scale 24 + 25 + runHook postInstall 17 26 ''; 18 - sha256 = "0zqqjcrqmbd4389hqz2dwymkkcxjrq9ylyriiv3gbmzl6l1ffk3g"; 19 27 20 28 meta = { 21 29 description = "Culmus Hebrew fonts";
+3 -3
pkgs/data/fonts/efont-unicode/default.nix
··· 1 - { lib, stdenv, fetchzip, libfaketime, xorg }: 1 + { lib, stdenv, fetchurl, libfaketime, xorg }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "efont-unicode"; 5 5 version = "0.4.2"; 6 6 7 - src = fetchzip { 7 + src = fetchurl { 8 8 url = "http://openlab.ring.gr.jp/efont/dist/unicode-bdf/${pname}-bdf-${version}.tar.bz2"; 9 - sha256 = "0bib3jgikq8s1m96imw4mlgbl5cbq1bs5sqig74s2l2cdfx3jaqc"; 9 + sha256 = "sha256-fT7SsYlV3dCQrf0IZfiNI1grj3ngDgr8IkWdg+f9m3M="; 10 10 }; 11 11 12 12 nativeBuildInputs = with xorg;
+18 -13
pkgs/data/fonts/go-font/default.nix
··· 1 - { lib, fetchzip }: 1 + { lib, stdenvNoCC, fetchzip }: 2 2 3 - let 3 + stdenvNoCC.mkDerivation rec { 4 + pname = "go-font"; 4 5 version = "2.010"; 5 - rev = "41969df76e82aeec85fa3821b1e24955ea993001"; 6 - in (fetchzip { 7 - name = "go-font-${version}"; 8 - url = "https://go.googlesource.com/image/+archive/${rev}/font/gofont/ttfs.tar.gz"; 9 - stripRoot = false; 6 + 7 + src = fetchzip { 8 + url = "https://go.googlesource.com/image/+archive/41969df76e82aeec85fa3821b1e24955ea993001/font/gofont/ttfs.tar.gz"; 9 + stripRoot = false; 10 + hash = "sha256-rdzt51wY4b7HEr7W/0Ar/FB0zMyf+nKLsOT+CRSEP3o="; 11 + }; 12 + 13 + dontBuild = true; 14 + 15 + installPhase = '' 16 + runHook preInstall 10 17 11 - postFetch = '' 12 18 mkdir -p $out/share/fonts/truetype 13 19 mkdir -p $out/share/doc/go-font 14 - mv $out/*.ttf $out/share/fonts/truetype 15 - mv $out/README $out/share/doc/go-font/LICENSE 20 + mv *.ttf $out/share/fonts/truetype 21 + mv README $out/share/doc/go-font/LICENSE 22 + 23 + runHook postInstall 16 24 ''; 17 25 18 - sha256 = "175jwq16qjnd2k923n9gcbjizchy7yv4n41dm691sjwrhbl0b13x"; 19 - }) // { 20 26 meta = with lib; { 21 27 homepage = "https://blog.golang.org/go-fonts"; 22 28 description = "The Go font family"; ··· 24 30 license = licenses.bsd3; 25 31 maintainers = with maintainers; [ sternenseemann ]; 26 32 platforms = lib.platforms.all; 27 - hydraPlatforms = []; 28 33 }; 29 34 }
+19 -14
pkgs/data/fonts/gyre/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 - baseName = "gyre-fonts"; 3 + stdenvNoCC.mkDerivation rec { 4 + pname = "gyre-fonts"; 6 5 version = "2.005"; 7 - in (fetchzip { 8 - name="${baseName}-${version}"; 6 + 7 + src = fetchzip { 8 + url = "http://www.gust.org.pl/projects/e-foundry/tex-gyre/whole/tg-${version}otf.zip"; 9 + stripRoot = false; 10 + hash = "sha256-+6IufuFf+IoLXoZEPlfHUNgRhKrQNBEZ1OwPD9/uOjg="; 11 + }; 12 + 13 + dontBuild = true; 14 + 15 + installPhase = '' 16 + runHook preInstall 9 17 10 - url = "http://www.gust.org.pl/projects/e-foundry/tex-gyre/whole/tg-${version}otf.zip"; 18 + mkdir -p $out/share/fonts/truetype 19 + cp *.otf $out/share/fonts/truetype 11 20 12 - sha256 = "17amdpahs6kn7hk3dqxpff1s095cg1caxzij3mxjbbxp8zy0l111"; 21 + runHook postInstall 22 + ''; 13 23 14 24 meta = { 15 25 description = "OpenType fonts from the Gyre project, suitable for use with (La)TeX"; ··· 25 35 platforms = lib.platforms.all; 26 36 maintainers = with lib.maintainers; [ bergey ]; 27 37 }; 28 - }).overrideAttrs (_: { 29 - postFetch = '' 30 - mkdir -p $out/share/fonts 31 - unzip -j $downloadedFile \*.otf -d $out/share/fonts/truetype 32 - ''; 33 - }) 38 + }
+15 -13
pkgs/data/fonts/hermit/default.nix
··· 1 - { lib, fetchzip }: 1 + { lib, stdenvNoCC, fetchzip }: 2 2 3 - let 3 + stdenvNoCC.mkDerivation rec { 4 4 pname = "hermit"; 5 5 version = "2.0"; 6 - in fetchzip rec { 7 - name = "${pname}-${version}"; 8 6 9 - url = "https://pcaro.es/d/otf-${name}.tar.gz"; 7 + src = fetchzip { 8 + url = "https://pcaro.es/d/otf-${pname}-${version}.tar.gz"; 9 + stripRoot = false; 10 + hash = "sha256-RYXZ2yJ8BIxsgeEwhXz7g0NnWG3kMPZoJaOLMUQyWWQ="; 11 + }; 10 12 11 - stripRoot = false; 12 - postFetch = '' 13 - install -m444 -Dt $out/share/fonts/opentype $out/*.otf 14 - shopt -s extglob dotglob 15 - rm -rf $out/!(share) 16 - shopt -u extglob dotglob 13 + dontBuild = true; 14 + 15 + installPhase = '' 16 + runHook preInstall 17 + 18 + install -m444 -Dt $out/share/fonts/opentype *.otf 19 + 20 + runHook postInstall 17 21 ''; 18 - sha256 = "127hnpxicqya7v1wmzxxqafq3aj1n33i4j5ncflbw6gj5g3bizwl"; 19 22 20 23 meta = with lib; { 21 24 description = "monospace font designed to be clear, pragmatic and very readable"; ··· 25 28 platforms = platforms.all; 26 29 }; 27 30 } 28 -
+15 -11
pkgs/data/fonts/julia-mono/default.nix
··· 1 - { lib, fetchzip }: 1 + { lib, stdenvNoCC, fetchzip }: 2 2 3 - let 3 + stdenvNoCC.mkDerivation rec { 4 + pname = "JuliaMono-ttf"; 4 5 version = "0.046"; 5 6 6 - in 7 - fetchzip { 8 - name = "JuliaMono-ttf-${version}"; 9 - url = "https://github.com/cormullion/juliamono/releases/download/v${version}/JuliaMono-ttf.tar.gz"; 10 - sha256 = "sha256-+Ro517m1unQskQFhsT6oiz19aov87/tT1jlP/XB7kFU="; 7 + src = fetchzip { 8 + url = "https://github.com/cormullion/juliamono/releases/download/v${version}/${pname}.tar.gz"; 9 + stripRoot = false; 10 + hash = "sha256-mq37L3bhUhdjB8z3I9i8+wyLrMSsu/nZrZXOuqE3JlU="; 11 + }; 12 + 13 + dontBuild = true; 11 14 12 - stripRoot = false; 15 + installPhase = '' 16 + runHook preInstall 13 17 14 - postFetch = '' 15 18 mkdir -p $out/share/fonts/truetype 16 - mv $out/*.ttf $out/share/fonts/truetype 17 - rm $out/LICENSE 19 + mv *.ttf $out/share/fonts/truetype 20 + 21 + runHook postInstall 18 22 ''; 19 23 20 24 meta = with lib; {
+16 -9
pkgs/data/fonts/kacst/default.nix
··· 1 - { fetchzip, lib }: 1 + { lib, stdenvNoCC, fetchurl }: 2 2 3 - let 3 + stdenvNoCC.mkDerivation rec { 4 + pname = "kacst"; 4 5 version = "2.01"; 5 - in 6 - fetchzip { 7 - name = "kacst-${version}"; 8 - url = "mirror://debian/pool/main/f/fonts-kacst/fonts-kacst_${version}+mry.orig.tar.bz2"; 9 - sha256 = "sha256-pIO58CXfmKYRKYJ1oI+tjTwlKBRnkZ/CpIM2Xa0CDA4="; 6 + 7 + src = fetchurl { 8 + url = "mirror://debian/pool/main/f/fonts-${pname}/fonts-${pname}_${version}+mry.orig.tar.bz2"; 9 + hash = "sha256-byiZzpYiMU6kJs+NSISfHPFzAnJtc8toNIbV/fKiMzg="; 10 + }; 11 + 12 + dontBuild = true; 13 + 14 + installPhase = '' 15 + runHook preInstall 10 16 11 - postFetch = '' 12 17 mkdir -p $out/share/fonts 13 - tar xjf $downloadedFile --strip-components=1 -C $out/share/fonts 18 + cp -R kacst $out/share/fonts 19 + 20 + runHook postInstall 14 21 ''; 15 22 16 23 meta = with lib; {
+15 -12
pkgs/data/fonts/khmeros/default.nix
··· 1 - { fetchzip, lib }: 1 + { lib, stdenvNoCC, fetchurl }: 2 2 3 - let 3 + stdenvNoCC.mkDerivation rec { 4 + pname = "khmeros"; 4 5 version = "5.0"; 5 - in 6 - fetchzip { 7 - name = "khmeros-${version}"; 8 - url = "mirror://debian/pool/main/f/fonts-khmeros/fonts-khmeros_${version}.orig.tar.xz"; 9 - sha256 = "sha256-pS+7RQbGwlBxdCfSVxHmARCAkZrZttwYNlV/CrxqI+w="; 6 + 7 + src = fetchurl { 8 + url = "mirror://debian/pool/main/f/fonts-${pname}/fonts-${pname}_${version}.orig.tar.xz"; 9 + hash = "sha256-gBcM9YHSuhbxvwfQTvywH/5kN921GOyvGtkROcmcBiw="; 10 + }; 11 + 12 + dontBuild = true; 13 + 14 + installPhase = '' 15 + runHook preInstall 10 16 11 - postFetch = '' 12 - unpackDir="$TMPDIR/unpack" 13 - mkdir "$unpackDir" 14 - cd "$unpackDir" 15 - tar xf "$downloadedFile" --strip-components=1 16 17 mkdir -p $out/share/fonts 17 18 cp *.ttf $out/share/fonts 19 + 20 + runHook postInstall 18 21 ''; 19 22 20 23 meta = with lib; {
+16 -9
pkgs/data/fonts/lao/default.nix
··· 1 - { fetchzip, lib }: 1 + { lib, stdenvNoCC, fetchurl }: 2 2 3 - let 3 + stdenvNoCC.mkDerivation rec { 4 + pname = "lao"; 4 5 version = "0.0.20060226"; 5 - in 6 - fetchzip { 7 - name = "lao-${version}"; 8 - url = "mirror://debian/pool/main/f/fonts-lao/fonts-lao_${version}.orig.tar.xz"; 9 - sha256 = "sha256-Ti3DNOgLR5VBJ1mSe8M+qs4UYbCR7qOPgqxRfmHa+jY="; 6 + 7 + src = fetchurl { 8 + url = "mirror://debian/pool/main/f/fonts-${pname}/fonts-${pname}_${version}.orig.tar.xz"; 9 + hash = "sha256-DlgdyfhxxzVkNIL+NGsQ+PRlNkCuG3v2OahkIEYx60o="; 10 + }; 11 + 12 + dontBuild = true; 13 + 14 + installPhase = '' 15 + runHook preInstall 10 16 11 - postFetch = '' 12 17 mkdir -p $out/share/fonts 13 - tar xf $downloadedFile --strip-components=1 -C $out/share/fonts fonts-lao-${version}/Phetsarath_OT.ttf 18 + cp Phetsarath_OT.ttf $out/share/fonts 19 + 20 + runHook postInstall 14 21 ''; 15 22 16 23 meta = with lib; {
+17 -10
pkgs/data/fonts/lklug-sinhala/default.nix
··· 1 - { fetchzip, lib }: 1 + { lib, stdenvNoCC, fetchurl }: 2 2 3 - let 3 + stdenvNoCC.mkDerivation rec { 4 + pname = "lklug-sinhala"; 4 5 version = "0.6"; 5 - in 6 - fetchzip { 7 - name = "lklug-sinhala-${version}"; 8 - url = "mirror://debian/pool/main/f/fonts-lklug-sinhala/fonts-lklug-sinhala_${version}.orig.tar.xz"; 9 - sha256 = "sha256-Fy+QnAajA4yLf/I1vOQll5pRd0ZLfLe8UXq4XMC9qNc="; 6 + 7 + src = fetchurl { 8 + url = "mirror://debian/pool/main/f/fonts-${pname}/fonts-${pname}_${version}.orig.tar.xz"; 9 + hash = "sha256-oPCCa01PMQcCK5fEILgXjrGzoDg+UvxkqK6AgeQaKio="; 10 + }; 11 + 12 + dontBuild = true; 13 + 14 + installPhase = '' 15 + runHook preInstall 16 + 17 + mkdir -p $out/share/fonts/truetype 18 + cp *.ttf $out/share/fonts/truetype 10 19 11 - postFetch = '' 12 - mkdir -p $out/share/fonts 13 - tar xf $downloadedFile --strip-components=1 -C $out/share/fonts fonts-lklug-sinhala-${version}/lklug.ttf 20 + runHook postInstall 14 21 ''; 15 22 16 23 meta = with lib; {
+15 -12
pkgs/data/fonts/lmodern/default.nix
··· 1 - { fetchzip }: 1 + { lib, stdenvNoCC, fetchurl }: 2 2 3 - fetchzip { 4 - name = "lmodern-2.005"; 3 + stdenvNoCC.mkDerivation rec { 4 + pname = "lmodern"; 5 + version = "2.005"; 5 6 6 - url = "mirror://debian/pool/main/l/lmodern/lmodern_2.005.orig.tar.gz"; 7 + src = fetchurl { 8 + url = "mirror://debian/pool/main/l/${pname}/${pname}_${version}.orig.tar.gz"; 9 + hash = "sha256-xlUuZt6rjW0pX4t6PKWAHkkv3PisGCj7ZwatZPAUNxk="; 10 + }; 11 + 12 + dontBuild = true; 7 13 8 - postFetch = '' 9 - tar xzvf $downloadedFile 14 + installPhase = '' 15 + runHook preInstall 10 16 11 17 mkdir -p $out/texmf-dist/ 12 18 mkdir -p $out/share/fonts/ 13 19 14 - cp -r lmodern-2.005/* $out/texmf-dist/ 15 - cp -r lmodern-2.005/fonts/{opentype,type1} $out/share/fonts/ 20 + cp -r * $out/texmf-dist/ 21 + cp -r fonts/{opentype,type1} $out/share/fonts/ 16 22 17 - ln -s -r $out/texmf* $out/share/ 23 + runHook postInstall 18 24 ''; 19 25 20 - sha256 = "sha256-ySdKUt8o5FqmpdnYSzbGJ1f9t8VmKYXqPt53e1/E/FA="; 21 - 22 26 meta = { 23 27 description = "Latin Modern font"; 24 28 }; 25 29 } 26 -
+16 -9
pkgs/data/fonts/luculent/default.nix
··· 1 - { lib, fetchzip }: 1 + { lib, stdenvNoCC, fetchurl }: 2 + 3 + stdenvNoCC.mkDerivation rec { 4 + pname = "luculent"; 5 + version = "2.0.0"; 6 + 7 + src = fetchurl { 8 + url = "http://www.eastfarthing.com/${pname}/${pname}.tar.xz"; 9 + hash = "sha256-6NxLnTBnvHmTUTFa2wW0AuKPEbCqzaWQyiFVnF0sBqU="; 10 + }; 11 + 12 + dontBuild = true; 2 13 3 - let version = "2.0.0"; in 4 - fetchzip { 5 - name = "luculent-${version}"; 6 - url = "http://www.eastfarthing.com/luculent/luculent.tar.xz"; 14 + installPhase = '' 15 + runHook preInstall 7 16 8 - postFetch = '' 9 - tar -xJf $downloadedFile --strip-components=1 10 17 mkdir -p $out/share/fonts/truetype 11 18 cp *.ttf $out/share/fonts/truetype 12 - ''; 13 19 14 - sha256 = "1m3g64galwna1xjxb1fczmfplm6c1fn3ra1ln7f0vkm0ah5m4lbv"; 20 + runHook postInstall 21 + ''; 15 22 16 23 meta = with lib; { 17 24 description = "luculent font";
+13 -10
pkgs/data/fonts/lxgw-wenkai/default.nix
··· 1 - { lib, fetchzip }: 1 + { lib, stdenvNoCC, fetchurl }: 2 2 3 - fetchzip rec { 3 + stdenvNoCC.mkDerivation rec { 4 4 pname = "lxgw-wenkai"; 5 5 version = "1.245.1"; 6 6 7 - url = "https://github.com/lxgw/LxgwWenKai/releases/download/v${version}/lxgw-wenkai-v${version}.tar.gz"; 7 + src = fetchurl { 8 + url = "https://github.com/lxgw/LxgwWenKai/releases/download/v${version}/${pname}-v${version}.tar.gz"; 9 + hash = "sha256-CllpZdTC27fsh6Uo+VERvXBjl/tjdhIfA+v29GXIG44="; 10 + }; 11 + 12 + dontBuild = true; 13 + 14 + installPhase = '' 15 + runHook preInstall 8 16 9 - postFetch = '' 10 17 mkdir -p $out/share/fonts/truetype 11 - mv $out/*.ttf $out/share/fonts/truetype 18 + mv *.ttf $out/share/fonts/truetype 12 19 13 - shopt -s extglob dotglob 14 - rm -rf $out/!(share) 15 - shopt -u extglob dotglob 20 + runHook postInstall 16 21 ''; 17 - 18 - hash = "sha256-4RQ+aqAZPQH3t6v2KvrNWgYT3J3uMuY34XTuvyLEOeI="; 19 22 20 23 meta = with lib; { 21 24 homepage = "https://lxgw.github.io/";
+15 -10
pkgs/data/fonts/marathi-cursive/default.nix
··· 1 - { lib, fetchzip }: 1 + { lib, stdenvNoCC, fetchurl }: 2 2 3 - let 3 + stdenvNoCC.mkDerivation rec { 4 + pname = "marathi-cursive"; 4 5 version = "2.0"; 5 - in fetchzip rec { 6 - name = "marathi-cursive-${version}"; 6 + 7 + src = fetchurl { 8 + url = "https://github.com/MihailJP/MarathiCursive/releases/download/v${version}/MarathiCursive-${version}.tar.xz"; 9 + hash = "sha256-JE9T3UMSYn/JfEWuWHikDJIlt4nZl6GzY98v3vG6di4="; 10 + }; 11 + 12 + dontBuild = true; 7 13 8 - url = "https://github.com/MihailJP/MarathiCursive/releases/download/v${version}/MarathiCursive-${version}.tar.xz"; 14 + installPhase = '' 15 + runHook preInstall 9 16 10 - postFetch = '' 11 - tar -xJf $downloadedFile --strip-components=1 12 17 install -m444 -Dt $out/share/fonts/marathi-cursive *.otf *.ttf 13 - install -m444 -Dt $out/share/doc/${name} README *.txt 14 - ''; 18 + install -m444 -Dt $out/share/doc/${pname}-${version} README *.txt 15 19 16 - sha256 = "17pj60ajnjghxhxka8a046mz6vfwr79wnby7xd6pg5hgncin2hgg"; 20 + runHook postInstall 21 + ''; 17 22 18 23 meta = with lib; { 19 24 homepage = "https://github.com/MihailJP/MarathiCursive";
+15 -12
pkgs/data/fonts/nanum/default.nix
··· 1 - { fetchzip, lib }: 1 + { lib, stdenvNoCC, fetchurl }: 2 2 3 - let 3 + stdenvNoCC.mkDerivation rec { 4 + pname = "nanum"; 4 5 version = "20170925"; 5 - in 6 - fetchzip { 7 - name = "nanum-${version}"; 8 - url = "mirror://ubuntu/pool/universe/f/fonts-nanum/fonts-nanum_${version}.orig.tar.xz"; 9 - sha256 = "sha256-lSTeQEuMmlQxiQqrx9tNScifE8nMOUDJF3lCfoAFIJk="; 6 + 7 + src = fetchurl { 8 + url = "mirror://ubuntu/pool/universe/f/fonts-${pname}/fonts-${pname}_${version}.orig.tar.xz"; 9 + hash = "sha256-GlVXH9YUU3wHMkNoz5miBv7N2oUEbwUXlcVoElQ9++4="; 10 + }; 11 + 12 + dontBuild = true; 13 + 14 + installPhase = '' 15 + runHook preInstall 10 16 11 - postFetch = '' 12 - unpackDir="$TMPDIR/unpack" 13 - mkdir "$unpackDir" 14 - cd "$unpackDir" 15 - tar xf "$downloadedFile" --strip-components=1 16 17 mkdir -p $out/share/fonts 17 18 cp *.ttf $out/share/fonts 19 + 20 + runHook postInstall 18 21 ''; 19 22 20 23 meta = with lib; {
+16 -11
pkgs/data/fonts/oldsindhi/default.nix
··· 1 - { lib, fetchzip }: 1 + { lib, stdenvNoCC, fetchurl }: 2 2 3 - let 3 + stdenvNoCC.mkDerivation rec { 4 + pname = "oldsindhi"; 4 5 version = "1.0"; 5 - in fetchzip rec { 6 - name = "oldsindhi-${version}"; 6 + 7 + src = fetchurl { 8 + url = "https://github.com/MihailJP/${pname}/releases/download/v${version}/OldSindhi-${version}.tar.xz"; 9 + hash = "sha256-jOcl+mo6CJ9Lnn3nAUiXXHCJssovVgLoPrbGxj4uzQs="; 10 + }; 11 + 12 + dontBuild = true; 7 13 8 - url = "https://github.com/MihailJP/oldsindhi/releases/download/v${version}/OldSindhi-${version}.tar.xz"; 14 + installPhase = '' 15 + runHook preInstall 9 16 10 - postFetch = '' 11 - tar -xJf $downloadedFile --strip-components=1 12 17 install -m444 -Dt $out/share/fonts/truetype *.ttf 13 - install -m444 -Dt $out/share/doc/${name} README *.txt 18 + install -m444 -Dt $out/share/doc/${pname}-${version} README *.txt 19 + 20 + runHook postInstall 14 21 ''; 15 - 16 - sha256 = "03c483vbrwz2fpdfbys42fmik9788zxfmjmc4fgq4s2d0mraa0j1"; 17 22 18 23 meta = with lib; { 19 24 homepage = "https://github.com/MihailJP/oldsindhi"; 20 25 description = "Free Sindhi Khudabadi font"; 21 26 maintainers = with maintainers; [ mathnerd314 ]; 22 - license = with licenses; [mit ofl]; 27 + license = with licenses; [ mit ofl ]; 23 28 platforms = platforms.all; 24 29 }; 25 30 }
+15 -12
pkgs/data/fonts/takao/default.nix
··· 1 - { fetchzip, lib }: 1 + { lib, stdenvNoCC, fetchurl }: 2 2 3 - let 3 + stdenvNoCC.mkDerivation rec { 4 + pname = "takao"; 4 5 version = "00303.01"; 5 - in 6 - fetchzip { 7 - name = "takao-${version}"; 8 - url = "mirror://ubuntu/pool/universe/f/fonts-takao/fonts-takao_${version}.orig.tar.gz"; 9 - sha256 = "sha256-TlPq3iIv8vHlxYu5dkX/Lf6ediYKQaQ5uMbFvypQM/w="; 6 + 7 + src = fetchurl { 8 + url = "mirror://ubuntu/pool/universe/f/fonts-${pname}/fonts-${pname}_${version}.orig.tar.gz"; 9 + hash = "sha256-0wjHNv1yStp0q9D0WfwjgUYoUKcCrXA5jFO8PEVgq5k="; 10 + }; 11 + 12 + dontBuild = true; 13 + 14 + installPhase = '' 15 + runHook preInstall 10 16 11 - postFetch = '' 12 - unpackDir="$TMPDIR/unpack" 13 - mkdir "$unpackDir" 14 - cd "$unpackDir" 15 - tar xf "$downloadedFile" --strip-components=1 16 17 mkdir -p $out/share/fonts 17 18 cp *.ttf $out/share/fonts 19 + 20 + runHook postInstall 18 21 ''; 19 22 20 23 meta = with lib; {
+16 -9
pkgs/data/fonts/tibetan-machine/default.nix
··· 1 - { fetchzip, lib }: 1 + { lib, stdenvNoCC, fetchurl }: 2 2 3 - let 3 + stdenvNoCC.mkDerivation rec { 4 + pname = "tibetan-machine"; 4 5 version = "1.901b"; 5 - in 6 - fetchzip { 7 - name = "tibetan-machine-${version}"; 8 - url = "mirror://debian/pool/main/f/fonts-tibetan-machine/fonts-tibetan-machine_${version}.orig.tar.bz2"; 9 - sha256 = "sha256-A+RgpFLsP4iTzl0PMRHaNzWGbDR5Qa38lRegNJ96ULo="; 6 + 7 + src = fetchurl { 8 + url = "mirror://debian/pool/main/f/fonts-${pname}/fonts-${pname}_${version}.orig.tar.bz2"; 9 + hash = "sha256-c/1Sgv7xKHpsJGjY9ZY2qOJHShGHL1robvphFNJOt5w="; 10 + }; 11 + 12 + dontBuild = true; 13 + 14 + installPhase = '' 15 + runHook preInstall 10 16 11 - postFetch = '' 12 17 mkdir -p $out/share/fonts 13 - tar xf $downloadedFile --strip-components=1 -C $out/share/fonts ttf-tmuni-${version}/TibMachUni-${version}.ttf 18 + cp *.ttf $out/share/fonts 19 + 20 + runHook postInstall 14 21 ''; 15 22 16 23 meta = with lib; {
+15 -12
pkgs/data/fonts/ttf-bitstream-vera/default.nix
··· 1 - { lib, fetchzip }: 2 - let 1 + { lib, stdenvNoCC, fetchurl }: 2 + 3 + stdenvNoCC.mkDerivation rec { 3 4 pname = "ttf-bitstream-vera"; 4 5 version = "1.10"; 5 - in 6 - fetchzip rec { 7 - name = "${pname}-${version}"; 6 + 7 + src = fetchurl { 8 + url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.bz2"; 9 + hash = "sha256-21sn33u7MYA269t1rNPpjxvW62YI+3CmfUeM0kPReNw="; 10 + }; 11 + 12 + dontBuild = true; 8 13 9 - url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${name}.tar.bz2"; 14 + installPhase = '' 15 + runHook preInstall 10 16 11 - postFetch = '' 12 - tar -xjf $downloadedFile --strip-components=1 13 17 install -m444 -Dt $out/share/fonts/truetype *.ttf 18 + 19 + runHook postInstall 14 20 ''; 15 21 16 - sha256 = "179hal4yi3367jg8rsvqx6h2w4s0kn9zzrv8c47sslyg28g39s4m"; 17 - 18 - meta = { 19 - }; 22 + meta = { }; 20 23 }
+15 -9
pkgs/data/fonts/unfonts-core/default.nix
··· 1 - { lib, fetchzip }: 1 + { lib, stdenvNoCC, fetchurl }: 2 2 3 - let 3 + stdenvNoCC.mkDerivation rec { 4 4 pname = "unfonts-core"; 5 5 version = "1.0.2-080608"; 6 - in fetchzip { 7 - name = "${pname}-${version}"; 8 - url = "https://kldp.net/unfonts/release/2607-un-fonts-core-${version}.tar.gz"; 9 - hash = "sha256-k9C7d/SbVLWFzRnDWpOIMtY6cAEIcaLcbxQAqjwuWds="; 10 6 11 - postFetch = '' 12 - tar -xzf $downloadedFile --strip-components=1 7 + src = fetchurl { 8 + url = "https://kldp.net/unfonts/release/2607-un-fonts-core-${version}.tar.gz"; 9 + hash = "sha256-OwpydPmqt+jw8ZOMAacOFYF2bVG0lLoUVoPzesVXkY4="; 10 + }; 11 + 12 + dontBuild = true; 13 + 14 + installPhase = '' 15 + runHook preInstall 16 + 13 17 install -m444 -Dt $out/share/fonts/truetype *.ttf 18 + 19 + runHook postInstall 14 20 ''; 15 21 16 22 meta = with lib; { ··· 20 26 The Un-fonts come from the HLaTeX as type1 fonts in 1998 by Koaunghi Un, he made type1 fonts to use with Korean TeX (HLaTeX) in the late 1990's and released it under the GPL license. 21 27 22 28 They were converted to TrueType with the FontForge (PfaEdit) by Won-kyu Park in 2003. 23 - ''; 29 + ''; 24 30 license = licenses.gpl2; 25 31 platforms = platforms.all; 26 32 maintainers = [ maintainers.ehmry ];
+15 -8
pkgs/data/fonts/vdrsymbols/default.nix
··· 1 - { lib, fetchzip }: 1 + { lib, stdenvNoCC, fetchurl }: 2 + 3 + stdenvNoCC.mkDerivation rec { 4 + pname = "vdrsymbols"; 5 + version = "20100612"; 2 6 3 - fetchzip { 4 - name = "vdrsymbols-20100612"; 7 + src = fetchurl { 8 + url = "http://andreas.vdr-developer.org/fonts/download/${pname}-ttf-${version}.tgz"; 9 + hash = "sha256-YxB+JcDkta5are+OQyP/WKDL0vllgn0m26bU9mQ3C/Q="; 10 + }; 11 + 12 + dontBuild = true; 5 13 6 - url = "http://andreas.vdr-developer.org/fonts/download/vdrsymbols-ttf-20100612.tgz"; 14 + installPhase = '' 15 + runHook preInstall 7 16 8 - sha256 = "0wpxns8zqic98c84j18dr4zmj092v07yq07vwwgzblr0rw9n6gzr"; 17 + install -Dm444 -t "$out/share/fonts/truetype" *.ttf 9 18 10 - postFetch = '' 11 - tar xvzf "$downloadedFile" 12 - install -Dm444 -t "$out/share/fonts/truetype" */*.ttf 19 + runHook postInstall 13 20 ''; 14 21 15 22 meta = with lib; {
+15 -9
pkgs/data/fonts/wqy-microhei/default.nix
··· 1 - { lib, fetchzip }: 1 + { lib, stdenvNoCC, fetchurl }: 2 2 3 - fetchzip rec { 4 - name = "wqy-microhei-0.2.0-beta"; 3 + stdenvNoCC.mkDerivation rec { 4 + pname = "wqy-microhei"; 5 + version = "0.2.0"; 5 6 6 - url = "mirror://sourceforge/wqy/${name}.tar.gz"; 7 + src = fetchurl { 8 + url = "mirror://sourceforge/wqy/${pname}-${version}-beta.tar.gz"; 9 + hash = "sha256-KAKsgCOqNqZupudEWFTjoHjTd///QhaTQb0jeHH3IT4="; 10 + }; 7 11 8 - postFetch = '' 9 - tar -xzf $downloadedFile --strip-components=1 12 + dontBuild = true; 13 + 14 + installPhase = '' 15 + runHook preInstall 16 + 10 17 install -Dm644 wqy-microhei.ttc $out/share/fonts/wqy-microhei.ttc 18 + 19 + runHook postInstall 11 20 ''; 12 - 13 - sha256 = "0i5jh7mkp371fxqmsvn7say075r641yl4hq26isjyrqvb8cv92a9"; 14 21 15 22 meta = { 16 23 description = "A (mainly) Chinese Unicode font"; ··· 20 27 platforms = lib.platforms.all; 21 28 }; 22 29 } 23 -
+14 -9
pkgs/data/fonts/wqy-zenhei/default.nix
··· 1 - { lib, fetchzip }: 1 + { lib, stdenvNoCC, fetchurl }: 2 2 3 - let 3 + stdenvNoCC.mkDerivation rec { 4 + pname = "wqy-zenhei"; 4 5 version = "0.9.45"; 5 - in fetchzip rec { 6 - name = "wqy-zenhei-${version}"; 6 + 7 + src = fetchurl { 8 + url = "mirror://sourceforge/wqy/${pname}-${version}.tar.gz"; 9 + hash = "sha256-5LfjBkdb+UJ9F1dXjw5FKJMMhMROqj8WfUxC8RDuddY="; 10 + }; 11 + 12 + dontBuild = true; 7 13 8 - url = "mirror://sourceforge/wqy/${name}.tar.gz"; 14 + installPhase = '' 15 + runHook preInstall 9 16 10 - postFetch = '' 11 - tar -xzf $downloadedFile --strip-components=1 12 17 mkdir -p $out/share/fonts 13 18 install -m644 *.ttc $out/share/fonts/ 19 + 20 + runHook postInstall 14 21 ''; 15 - 16 - sha256 = "0hbjq6afcd63nsyjzrjf8fmm7pn70jcly7fjzjw23v36ffi0g255"; 17 22 18 23 meta = { 19 24 description = "A (mainly) Chinese Unicode font";