From 5b76bb61107d1cda5ba25472b22be8d7d0b32d28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kier=C3=A1n=20Meinhardt?= Date: Sun, 17 Jul 2022 15:38:42 +0200 Subject: [PATCH] cardo: init at 1.04 --- pkgs/data/fonts/cardo/default.nix | 37 +++++++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 39 insertions(+) create mode 100644 pkgs/data/fonts/cardo/default.nix diff --git a/pkgs/data/fonts/cardo/default.nix b/pkgs/data/fonts/cardo/default.nix new file mode 100644 index 000000000000..21763365de30 --- /dev/null +++ b/pkgs/data/fonts/cardo/default.nix @@ -0,0 +1,37 @@ +{ fetchzip, lib }: + +let + version = "1.04"; +in +fetchzip { + name = "cardo-${version}"; + + url = "http://scholarsfonts.net/cardo104.zip"; + + hash = "sha256-eBK6+VQpreWA7jIneNXOcKFcT+cJzhoQ9XXyq93SZ8M="; + stripRoot = false; + + postFetch = '' + mkdir -p $out/share/fonts/truetype + mv $out/*.ttf $out/share/fonts/truetype + rm $out/*.pdf + ''; + + meta = with lib; { + description = "Cardo is a large Unicode font specifically designed for the needs of classicists, Biblical scholars, medievalists, and linguists"; + longDescription = '' + Cardo is a large Unicode font specifically designed for the needs of + classicists, Biblical scholars, medievalists, and linguists. It also + works well for general typesetting in situations where a high-quality Old + Style font is appropriate. Its large character set supports many modern + languages as well as those needed by scholars. Cardo also contains + features that are required for high-quality typography such as ligatures, + text figures (also known as old style numerals), true small capitals and + a variety of punctuation and space characters. + ''; + homepage = "http://scholarsfonts.net/cardofnt.html"; + license = licenses.ofl; + maintainers = with lib.maintainers; [ kmein ]; + platforms = platforms.all; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 0a864aa575a5..9df667dd0edb 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -25997,6 +25997,8 @@ with pkgs; cardboard = callPackage ../applications/window-managers/cardboard { }; + cardo = callPackage ../data/fonts/cardo { }; + cage = callPackage ../applications/window-managers/cage { wlroots = wlroots_0_14; };