Skip to content

Commit

Permalink
inconsolata: revert to working unstable version
Browse files Browse the repository at this point in the history
An update to an unstable version of google-fonts broke the Inconsolata
monospace font in programs that use xft such as urxvt. This patch reverts
some inconsolata back to a working version.

cc @jakubgs @06kellyjac @petabyteboy @tu-maurice

Signed-off-by: William Casarin <jb55@jb55.com>
  • Loading branch information
jb55 committed Sep 4, 2021
1 parent 22fb1d3 commit 97256b8
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions pkgs/data/fonts/inconsolata/default.nix
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
{ lib, stdenv, google-fonts }:
{ lib, stdenv, fetchFromGitHub }:

stdenv.mkDerivation {
pname = "inconsolata";
version = "unstable-2021-01-19";

inherit (google-fonts) src version;
src = fetchFromGitHub {
owner = "google";
repo = "fonts";
rev = "f113126dc4b9b1473d9354a86129c9d7b837aa1a";
sha256 = "0safw5prpa63mqcyfw3gr3a535w4c9hg5ayw5pkppiwil7n3pyxs";
};

installPhase = ''
install -m644 --target $out/share/fonts/truetype/inconsolata -D $src/ofl/inconsolata/static/*.ttf
install -m644 --target $out/share/fonts/truetype/inconsolata -D $src/ofl/inconsolata/*.ttf
'';

meta = with lib; {
Expand Down

0 comments on commit 97256b8

Please sign in to comment.