Made AdobeBlank-Regular.ttf available with google-fonts.adobeBlank
This commit is contained in:
parent
95bbf889f7
commit
c39f407553
@ -4,6 +4,8 @@ stdenv.mkDerivation {
|
|||||||
pname = "google-fonts";
|
pname = "google-fonts";
|
||||||
version = "2019-07-14";
|
version = "2019-07-14";
|
||||||
|
|
||||||
|
outputs = [ "out" "adobeBlank" ];
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "google";
|
owner = "google";
|
||||||
repo = "fonts";
|
repo = "fonts";
|
||||||
@ -30,11 +32,7 @@ stdenv.mkDerivation {
|
|||||||
rm -rv ofl/comfortaa/*.ttf \
|
rm -rv ofl/comfortaa/*.ttf \
|
||||||
ofl/mavenpro/*.ttf \
|
ofl/mavenpro/*.ttf \
|
||||||
ofl/muli/*.ttf \
|
ofl/muli/*.ttf \
|
||||||
ofl/oswald/*.ttf \
|
ofl/oswald/*.ttf
|
||||||
|
|
||||||
# This abomination of a font causes crashes with `libfontconfig',
|
|
||||||
# It has an absurd number of symbols
|
|
||||||
rm -r ofl/adobeblank/
|
|
||||||
|
|
||||||
if find . -name "*.ttf" | sed 's|.*/||' | sort | uniq -c | sort -n | grep -v '^.*1 '; then
|
if find . -name "*.ttf" | sed 's|.*/||' | sort | uniq -c | sort -n | grep -v '^.*1 '; then
|
||||||
echo "error: duplicate font names"
|
echo "error: duplicate font names"
|
||||||
@ -43,6 +41,9 @@ stdenv.mkDerivation {
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
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
|
dest=$out/share/fonts/truetype
|
||||||
find . -name '*.ttf' -exec install -m 444 -Dt $dest '{}' +
|
find . -name '*.ttf' -exec install -m 444 -Dt $dest '{}' +
|
||||||
'';
|
'';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user