forked from mirrors/nixpkgs
Merge pull request #169698 from serge-belov/sb-nixpkgs-nanum
Add Korean Nanum fonts
This commit is contained in:
commit
c547d11572
27
pkgs/data/fonts/nanum/default.nix
Normal file
27
pkgs/data/fonts/nanum/default.nix
Normal file
|
@ -0,0 +1,27 @@
|
|||
{ fetchzip, lib }:
|
||||
|
||||
let
|
||||
version = "20170925";
|
||||
in
|
||||
fetchzip {
|
||||
name = "nanum-${version}";
|
||||
url = "mirror://ubuntu/pool/universe/f/fonts-nanum/fonts-nanum_${version}.orig.tar.xz";
|
||||
sha256 = "sha256-lSTeQEuMmlQxiQqrx9tNScifE8nMOUDJF3lCfoAFIJk=";
|
||||
|
||||
postFetch = ''
|
||||
unpackDir="$TMPDIR/unpack"
|
||||
mkdir "$unpackDir"
|
||||
cd "$unpackDir"
|
||||
tar xf "$downloadedFile" --strip-components=1
|
||||
mkdir -p $out/share/fonts
|
||||
cp *.ttf $out/share/fonts
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Nanum Korean font set";
|
||||
homepage = "https://hangeul.naver.com/font";
|
||||
license = licenses.ofl;
|
||||
maintainers = with lib.maintainers; [ serge ];
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
|
@ -24557,6 +24557,8 @@ with pkgs;
|
|||
|
||||
nafees = callPackage ../data/fonts/nafees { };
|
||||
|
||||
nanum = callPackage ../data/fonts/nanum { };
|
||||
|
||||
nanum-gothic-coding = callPackage ../data/fonts/nanum-gothic-coding { };
|
||||
|
||||
national-park-typeface = callPackage ../data/fonts/national-park { };
|
||||
|
|
Loading…
Reference in a new issue