2017-08-11 14:42:16 +01:00
|
|
|
{ stdenv, fetchzip }:
|
2015-07-08 16:39:05 +01:00
|
|
|
|
2017-08-11 14:42:16 +01:00
|
|
|
let
|
2016-11-09 15:32:10 +00:00
|
|
|
version = "1.204";
|
2017-08-11 14:42:16 +01:00
|
|
|
in fetchzip {
|
|
|
|
name = "fira-code-${version}";
|
2015-07-08 16:39:05 +01:00
|
|
|
|
2017-08-11 14:42:16 +01:00
|
|
|
url = "https://github.com/tonsky/FiraCode/releases/download/${version}/FiraCode_${version}.zip";
|
2015-07-08 16:39:05 +01:00
|
|
|
|
2017-08-11 14:42:16 +01:00
|
|
|
postFetch = ''
|
|
|
|
mkdir -p $out/share/fonts
|
|
|
|
unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype
|
2015-07-08 16:39:05 +01:00
|
|
|
'';
|
|
|
|
|
2017-08-11 14:42:16 +01:00
|
|
|
sha256 = "0gngbnrq42ysz13w3s227ghv1yigw399r3w2415ipb5pba8vipad";
|
|
|
|
|
2015-07-08 16:39:05 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://github.com/tonsky/FiraCode;
|
|
|
|
description = "Monospace font with programming ligatures";
|
|
|
|
longDescription = ''
|
|
|
|
Fira Code is a monospace font extending the Fira Mono font with
|
|
|
|
a set of ligatures for common programming multi-character
|
|
|
|
combinations.
|
|
|
|
'';
|
|
|
|
license = licenses.ofl;
|
|
|
|
maintainers = [ maintainers.rycee ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|