From 5b856693c1738227c6ef52aacec6e3359ad511c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kier=C3=A1n=20Meinhardt?= Date: Thu, 14 Apr 2022 22:00:34 +0200 Subject: [PATCH] galatia-sil: init at 2.1 --- pkgs/data/fonts/galatia-sil/default.nix | 29 +++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 31 insertions(+) create mode 100644 pkgs/data/fonts/galatia-sil/default.nix diff --git a/pkgs/data/fonts/galatia-sil/default.nix b/pkgs/data/fonts/galatia-sil/default.nix new file mode 100644 index 000000000000..99ae58020053 --- /dev/null +++ b/pkgs/data/fonts/galatia-sil/default.nix @@ -0,0 +1,29 @@ +{ lib, fetchzip }: + +let + version = "2.1"; +in + fetchzip rec { + name = "galatia-sil-${version}"; + + url = "https://software.sil.org/downloads/r/galatia/GalatiaSIL-${version}.zip"; + + postFetch = '' + mkdir -p $out/share/{doc,fonts} + unzip -j $downloadedFile \*.ttf -d $out/share/fonts/truetype + unzip -j $downloadedFile \*OFL.txt \*OFL-FAQ.txt \*FONTLOG.txt -d "$out/share/doc/${name}" + ''; + + sha256 = "sha256-zLL/7LMcJul2LilhEafpvm+tiYlgv1y1jj85VvG+wiI="; + + meta = with lib; { + homepage = "https://software.sil.org/galatia"; + description = "Font designed to support Biblical Polytonic Greek"; + longDescription = '' + Galatia SIL, designed to support Biblical Polytonic Greek, is a Unicode 3.1 font released under the SIL Open Font License. The font supports precomposed characters rather than decomposed characters. Thus, you must use a keyboard that outputs NFC encoding (precomposed). + ''; + license = licenses.ofl; + platforms = platforms.all; + maintainers = [ maintainers.kmein ]; + }; + } diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 83275948fd9a..57054af255ef 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -24189,6 +24189,8 @@ with pkgs; g15daemon = callPackage ../os-specific/linux/g15daemon {}; + galatia-sil = callPackage ../data/fonts/galatia-sil { }; + gentium = callPackage ../data/fonts/gentium {}; gentium-book-basic = callPackage ../data/fonts/gentium-book-basic {};