league-of-moveable-type: fix raleway integration

The raleway fonts need to be copied from their /share folder to be
included properly.
They are also `.otf`-fonts, so they should live in `opentype` folders.
This commit is contained in:
Profpatsch 2016-10-19 15:21:37 +02:00
parent fc19902260
commit d1c2341c89
2 changed files with 6 additions and 4 deletions

View File

@ -21,8 +21,10 @@ stdenv.mkDerivation rec {
sourceRoot = ".";
installPhase = ''
mkdir -p $out/share/fonts/truetype
cp */*.otf $out/share/fonts/truetype
mkdir -p $out/share/fonts/opentype
cp */*.otf $out/share/fonts/opentype
# for Raleway, where the fonts are already in /share/…
cp */share/fonts/opentype/*.otf $out/share/fonts/opentype
'';
meta = {

View File

@ -13,8 +13,8 @@ stdenv.mkDerivation rec {
dontBuild = true;
installPhase = ''
mkdir -p $out/share/fonts/truetype
cp "$src/fonts/OTF v3.000 Fontlab"/*.otf $out/share/fonts/truetype
mkdir -p $out/share/fonts/opentype
cp "$src/fonts/OTF v3.000 Fontlab"/*.otf $out/share/fonts/opentype
find -type f -maxdepth 1 -exec cp "{}" $out/ \;
'';