nixpkgs-suyu/pkgs/data/fonts/montserrat/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
898 B
Nix
Raw Normal View History

2021-02-18 09:56:17 +01:00
{ lib, fetchFromGitHub }:
2016-02-27 23:22:50 +01:00
2017-08-10 21:43:49 +02:00
let
2021-02-18 09:56:17 +01:00
pname = "montserrat";
2022-02-15 12:05:19 +01:00
version = "7.222";
2021-02-18 09:56:17 +01:00
in fetchFromGitHub {
name = "${pname}-${version}";
owner = "JulietaUla";
repo = pname;
rev = "v${version}";
2022-02-15 12:05:19 +01:00
sha256 = "sha256-MeNnc1e5X5f0JyaLY6fX22rytHkvL++eM2ygsdlGMv0=";
2016-02-27 23:22:50 +01:00
2017-08-10 21:43:49 +02:00
postFetch = ''
2021-02-18 09:56:17 +01:00
tar xf $downloadedFile --strip 1
install -Dm 444 fonts/otf/*.otf -t $out/share/fonts/otf
install -Dm 444 fonts/ttf/*.ttf -t $out/share/fonts/ttf
install -Dm 444 fonts/webfonts/*.woff -t $out/share/fonts/woff
install -Dm 444 fonts/webfonts/*.woff2 -t $out/share/fonts/woff2
2016-02-27 23:22:50 +01:00
'';
meta = with lib; {
2016-02-27 23:22:50 +01:00
description = "A geometric sans serif font with extended latin support (Regular, Alternates, Subrayada)";
2021-02-18 09:56:17 +01:00
homepage = "https://www.fontspace.com/julieta-ulanovsky/montserrat";
license = licenses.ofl;
platforms = platforms.all;
maintainers = with maintainers; [ scolobb jk ];
2016-02-27 23:22:50 +01:00
};
}