about summary refs log tree commit diff
path: root/pkgs/data/fonts/sorts-mill-goudy
diff options
context:
space:
mode:
authorMinijackson <minijackson@riseup.net>2023-01-21 14:55:44 +0100
committerMinijackson <minijackson@riseup.net>2023-02-04 14:57:56 +0100
commit2d34ea393fd9a3311ec9bfaec69489639a002541 (patch)
tree8ae7dce710e407f7cf4069b3d0012e983b786ba5 /pkgs/data/fonts/sorts-mill-goudy
parentc60d471bdfc03e8bb7c92408a12b22633966ca80 (diff)
sorts-mill-goudy: init at 2011-05-25
Diffstat (limited to 'pkgs/data/fonts/sorts-mill-goudy')
-rw-r--r--pkgs/data/fonts/sorts-mill-goudy/default.nix36
1 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/data/fonts/sorts-mill-goudy/default.nix b/pkgs/data/fonts/sorts-mill-goudy/default.nix
new file mode 100644
index 0000000000000..432740a9267da
--- /dev/null
+++ b/pkgs/data/fonts/sorts-mill-goudy/default.nix
@@ -0,0 +1,36 @@
+{ lib, fetchFromGitHub, stdenvNoCC }:
+
+stdenvNoCC.mkDerivation (self: {
+  pname = "sorts-mill-goudy";
+  version = "2011-05-25";
+
+  src = fetchFromGitHub {
+    owner = "theleagueof";
+    repo = self.pname;
+    rev = "06072890c7b05f274215a24f17449655ccb2c8af";
+    hash = "sha256-NEfLBJatUmdUL5gJEimJHZfOd1OtI7pxTN97eWMODyM=";
+  };
+
+  installPhase = ''
+    runHook preInstall
+
+    install -D -m444 -t $out/share/fonts/truetype $src/*.ttf
+    install -D -m444 -t $out/share/fonts/opentype $src/*.otf
+
+    runHook postInstall
+  '';
+
+  meta = {
+    description = "A ‘revival’ of Goudy Oldstyle and Italic";
+    longDescription = ''
+      A 'revival' of Goudy Oldstyle and Italic, with features including small
+      capitals (in the roman only), oldstyle and lining figures, superscripts
+      and subscripts, fractions, ligatures, class-based kerning, case-sensitive
+      forms, and capital spacing. There is support for many languages using
+      latin scripts.
+    '';
+    homepage = "https://www.theleagueofmoveabletype.com/sorts-mill-goudy";
+    license = lib.licenses.ofl;
+    maintainers = with lib.maintainers; [ minijackson ];
+  };
+})