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
|
2020-06-14 13:39:46 +01:00
|
|
|
version = "5.2";
|
2017-08-11 14:42:16 +01:00
|
|
|
in fetchzip {
|
|
|
|
name = "fira-code-${version}";
|
2015-07-08 16:39:05 +01:00
|
|
|
|
2020-05-18 21:59:48 +01:00
|
|
|
url = "https://github.com/tonsky/FiraCode/releases/download/${version}/Fira_Code_v${version}.zip";
|
2015-07-08 16:39:05 +01:00
|
|
|
|
2017-08-11 14:42:16 +01:00
|
|
|
postFetch = ''
|
|
|
|
mkdir -p $out/share/fonts
|
2019-09-10 04:10:17 +01:00
|
|
|
unzip -j $downloadedFile \*.ttf -d $out/share/fonts/truetype
|
2015-07-08 16:39:05 +01:00
|
|
|
'';
|
|
|
|
|
2020-06-14 13:39:46 +01:00
|
|
|
sha256 = "16v62wj872ba4w7qxn4l6zjgqh7lrpwh1xax1bp1x9dpz08mnq06";
|
2017-08-11 14:42:16 +01:00
|
|
|
|
2015-07-08 16:39:05 +01:00
|
|
|
meta = with stdenv.lib; {
|
2020-04-09 18:18:00 +01:00
|
|
|
homepage = "https://github.com/tonsky/FiraCode";
|
2015-07-08 16:39:05 +01:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|