@@ -0,0 +1,59 @@
1+{stdenv, fetchFromGitHub, fontforge}:
2+
3+stdenv.mkDerivation rec {
4+ name = "inconsolata-lgc-${version}";
5+ version = "git-2015-04-18";
6+
7+ src = fetchFromGitHub {
8+ owner = "MihailJP";
9+ repo = "Inconsolata-LGC";
10+ rev = "30bbc1bd82502bf76f1cc5553f17388da2ba20e7";
11+ sha256 = "02af2gpksdxdp7zfh5qhgfqzc6gvah9v4ph818irwhs9gcq8833c";
12+ };
13+
14+ buildInputs = [ fontforge ];
15+
16+ installPhase = ''
17+ mkdir -p $out/share/fonts/truetype
18+ cp -v $(find . -name '*.ttf') $out/share/fonts/truetype
19+
20+ mkdir -p $out/share/fonts/opentype
21+ cp -v $(find . -name '*.otf') $out/share/fonts/opentype
22+
23+ mkdir -p "$out/doc/${name}"
24+ cp -v AUTHORS ChangeLog COPYING License.txt README "$out/doc/${name}" || true
25+ '';
26+
27+ meta = {
28+ description = "Fork of Inconsolata font, with proper support of Cyrillic and Greek";
29+ longDescription = ''
30+ Inconsolata is one of the most suitable font for programmers created by Raph
31+ Levien. Since the original Inconsolata does not contain Cyrillic alphabet,
32+ it was slightly inconvenient for not a few programmers from Russia.
33+
34+ Inconsolata LGC is a modified version of Inconsolata with added the Cyrillic
35+ alphabet which directly descends from Inconsolata Hellenic supporting modern
36+ Greek.
37+
38+ Inconsolata LGC is licensed under SIL OFL.
39+
40+
41+ Inconsolata LGC changes:
42+ * Cyrillic glyphs added.
43+ * Italic and Bold font added.
44+
45+ Changes inherited from Inconsolata Hellenic:
46+ * Greek glyphs.
47+
48+ Changes inherited from Inconsolata-dz:
49+ * Straight quotation marks.
50+ '';
51+
52+ # See `License.txt' for details.
53+ license = stdenv.lib.licenses.ofl;
54+ homepage = https://github.com/MihailJP/Inconsolata-LGC;
55+ maintainers = [
56+ stdenv.lib.maintainers.avnik
57+ ];
58+ };
59+}