diff options
author | alexameen <alex.ameen.tx@gmail.com> | 2020-11-14 19:39:55 -0600 |
---|---|---|
committer | alexameen <alex.ameen.tx@gmail.com> | 2020-11-14 19:39:55 -0600 |
commit | c39f4075532cdb446689f318799e19027b7ac70a (patch) | |
tree | 637cf93c12dbf4db8067b5bae07e8ce9b5381431 /pkgs/data | |
parent | 95bbf889f7e27ea303180416fec779ded960f537 (diff) |
Made AdobeBlank-Regular.ttf available with google-fonts.adobeBlank
Diffstat (limited to 'pkgs/data')
-rw-r--r-- | pkgs/data/fonts/google-fonts/default.nix | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/pkgs/data/fonts/google-fonts/default.nix b/pkgs/data/fonts/google-fonts/default.nix index eabc1713a722..153f37c88e0a 100644 --- a/pkgs/data/fonts/google-fonts/default.nix +++ b/pkgs/data/fonts/google-fonts/default.nix @@ -4,6 +4,8 @@ stdenv.mkDerivation { pname = "google-fonts"; version = "2019-07-14"; + outputs = [ "out" "adobeBlank" ]; + src = fetchFromGitHub { owner = "google"; repo = "fonts"; @@ -30,11 +32,7 @@ stdenv.mkDerivation { rm -rv ofl/comfortaa/*.ttf \ ofl/mavenpro/*.ttf \ ofl/muli/*.ttf \ - ofl/oswald/*.ttf \ - - # This abomination of a font causes crashes with `libfontconfig', - # It has an absurd number of symbols - rm -r ofl/adobeblank/ + ofl/oswald/*.ttf if find . -name "*.ttf" | sed 's|.*/||' | sort | uniq -c | sort -n | grep -v '^.*1 '; then echo "error: duplicate font names" @@ -43,6 +41,9 @@ stdenv.mkDerivation { ''; installPhase = '' + adobeBlankDest=$adobeBlank/share/fonts/truetype + install -m 444 -Dt $adobeBlankDest ofl/adobeblank/AdobeBlank-Regular.ttf + rm -r ofl/adobeblank dest=$out/share/fonts/truetype find . -name '*.ttf' -exec install -m 444 -Dt $dest '{}' + ''; |