forked from mirrors/nixpkgs
Merge pull request #169655 from serge-belov/sb-nixpkgs-khmeros
Add Khmeros TrueType font for Khmer language
This commit is contained in:
commit
c29ff4b28b
27
pkgs/data/fonts/khmeros/default.nix
Normal file
27
pkgs/data/fonts/khmeros/default.nix
Normal file
|
@ -0,0 +1,27 @@
|
|||
{ fetchzip, lib }:
|
||||
|
||||
let
|
||||
version = "5.0";
|
||||
in
|
||||
fetchzip {
|
||||
name = "khmeros-${version}";
|
||||
url = "mirror://debian/pool/main/f/fonts-khmeros/fonts-khmeros_${version}.orig.tar.xz";
|
||||
sha256 = "sha256-pS+7RQbGwlBxdCfSVxHmARCAkZrZttwYNlV/CrxqI+w=";
|
||||
|
||||
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 = "KhmerOS Unicode fonts for the Khmer language";
|
||||
homepage = "http://www.khmeros.info/";
|
||||
license = licenses.gpl2Plus;
|
||||
maintainers = with lib.maintainers; [ serge ];
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
|
@ -24385,6 +24385,8 @@ with pkgs;
|
|||
|
||||
kde-rounded-corners = libsForQt5.callPackage ../data/themes/kwin-decorations/kde-rounded-corners { };
|
||||
|
||||
khmeros = callPackage ../data/fonts/khmeros {};
|
||||
|
||||
kochi-substitute = callPackage ../data/fonts/kochi-substitute {};
|
||||
|
||||
kochi-substitute-naga10 = callPackage ../data/fonts/kochi-substitute-naga10 {};
|
||||
|
|
Loading…
Reference in a new issue