add source-han-sans-japanese, source-han-sans-korean, source-han-sans-simplified-chinese, source-han-sans-traditional-chinese: An open source Pan-CJK typeface

This commit is contained in:
taku0 2014-07-16 22:41:32 +09:00 committed by Eelco Dolstra
parent 63d259df32
commit 4ed2acc148
6 changed files with 55 additions and 0 deletions

View File

@ -0,0 +1,26 @@
{version ? "1.000", prefix, url, sha256, description}:
{stdenv, fetchurl, unzip}:
stdenv.mkDerivation rec {
inherit version;
name = "${prefix}-${version}";
src = fetchurl {
inherit url sha256;
};
buildInputs = [ unzip ];
installPhase = ''
mkdir -p $out/share/fonts/truetype
cp $( find . -name '*.otf' ) $out/share/fonts/truetype
'';
meta = {
inherit description;
homepage = http://sourceforge.net/adobe/source-han-sans/;
license = stdenv.lib.licenses.asl20;
};
}

View File

@ -0,0 +1,6 @@
import ./base.nix {
prefix = "SourceHanSansJP";
url = "mirror://sourceforge/source-han-sans.adobe/SourceHanSansJP-1.000.zip";
sha256 = "c5930036660bea22ffceaa9e2df765776494800d330a59be7936ab3c763c4c82";
description = "Japanese subset of an open source Pan-CJK typeface";
}

View File

@ -0,0 +1,6 @@
import ./base.nix {
prefix = "SourceHanSansKR";
url = "mirror://sourceforge/source-han-sans.adobe/SourceHanSansKR-1.000.zip";
sha256 = "8eed4ad092fcf640e44f73ba510e0ed1c1cabf79776f68d02820734bbba21cf8";
description = "Korean subset of an open source Pan-CJK typeface";
}

View File

@ -0,0 +1,6 @@
import ./base.nix {
prefix = "SourceHanSansCN";
url = "mirror://sourceforge/source-han-sans.adobe/SourceHanSansCN-1.000.zip";
sha256 = "88117aa8f8b4ab65d6f7a919a5e1b06d6c00f75b1abecccf120246536123754d";
description = "Simplified Chinese subset of an open source Pan-CJK typeface";
}

View File

@ -0,0 +1,6 @@
import ./base.nix {
prefix = "SourceHanSansTWHK";
url = "mirror://sourceforge/source-han-sans.adobe/SourceHanSansTWHK-1.000.zip";
sha256 = "2371a726757a51322243b1ed7a9fde562621b0813b5e6d6443e06847ad7bbd20";
description = "Traditional Chinese subset of an open source Pan-CJK typeface";
}

View File

@ -8025,6 +8025,11 @@ let
sourceCodePro = callPackage ../data/fonts/source-code-pro {};
source-han-sans-japanese = callPackage ../data/fonts/source-han-sans/japanese.nix {};
source-han-sans-korean = callPackage ../data/fonts/source-han-sans/korean.nix {};
source-han-sans-simplified-chinese = callPackage ../data/fonts/source-han-sans/simplified-chinese.nix {};
source-han-sans-traditional-chinese = callPackage ../data/fonts/source-han-sans/traditional-chinese.nix {};
tango-icon-theme = callPackage ../data/icons/tango-icon-theme { };
themes = name: import (../data/misc/themes + ("/" + name + ".nix")) {