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