diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2022-05-06 23:33:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-06 23:33:43 +0200 |
commit | c29ff4b28bdf2e7c32d2a3790141b9b22a536c90 (patch) | |
tree | 7adcf5aa6c75cfb34407d909eb6bea5f97fab4bc /pkgs/data/fonts | |
parent | 44e2c34b31c0b062939b7b94db50c154cae07add (diff) | |
parent | 777eee14aac4889d591bc85779fcd1a5e8b24783 (diff) |
Merge pull request #169655 from serge-belov/sb-nixpkgs-khmeros
Add Khmeros TrueType font for Khmer language
Diffstat (limited to 'pkgs/data/fonts')
-rw-r--r-- | pkgs/data/fonts/khmeros/default.nix | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/data/fonts/khmeros/default.nix b/pkgs/data/fonts/khmeros/default.nix new file mode 100644 index 0000000000000..28db0d00981dc --- /dev/null +++ b/pkgs/data/fonts/khmeros/default.nix @@ -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; + }; +} |