From fc032281f3afc532385c3c29416080dec9eec0c9 Mon Sep 17 00:00:00 2001 From: Minijackson Date: Sat, 4 Feb 2023 14:46:14 +0100 Subject: [PATCH] league-spartan: init at 2.220 --- pkgs/data/fonts/league-spartan/default.nix | 40 ++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 6 ++-- 2 files changed, 44 insertions(+), 2 deletions(-) create mode 100644 pkgs/data/fonts/league-spartan/default.nix diff --git a/pkgs/data/fonts/league-spartan/default.nix b/pkgs/data/fonts/league-spartan/default.nix new file mode 100644 index 000000000000..599aeca8ca65 --- /dev/null +++ b/pkgs/data/fonts/league-spartan/default.nix @@ -0,0 +1,40 @@ +{ lib, fetchzip, stdenvNoCC }: + +stdenvNoCC.mkDerivation (self: { + pname = "league-spartan"; + version = "2.220"; + + src = fetchzip { + url = "https://github.com/theleagueof/league-spartan/releases/download/${self.version}/LeagueSpartan-${self.version}.tar.xz"; + hash = "sha256-dkvWRYli8vk+E0DkZ2NWCJKfSfdo4jEcGo0puQpFVVc="; + }; + + installPhase = '' + runHook preInstall + + install -D -m444 -t $out/share/fonts/truetype $src/static/TTF/*.ttf + install -D -m444 -t $out/share/fonts/opentype $src/static/OTF/*.otf + + runHook postInstall + ''; + + meta = { + description = "A fantastic new revival of ATF's classic Spartan, a geometric sans-serif that has no problem kicking its enemies in the chest."; + longDescription = '' + A new classic, this is a bold, modern, geometric sans-serif that has no + problem kicking its enemies in the chest. + + Taking a strong influence from ATF's classic Spartan family, we're + starting our own family out with a single strong weight. We've put a few + unique touches into a beautiful, historical typeface, and made sure to + include an extensive characterset – currently totaling over 300 glyphs. + + Over time, the open-source license will allow us expand League Spartan + into a full family, with multiple weights and styles, and we're starting + by releasing our first Bold style for this exciting, modern classic now. + ''; + homepage = "https://www.theleagueofmoveabletype.com/league-spartan"; + license = lib.licenses.ofl; + maintainers = with lib.maintainers; [ minijackson ]; + }; +}) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 534f13663714..23f1ba89f508 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -27276,12 +27276,14 @@ with pkgs; lato = callPackage ../data/fonts/lato {}; - league-of-moveable-type = callPackage ../data/fonts/league-of-moveable-type {}; - league-gothic = callPackage ../data/fonts/league-gothic { }; + league-of-moveable-type = callPackage ../data/fonts/league-of-moveable-type {}; + league-script-number-one = callPackage ../data/fonts/league-script-number-one { }; + league-spartan = callPackage ../data/fonts/league-spartan { }; + ledger-udev-rules = callPackage ../os-specific/linux/ledger-udev-rules {}; inherit (callPackages ../data/fonts/liberation-fonts { })