depot/third_party/nixpkgs/pkgs/data/fonts/league-spartan/default.nix
Default email 4bac34ead1 Project import generated by Copybara.
GitOrigin-RevId: 724bfc0892363087709bd3a5a1666296759154b1
2023-02-09 12:40:11 +01:00

40 lines
1.6 KiB
Nix
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{ 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 ];
};
})