Merge pull request #169698 from serge-belov/sb-nixpkgs-nanum

Add Korean Nanum fonts
This commit is contained in:
Sandro 2022-05-06 22:43:40 +02:00 committed by GitHub
commit c547d11572
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 29 additions and 0 deletions

View 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;
};
}

View file

@ -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 { };