40 lines
1.2 KiB
Nix
40 lines
1.2 KiB
Nix
{stdenv, fetchurl, unzip }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "symbola-7.21";
|
|
|
|
src = fetchurl {
|
|
url = "http://users.teilar.gr/~g1951d/Symbola.zip";
|
|
sha256 = "0sqmvq8c8wn4xq0p25gd2jfyjqi8jhiycqah19wzq1gqkaaw94nq";
|
|
};
|
|
docs_pdf = fetchurl {
|
|
url = "http://users.teilar.gr/~g1951d/Symbola.pdf";
|
|
sha256 = "0jjjydb6c0glfb6krvdyi9kh5bsx9gz5w66j378bdqgkrvspl0d2";
|
|
};
|
|
|
|
buildInputs = [ unzip ];
|
|
|
|
phases = [ "installPhase" ];
|
|
|
|
installPhase = ''
|
|
unzip ${src}
|
|
mkdir -p $out/share/fonts/truetype
|
|
cp -v Symbola.ttf $out/share/fonts/truetype/
|
|
cp -v Symbola_hint.ttf $out/share/fonts/truetype/
|
|
|
|
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}"
|
|
'';
|
|
|
|
meta = {
|
|
description = "Basic Latin, Greek, Cyrillic and many Symbol blocks of Unicode";
|
|
# In lieu of a licence:
|
|
# Fonts in this site are offered free for any use;
|
|
# they may be installed, embedded, opened, edited, modified, regenerated, posted, packaged and redistributed.
|
|
license = stdenv.lib.licenses.free;
|
|
homepage = http://users.teilar.gr/~g1951d/;
|
|
};
|
|
}
|