2021-01-11 08:54:33 +01:00
|
|
|
{lib, stdenv, fetchFromGitHub, fontforge}:
|
2015-09-21 11:25:39 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "inconsolata-lgc";
|
2017-05-09 17:05:01 +02:00
|
|
|
version = "1.3";
|
2015-09-21 11:25:39 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "MihailJP";
|
|
|
|
repo = "Inconsolata-LGC";
|
2017-05-09 17:05:01 +02:00
|
|
|
rev = "8adfef7a7316fcd2e9a5857054c7cdb2babeb35d";
|
|
|
|
sha256 = "0dqjj3mlc28s8ljnph6l086b4j9r5dly4fldq59crycwys72zzai";
|
2015-09-21 11:25:39 +02:00
|
|
|
};
|
|
|
|
|
2018-01-10 01:27:23 +01:00
|
|
|
nativeBuildInputs = [ fontforge ];
|
2015-09-21 11:25:39 +02:00
|
|
|
|
|
|
|
installPhase = ''
|
2019-05-13 05:54:44 +02:00
|
|
|
find . -name '*.ttf' -exec install -m444 -Dt $out/share/fonts/truetype {} \;
|
|
|
|
find . -name '*.otf' -exec install -m444 -Dt $out/share/fonts/opentype {} \;
|
2019-08-15 14:41:18 +02:00
|
|
|
install -m444 -Dt $out/share/doc/${pname}-${version} LICENSE README
|
2015-09-21 11:25:39 +02:00
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2015-09-21 11:25:39 +02:00
|
|
|
description = "Fork of Inconsolata font, with proper support of Cyrillic and Greek";
|
|
|
|
longDescription = ''
|
|
|
|
Inconsolata is one of the most suitable font for programmers created by Raph
|
|
|
|
Levien. Since the original Inconsolata does not contain Cyrillic alphabet,
|
|
|
|
it was slightly inconvenient for not a few programmers from Russia.
|
|
|
|
|
|
|
|
Inconsolata LGC is a modified version of Inconsolata with added the Cyrillic
|
|
|
|
alphabet which directly descends from Inconsolata Hellenic supporting modern
|
|
|
|
Greek.
|
|
|
|
|
|
|
|
Inconsolata LGC is licensed under SIL OFL.
|
|
|
|
|
|
|
|
|
|
|
|
Inconsolata LGC changes:
|
|
|
|
* Cyrillic glyphs added.
|
|
|
|
* Italic and Bold font added.
|
|
|
|
|
|
|
|
Changes inherited from Inconsolata Hellenic:
|
|
|
|
* Greek glyphs.
|
|
|
|
|
|
|
|
Changes inherited from Inconsolata-dz:
|
|
|
|
* Straight quotation marks.
|
|
|
|
'';
|
|
|
|
|
|
|
|
# See `License.txt' for details.
|
2017-05-09 17:05:01 +02:00
|
|
|
license = licenses.ofl;
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/MihailJP/Inconsolata-LGC";
|
2017-05-09 17:05:01 +02:00
|
|
|
maintainers = with maintainers; [ avnik rht ];
|
2015-09-21 11:25:39 +02:00
|
|
|
};
|
|
|
|
}
|