diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2022-05-06 23:33:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-06 23:33:00 +0200 |
commit | 44e2c34b31c0b062939b7b94db50c154cae07add (patch) | |
tree | 579c98641c8d0c846c7253380591c111629fe2d0 /pkgs/data | |
parent | 0f10a4a3f1c600ed1c0ef21b30242ebe2ab9ffd6 (diff) | |
parent | 666d33933af0905144b2c53c2030e620b8e0fec0 (diff) |
Merge pull request #169668 from serge-belov/sb-nixpkgs-tibetan
Add Tibetan Machine OpenType font
Diffstat (limited to 'pkgs/data')
-rw-r--r-- | pkgs/data/fonts/tibetan-machine/default.nix | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/pkgs/data/fonts/tibetan-machine/default.nix b/pkgs/data/fonts/tibetan-machine/default.nix new file mode 100644 index 0000000000000..67393a9c4ab94 --- /dev/null +++ b/pkgs/data/fonts/tibetan-machine/default.nix @@ -0,0 +1,22 @@ +{ fetchzip, lib }: + +let + version = "1.901b"; +in +fetchzip { + name = "tibetan-machine-${version}"; + url = "mirror://debian/pool/main/f/fonts-tibetan-machine/fonts-tibetan-machine_${version}.orig.tar.bz2"; + sha256 = "sha256-A+RgpFLsP4iTzl0PMRHaNzWGbDR5Qa38lRegNJ96ULo="; + + postFetch = '' + mkdir -p $out/share/fonts + tar xf $downloadedFile --strip-components=1 -C $out/share/fonts ttf-tmuni-${version}/TibMachUni-${version}.ttf + ''; + + meta = with lib; { + description = "Tibetan Machine - an OpenType Tibetan, Dzongkha and Ladakhi font"; + license = licenses.gpl2Plus; + maintainers = with lib.maintainers; [ serge ]; + platforms = platforms.all; + }; +} |