Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: c232a995ab9a
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 1d8c28b3fff3
Choose a head ref
  • 2 commits
  • 1 file changed
  • 2 contributors

Commits on Nov 14, 2020

  1. Copy the full SHA
    a5e2e4c View commit details

Commits on Nov 26, 2020

  1. Merge pull request #103795 from Jiehong/feature/update_tw

    ttf-tw-moe: no_version -> 2020-11-14
    SuperSandro2000 authored Nov 26, 2020
    Copy the full SHA
    1d8c28b View commit details
Showing with 7 additions and 4 deletions.
  1. +7 −4 pkgs/data/fonts/ttf-tw-moe/default.nix
11 changes: 7 additions & 4 deletions pkgs/data/fonts/ttf-tw-moe/default.nix
Original file line number Diff line number Diff line change
@@ -1,20 +1,23 @@
{ stdenv, fetchzip }:

let
version = "2020-11-14";
in
fetchzip {
name = "ttf-tw-moe";

url = "https://github.com/Jiehong/TW-fonts/archive/b30ae75e9dc299afd61e31cfd43f7a0a157dfb1f.zip";
url = "https://github.com/Jiehong/TW-fonts/archive/${version}.zip";

postFetch = ''
mkdir -p $out/share/fonts
unzip -j $downloadedFile TW-fonts-b30ae75e9dc299afd61e31cfd43f7a0a157dfb1f/\*.ttf -d $out/share/fonts/truetype
unzip -j $downloadedFile TW-fonts-${version}/\*.ttf -d $out/share/fonts/truetype
'';

sha256 = "0khgxih9z6pqf7pdp21xjp24wb9ygsrdcmzpjb7vr9x8n78i1fbs";
sha256 = "1jd3gjjfa4vadp6d499n0irz5b22z611kd7q5qgqf6s2fwbxfhiz";

meta = with stdenv.lib; {
homepage = "http://www.moe.gov.tw/";
description = "Set of KAI and SONG fonts from the Ministry of Education of Taiwan";
version = version;
longDescription = ''
Installs 2 TTF fonts: MOESongUN and TW-MOE-Std-Kai.
Both are provided by the Ministry of Education of Taiwan; each character's shape