2021-02-19 19:06:45 +00:00
|
|
|
{ lib, fetchFromGitHub }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-11-21 17:40:18 +00:00
|
|
|
fetchFromGitHub rec {
|
2021-02-19 19:06:45 +00:00
|
|
|
pname = "montserrat";
|
2022-02-20 05:27:41 +00:00
|
|
|
version = "7.222";
|
2022-11-21 17:40:18 +00:00
|
|
|
|
2021-02-19 19:06:45 +00:00
|
|
|
owner = "JulietaUla";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-02-20 05:27:41 +00:00
|
|
|
sha256 = "sha256-MeNnc1e5X5f0JyaLY6fX22rytHkvL++eM2ygsdlGMv0=";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
postFetch = ''
|
2022-11-21 17:40:18 +00:00
|
|
|
mkdir -p $out/share/fonts/{otf,ttf,woff,woff2}
|
|
|
|
|
|
|
|
mv $out/fonts/otf/*.otf $out/share/fonts/otf
|
|
|
|
mv $out/fonts/ttf/*.ttf $out/share/fonts/ttf
|
|
|
|
mv $out/fonts/webfonts/*.woff $out/share/fonts/woff
|
|
|
|
mv $out/fonts/webfonts/*.woff2 $out/share/fonts/woff2
|
|
|
|
|
|
|
|
shopt -s extglob dotglob
|
|
|
|
rm -rf $out/!(share)
|
|
|
|
shopt -u extglob dotglob
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A geometric sans serif font with extended latin support (Regular, Alternates, Subrayada)";
|
2021-02-19 19:06:45 +00:00
|
|
|
homepage = "https://www.fontspace.com/julieta-ulanovsky/montserrat";
|
|
|
|
license = licenses.ofl;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ scolobb jk ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|