parent
238db8df98
commit
d77b0bb6a5
|
@ -1,21 +1,25 @@
|
|||
{ lib, fetchFromGitHub }:
|
||||
|
||||
let
|
||||
fetchFromGitHub rec {
|
||||
pname = "montserrat";
|
||||
version = "7.222";
|
||||
in fetchFromGitHub {
|
||||
name = "${pname}-${version}";
|
||||
|
||||
owner = "JulietaUla";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-MeNnc1e5X5f0JyaLY6fX22rytHkvL++eM2ygsdlGMv0=";
|
||||
|
||||
postFetch = ''
|
||||
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
|
||||
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
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
|
|
Loading…
Reference in a new issue