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:
parent
63d259df32
commit
4ed2acc148
26
pkgs/data/fonts/source-han-sans/base.nix
Normal file
26
pkgs/data/fonts/source-han-sans/base.nix
Normal 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;
|
||||||
|
};
|
||||||
|
}
|
6
pkgs/data/fonts/source-han-sans/japanese.nix
Normal file
6
pkgs/data/fonts/source-han-sans/japanese.nix
Normal 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";
|
||||||
|
}
|
6
pkgs/data/fonts/source-han-sans/korean.nix
Normal file
6
pkgs/data/fonts/source-han-sans/korean.nix
Normal 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";
|
||||||
|
}
|
6
pkgs/data/fonts/source-han-sans/simplified-chinese.nix
Normal file
6
pkgs/data/fonts/source-han-sans/simplified-chinese.nix
Normal 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";
|
||||||
|
}
|
6
pkgs/data/fonts/source-han-sans/traditional-chinese.nix
Normal file
6
pkgs/data/fonts/source-han-sans/traditional-chinese.nix
Normal 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";
|
||||||
|
}
|
@ -8025,6 +8025,11 @@ let
|
|||||||
|
|
||||||
sourceCodePro = callPackage ../data/fonts/source-code-pro {};
|
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 { };
|
tango-icon-theme = callPackage ../data/icons/tango-icon-theme { };
|
||||||
|
|
||||||
themes = name: import (../data/misc/themes + ("/" + name + ".nix")) {
|
themes = name: import (../data/misc/themes + ("/" + name + ".nix")) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user