2015-06-12 00:17:53 +02:00
|
|
|
{ stdenv, fetchurl }:
|
2010-11-24 12:19:38 +01:00
|
|
|
|
2015-06-12 00:17:53 +02:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "inconsolata-${version}";
|
|
|
|
version = "1.010";
|
2010-11-24 12:19:38 +01:00
|
|
|
|
2015-06-12 00:17:53 +02:00
|
|
|
src = fetchurl {
|
|
|
|
url = "http://www.levien.com/type/myfonts/Inconsolata.otf";
|
|
|
|
sha256 = "06js6znbcf7swn8y3b8ki416bz96ay7d3yvddqnvi88lqhbfcq8m";
|
|
|
|
};
|
2010-11-24 12:19:38 +01:00
|
|
|
|
2015-06-12 00:17:53 +02:00
|
|
|
phases = [ "installPhase" ];
|
2010-11-24 12:19:38 +01:00
|
|
|
|
2015-06-12 00:17:53 +02:00
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/share/fonts/opentype
|
|
|
|
cp -v $src $out/share/fonts/opentype/inconsolata.otf
|
|
|
|
'';
|
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";
|
2015-06-12 00:17:53 +02:00
|
|
|
maintainers = with maintainers; [ raskin rycee ];
|
|
|
|
license = licenses.ofl;
|
|
|
|
platforms = platforms.all;
|
2010-11-24 12:19:38 +01:00
|
|
|
};
|
2015-06-12 00:17:53 +02:00
|
|
|
}
|