Symbola: fix download url's, adjust installPhase and meta
This commit is contained in:
parent
685cded7b5
commit
d8727a927a
|
@ -1,40 +1,39 @@
|
||||||
{stdenv, fetchurl}:
|
{stdenv, fetchurl, unzip }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "symbola-7.12";
|
name = "symbola-7.12";
|
||||||
|
|
||||||
ttf = fetchurl {
|
src = fetchurl {
|
||||||
url = "http://users.teilar.gr/~g1951d/Symbola.ttf";
|
url = "http://users.teilar.gr/~g1951d/Symbola.zip";
|
||||||
sha256 = "7acc058bd4e56cc986b2a46420520f59be402c3565c202b5dcebca7f3bfd8b5a";
|
sha256 = "19q5wcqk1rz8ps7jvvx1rai6x8ais79z71sm8d36hvsk2vr135al";
|
||||||
};
|
};
|
||||||
docs_pdf = fetchurl {
|
docs_pdf = fetchurl {
|
||||||
url = "http://users.teilar.gr/~g1951d/Symbola.pdf";
|
url = "http://users.teilar.gr/~g1951d/Symbola.pdf";
|
||||||
sha256 = "11bb082ba5c2780a6f94a9bcddf4f314a54e2650bb63ce3081d1dc867c5e6843";
|
sha256 = "11h2202p1p4np4nv5m8k41wk7431p2m35sjpmbi1ygizakkbla3p";
|
||||||
};
|
|
||||||
docs_docx = fetchurl {
|
|
||||||
url = "http://users.teilar.gr/~g1951d/Symbola.docx";
|
|
||||||
sha256 = "4f0ab494e1e5a7aac147aa7bb8b8bdba7278aee2da942a35f995feb9051515b9";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
buildInputs = [ unzip ];
|
||||||
|
|
||||||
phases = [ "installPhase" ];
|
phases = [ "installPhase" ];
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
unzip ${src}
|
||||||
mkdir -p $out/share/fonts/truetype
|
mkdir -p $out/share/fonts/truetype
|
||||||
cp -v "$ttf" $out/share/fonts/truetype/"${ttf.name}"
|
cp -v Symbola.ttf $out/share/fonts/truetype/
|
||||||
|
cp -v Symbola_hint.ttf $out/share/fonts/truetype/
|
||||||
|
|
||||||
mkdir -p "$out/doc/${name}"
|
mkdir -p "$out/doc/${name}"
|
||||||
|
cp -v Symbola.docx "$out/doc/${name}/"
|
||||||
|
cp -v Symbola.htm "$out/doc/${name}/"
|
||||||
cp -v "$docs_pdf" "$out/doc/${name}/${docs_pdf.name}"
|
cp -v "$docs_pdf" "$out/doc/${name}/${docs_pdf.name}"
|
||||||
cp -v "$docs_docx" "$out/doc/${name}/${docs_docx.name}"
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Basic Latin, Greek, Cyrillic and many Symbol blocks of Unicode...";
|
description = "Basic Latin, Greek, Cyrillic and many Symbol blocks of Unicode";
|
||||||
|
|
||||||
# In lieu of a licence:
|
# In lieu of a licence:
|
||||||
# Fonts in this site are offered free for any use;
|
# Fonts in this site are offered free for any use;
|
||||||
# they may be installed, embedded, opened, edited, modified, regenerated, posted, packaged and redistributed.
|
# they may be installed, embedded, opened, edited, modified, regenerated, posted, packaged and redistributed.
|
||||||
license = "Unicode Fonts for Ancient Scripts";
|
license = stdenv.lib.licenses.free;
|
||||||
|
|
||||||
homepage = http://users.teilar.gr/~g1951d/;
|
homepage = http://users.teilar.gr/~g1951d/;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue