diff options
Diffstat (limited to 'nixpkgs/pkgs/data/fonts/inconsolata')
-rw-r--r-- | nixpkgs/pkgs/data/fonts/inconsolata/default.nix | 19 | ||||
-rw-r--r-- | nixpkgs/pkgs/data/fonts/inconsolata/lgc.nix | 62 |
2 files changed, 81 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/data/fonts/inconsolata/default.nix b/nixpkgs/pkgs/data/fonts/inconsolata/default.nix new file mode 100644 index 000000000000..7eded5deab48 --- /dev/null +++ b/nixpkgs/pkgs/data/fonts/inconsolata/default.nix @@ -0,0 +1,19 @@ +{ stdenv, google-fonts }: + +stdenv.mkDerivation rec { + name = "inconsolata-${version}"; + + inherit (google-fonts) src version; + + installPhase = '' + install -m644 --target $out/share/fonts/truetype/inconsolata -D $src/ofl/inconsolata/*.ttf + ''; + + meta = with stdenv.lib; { + homepage = https://www.levien.com/type/myfonts/inconsolata.html; + description = "A monospace font for both screen and print"; + maintainers = with maintainers; [ mikoim raskin rycee ]; + license = licenses.ofl; + platforms = platforms.all; + }; +} diff --git a/nixpkgs/pkgs/data/fonts/inconsolata/lgc.nix b/nixpkgs/pkgs/data/fonts/inconsolata/lgc.nix new file mode 100644 index 000000000000..8563e0e112ac --- /dev/null +++ b/nixpkgs/pkgs/data/fonts/inconsolata/lgc.nix @@ -0,0 +1,62 @@ +{stdenv, fetchFromGitHub, fontforge}: + +stdenv.mkDerivation rec { + name = "inconsolata-lgc-${version}"; + version = "1.3"; + + src = fetchFromGitHub { + owner = "MihailJP"; + repo = "Inconsolata-LGC"; + rev = "8adfef7a7316fcd2e9a5857054c7cdb2babeb35d"; + sha256 = "0dqjj3mlc28s8ljnph6l086b4j9r5dly4fldq59crycwys72zzai"; + }; + + nativeBuildInputs = [ fontforge ]; + + installPhase = '' + mkdir -p $out/share/fonts/truetype + cp -v $(find . -name '*.ttf') $out/share/fonts/truetype + + mkdir -p $out/share/fonts/opentype + cp -v $(find . -name '*.otf') $out/share/fonts/opentype + + mkdir -p "$out/doc/${name}" + cp -v AUTHORS ChangeLog COPYING License.txt README "$out/doc/${name}" || true + ''; + + outputHashAlgo = "sha256"; + outputHashMode = "recursive"; + outputHash = "18brmw0h4hjq1m2l0abwc3zmib4rnfalpywdk68djm711zldxr76"; + + meta = with stdenv.lib; { + 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. + license = licenses.ofl; + homepage = https://github.com/MihailJP/Inconsolata-LGC; + maintainers = with maintainers; [ avnik rht ]; + platforms = platforms.linux; + }; +} |