2017-11-23 08:21:15 +01:00
|
|
|
{ stdenv, fetchFromGitHub }:
|
2010-11-24 12:19:38 +01:00
|
|
|
|
2017-11-23 08:21:15 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2017-08-10 21:43:49 +02:00
|
|
|
name = "inconsolata-${version}";
|
2017-11-23 08:21:15 +01:00
|
|
|
version = "2.001";
|
2010-11-24 12:19:38 +01:00
|
|
|
|
2017-11-23 08:21:15 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "google";
|
|
|
|
repo = "fonts";
|
|
|
|
rev = "4c3e95c802f8f12b78869ff50d552014de63f9c1";
|
|
|
|
sha256 = "1ndmsf4c0k36dakmps0vr7hhg5ss8m7ywja7v55xdrinvli58v2f";
|
|
|
|
};
|
2010-11-24 12:19:38 +01:00
|
|
|
|
2017-11-23 08:21:15 +01:00
|
|
|
installPhase = ''
|
|
|
|
install -m644 --target $out/share/fonts/truetype/inconsolata -D $src/ofl/inconsolata/*.ttf
|
|
|
|
'';
|
2010-11-24 12:19:38 +01:00
|
|
|
|
2017-11-23 08:21:15 +01:00
|
|
|
outputHashAlgo = "sha256";
|
|
|
|
outputHashMode = "recursive";
|
|
|
|
outputHash = "04pdg5lzdid4b0gbzykia2jaiajc6pdbv5r8ml5ya9alyw30xza6";
|
2010-11-24 12:19:38 +01:00
|
|
|
|
2015-06-12 00:17:53 +02:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = http://www.levien.com/type/myfonts/inconsolata.html;
|
2010-11-24 12:19:38 +01:00
|
|
|
description = "A monospace font for both screen and print";
|
2017-11-23 08:21:15 +01:00
|
|
|
maintainers = with maintainers; [ mikoim raskin rycee ];
|
2015-06-12 00:17:53 +02:00
|
|
|
license = licenses.ofl;
|
|
|
|
platforms = platforms.all;
|
2010-11-24 12:19:38 +01:00
|
|
|
};
|
2015-06-12 00:17:53 +02:00
|
|
|
}
|