nixpkgs/pkgs/data/fonts/symbola/default.nix

40 lines
1.2 KiB
Nix
Raw Normal View History

{stdenv, fetchurl, unzip }:
2014-02-28 18:55:07 +01:00
stdenv.mkDerivation rec {
2014-09-03 09:09:05 +02:00
name = "symbola-7.17";
2014-02-28 18:55:07 +01:00
src = fetchurl {
url = "http://users.teilar.gr/~g1951d/Symbola.zip";
sha256 = "19q5wcqk1rz8ps7jvvx1rai6x8ais79z71sm8d36hvsk2vr135al";
2014-02-28 18:55:07 +01:00
};
docs_pdf = fetchurl {
url = "http://users.teilar.gr/~g1951d/Symbola.pdf";
sha256 = "11h2202p1p4np4nv5m8k41wk7431p2m35sjpmbi1ygizakkbla3p";
2014-02-28 18:55:07 +01:00
};
buildInputs = [ unzip ];
2014-02-28 18:55:07 +01:00
phases = [ "installPhase" ];
installPhase = ''
unzip ${src}
2014-02-28 18:55:07 +01:00
mkdir -p $out/share/fonts/truetype
cp -v Symbola.ttf $out/share/fonts/truetype/
cp -v Symbola_hint.ttf $out/share/fonts/truetype/
2014-02-28 18:55:07 +01:00
mkdir -p "$out/doc/${name}"
cp -v Symbola.docx "$out/doc/${name}/"
cp -v Symbola.htm "$out/doc/${name}/"
2014-02-28 18:55:07 +01:00
cp -v "$docs_pdf" "$out/doc/${name}/${docs_pdf.name}"
'';
meta = {
description = "Basic Latin, Greek, Cyrillic and many Symbol blocks of Unicode";
2014-02-28 18:55:07 +01:00
# 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;
2014-02-28 18:55:07 +01:00
homepage = http://users.teilar.gr/~g1951d/;
};
}