nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
fork

Configure Feed

Select the types of activity you want to include in your feed.

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; 8 10 9 - url = "mirror://ubuntu/pool/main/f/fonts-arphic-ukai/fonts-arphic-ukai_${version}.orig.tar.bz2"; 11 + src = fetchurl { 12 + url = "mirror://ubuntu/pool/main/f/fonts-${pname}/fonts-${pname}_${version}.orig.tar.bz2"; 13 + hash = "sha256-tJaNc1GfT4dH6FVI+4XSG2Zdob8bqQCnxJmXbmqK49I="; 14 + }; 10 15 11 - postFetch = '' 12 - tar -xjvf $downloadedFile --strip-components=1 16 + nativeBuildInputs = [ 17 + mkfontscale 18 + mkfontdir 19 + ]; 20 + 21 + installPhase = '' 22 + runHook preInstall 23 + 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 17 - ''; 26 + mkfontdir 27 + mkfontscale 18 28 19 - sha256 = "0xi5ycm7ydzpn7cqxv1kcj9vd70nr9wn8v27hmibyjc25y2qdmzl"; 29 + runHook postInstall 30 + ''; 20 31 21 32 meta = with lib; { 22 33 description = "CJK Unicode font Kai style"; ··· 39 28 }; 40 29 }; 41 30 42 - arphic-uming = fetchzip { 43 - name = "arphic-uming-${version}"; 31 + arphic-uming = stdenvNoCC.mkDerivation rec { 32 + pname = "arphic-uming"; 33 + inherit version; 44 34 45 - url = "mirror://ubuntu/pool/main/f/fonts-arphic-uming/fonts-arphic-uming_${version}.orig.tar.bz2"; 35 + src = fetchurl { 36 + url = "mirror://ubuntu/pool/main/f/fonts-${pname}/fonts-${pname}_${version}.orig.tar.bz2"; 37 + hash = "sha256-48GeBOp6VltKz/bx5CSAhNLhB1LjBb991sdugIYNwds="; 38 + }; 46 39 47 - postFetch = '' 48 - tar -xjvf $downloadedFile --strip-components=1 40 + nativeBuildInputs = [ 41 + mkfontscale 42 + mkfontdir 43 + ]; 44 + 45 + installPhase = '' 46 + runHook preInstall 47 + 49 48 install -D -v uming.ttc $out/share/fonts/truetype/arphic-uming.ttc 50 49 cd $out/share/fonts 51 - ${mkfontdir}/bin/mkfontdir 52 - ${mkfontscale}/bin/mkfontscale 53 - ''; 50 + mkfontdir 51 + mkfontscale 54 52 55 - sha256 = "16jybvj1cxamm682caj6nsm6l5c60x9mgchp1l2izrw2rvc8x38d"; 53 + runHook postInstall 54 + ''; 56 55 57 56 meta = with lib; { 58 57 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"; ··· 26 17 license = "BSD-like"; 27 18 }; 28 19 } 29 -
+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}"; 7 6 8 - url = "https://commondatastorage.googleapis.com/chromeos-localmirror/distfiles/crosextrafonts-${version}.tar.gz"; 9 - postFetch = '' 10 - tar -xzvf $downloadedFile --strip-components=1 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 + 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 ··· 34 27 ''; 35 28 license = licenses.asl20; 36 29 platforms = platforms.all; 37 - maintainers = [maintainers.rycee]; 30 + maintainers = [ maintainers.rycee ]; 38 31 39 32 # Reduce the priority of this package. The intent is that if you 40 33 # 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}"; 7 6 8 - url = "mirror://sourceforge/cm-unicode/cm-unicode/${version}/${name}-otf.tar.xz"; 7 + src = fetchurl { 8 + url = "mirror://sourceforge/cm-unicode/cm-unicode/${version}/${pname}-${version}-otf.tar.xz"; 9 + hash = "sha256-VIp+vk1IYbEHW15wMrfGVOPqg1zBZDpgFx+jlypOHCg="; 10 + }; 9 11 10 - postFetch = '' 11 - tar -xJvf $downloadedFile --strip-components=1 12 + dontBuild = true; 13 + 14 + installPhase = '' 15 + runHook preInstall 16 + 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}"; 7 6 8 - url = "https://github.com/skosch/Crimson/archive/fonts-october2014.tar.gz"; 7 + src = fetchFromGitHub { 8 + owner = "skosch"; 9 + repo = "Crimson"; 10 + rev = "fonts-october2014"; 11 + hash = "sha256-Wp9L77q93TRmrAr0P4iH9gm0tqFY0X/xSsuFcd19aAE="; 12 + }; 9 13 10 - postFetch = '' 11 - tar -xzvf $downloadedFile --strip-components=1 14 + dontBuild = true; 15 + 16 + installPhase = '' 17 + runHook preInstall 18 + 12 19 install -m444 -Dt $out/share/fonts/opentype "Desktop Fonts/OTF/"*.otf 13 - install -m444 -Dt $out/share/doc/${name} README.md 14 - ''; 20 + install -m444 -Dt $out/share/doc/${pname}-${version} README.md 15 21 16 - sha256 = "0mg65f0ydyfmb43jqr1f34njpd10w8npw15cbb7z0nxmy4nkl842"; 22 + runHook postInstall 23 + ''; 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/ ··· 21 14 cp -v *.ttf $out/share/fonts/truetype/ 22 15 cp -v *.otf $out/share/fonts/truetype/ 23 16 cp -v fonts.scale-ttf $out/share/fonts/truetype/fonts.scale 17 + 18 + runHook postInstall 24 19 ''; 25 - sha256 = "0zqqjcrqmbd4389hqz2dwymkkcxjrq9ylyriiv3gbmzl6l1ffk3g"; 26 20 27 21 meta = { 28 22 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; 10 6 11 - postFetch = '' 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 + 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"; ··· 30 24 license = licenses.bsd3; 31 25 maintainers = with maintainers; [ sternenseemann ]; 32 26 platforms = lib.platforms.all; 33 - hydraPlatforms = []; 34 27 }; 35 28 }
+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}"; 9 6 10 - url = "http://www.gust.org.pl/projects/e-foundry/tex-gyre/whole/tg-${version}otf.zip"; 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 + }; 11 12 12 - sha256 = "17amdpahs6kn7hk3dqxpff1s095cg1caxzij3mxjbbxp8zy0l111"; 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 + ''; 13 23 14 24 meta = { 15 25 description = "OpenType fonts from the Gyre project, suitable for use with (La)TeX"; ··· 35 25 platforms = lib.platforms.all; 36 26 maintainers = with lib.maintainers; [ bergey ]; 37 27 }; 38 - }).overrideAttrs (_: { 39 - postFetch = '' 40 - mkdir -p $out/share/fonts 41 - unzip -j $downloadedFile \*.otf -d $out/share/fonts/truetype 42 - ''; 43 - }) 28 + }
+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"; ··· 28 25 platforms = platforms.all; 29 26 }; 30 27 } 31 -
+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 + }; 11 12 12 - stripRoot = false; 13 + dontBuild = true; 13 14 14 - postFetch = '' 15 + installPhase = '' 16 + runHook preInstall 17 + 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="; 10 6 11 - postFetch = '' 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 + 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="; 10 6 11 - postFetch = '' 12 - unpackDir="$TMPDIR/unpack" 13 - mkdir "$unpackDir" 14 - cd "$unpackDir" 15 - tar xf "$downloadedFile" --strip-components=1 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 + 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="; 10 6 11 - postFetch = '' 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 + 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="; 10 6 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 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 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 + }; 7 11 8 - postFetch = '' 9 - tar xzvf $downloadedFile 12 + dontBuild = true; 13 + 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 - 20 - sha256 = "sha256-ySdKUt8o5FqmpdnYSzbGJ1f9t8VmKYXqPt53e1/E/FA="; 21 25 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 2 3 - let version = "2.0.0"; in 4 - fetchzip { 5 - name = "luculent-${version}"; 6 - url = "http://www.eastfarthing.com/luculent/luculent.tar.xz"; 3 + stdenvNoCC.mkDerivation rec { 4 + pname = "luculent"; 5 + version = "2.0.0"; 7 6 8 - postFetch = '' 9 - tar -xJf $downloadedFile --strip-components=1 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 + 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 + }; 8 11 9 - postFetch = '' 12 + dontBuild = true; 13 + 14 + installPhase = '' 15 + runHook preInstall 16 + 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}"; 7 6 8 - url = "https://github.com/MihailJP/MarathiCursive/releases/download/v${version}/MarathiCursive-${version}.tar.xz"; 7 + src = fetchurl { 8 + url = "https://github.com/MihailJP/MarathiCursive/releases/download/v${version}/MarathiCursive-${version}.tar.xz"; 9 + hash = "sha256-JE9T3UMSYn/JfEWuWHikDJIlt4nZl6GzY98v3vG6di4="; 10 + }; 9 11 10 - postFetch = '' 11 - tar -xJf $downloadedFile --strip-components=1 12 + dontBuild = true; 13 + 14 + installPhase = '' 15 + runHook preInstall 16 + 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="; 10 6 11 - postFetch = '' 12 - unpackDir="$TMPDIR/unpack" 13 - mkdir "$unpackDir" 14 - cd "$unpackDir" 15 - tar xf "$downloadedFile" --strip-components=1 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 + 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}"; 7 6 8 - url = "https://github.com/MihailJP/oldsindhi/releases/download/v${version}/OldSindhi-${version}.tar.xz"; 7 + src = fetchurl { 8 + url = "https://github.com/MihailJP/${pname}/releases/download/v${version}/OldSindhi-${version}.tar.xz"; 9 + hash = "sha256-jOcl+mo6CJ9Lnn3nAUiXXHCJssovVgLoPrbGxj4uzQs="; 10 + }; 9 11 10 - postFetch = '' 11 - tar -xJf $downloadedFile --strip-components=1 12 + dontBuild = true; 13 + 14 + installPhase = '' 15 + runHook preInstall 16 + 12 17 install -m444 -Dt $out/share/fonts/truetype *.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 = "03c483vbrwz2fpdfbys42fmik9788zxfmjmc4fgq4s2d0mraa0j1"; 20 + runHook postInstall 21 + ''; 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="; 10 6 11 - postFetch = '' 12 - unpackDir="$TMPDIR/unpack" 13 - mkdir "$unpackDir" 14 - cd "$unpackDir" 15 - tar xf "$downloadedFile" --strip-components=1 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 + 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="; 10 6 11 - postFetch = '' 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 + 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}"; 8 6 9 - url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${name}.tar.bz2"; 7 + src = fetchurl { 8 + url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.bz2"; 9 + hash = "sha256-21sn33u7MYA269t1rNPpjxvW62YI+3CmfUeM0kPReNw="; 10 + }; 10 11 11 - postFetch = '' 12 - tar -xjf $downloadedFile --strip-components=1 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 - 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; { ··· 26 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. 27 21 28 22 They were converted to TrueType with the FontForge (PfaEdit) by Won-kyu Park in 2003. 29 - ''; 23 + ''; 30 24 license = licenses.gpl2; 31 25 platforms = platforms.all; 32 26 maintainers = [ maintainers.ehmry ];
+15 -8
pkgs/data/fonts/vdrsymbols/default.nix
··· 1 - { lib, fetchzip }: 1 + { lib, stdenvNoCC, fetchurl }: 2 2 3 - fetchzip { 4 - name = "vdrsymbols-20100612"; 3 + stdenvNoCC.mkDerivation rec { 4 + pname = "vdrsymbols"; 5 + version = "20100612"; 5 6 6 - url = "http://andreas.vdr-developer.org/fonts/download/vdrsymbols-ttf-20100612.tgz"; 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 + }; 7 11 8 - sha256 = "0wpxns8zqic98c84j18dr4zmj092v07yq07vwwgzblr0rw9n6gzr"; 12 + dontBuild = true; 9 13 10 - postFetch = '' 11 - tar xvzf "$downloadedFile" 12 - install -Dm444 -t "$out/share/fonts/truetype" */*.ttf 14 + installPhase = '' 15 + runHook preInstall 16 + 17 + install -Dm444 -t "$out/share/fonts/truetype" *.ttf 18 + 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 11 - ''; 12 18 13 - sha256 = "0i5jh7mkp371fxqmsvn7say075r641yl4hq26isjyrqvb8cv92a9"; 19 + runHook postInstall 20 + ''; 14 21 15 22 meta = { 16 23 description = "A (mainly) Chinese Unicode font"; ··· 27 20 platforms = lib.platforms.all; 28 21 }; 29 22 } 30 -
+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}"; 7 6 8 - url = "mirror://sourceforge/wqy/${name}.tar.gz"; 7 + src = fetchurl { 8 + url = "mirror://sourceforge/wqy/${pname}-${version}.tar.gz"; 9 + hash = "sha256-5LfjBkdb+UJ9F1dXjw5FKJMMhMROqj8WfUxC8RDuddY="; 10 + }; 9 11 10 - postFetch = '' 11 - tar -xzf $downloadedFile --strip-components=1 12 + dontBuild = true; 13 + 14 + installPhase = '' 15 + runHook preInstall 16 + 12 17 mkdir -p $out/share/fonts 13 18 install -m644 *.ttc $out/share/fonts/ 14 - ''; 15 19 16 - sha256 = "0hbjq6afcd63nsyjzrjf8fmm7pn70jcly7fjzjw23v36ffi0g255"; 20 + runHook postInstall 21 + ''; 17 22 18 23 meta = { 19 24 description = "A (mainly) Chinese Unicode font";