nixpkgs/pkgs/data/fonts/inconsolata/default.nix

30 lines
852 B
Nix
Raw Normal View History

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