2021-01-25 08:26:54 +00:00
|
|
|
{ lib, fetchzip }:
|
2015-07-08 15:39:05 +00:00
|
|
|
|
2017-08-11 13:42:16 +00:00
|
|
|
let
|
2021-11-29 15:11:53 +00:00
|
|
|
version = "6";
|
2017-08-11 13:42:16 +00:00
|
|
|
in fetchzip {
|
|
|
|
name = "fira-code-${version}";
|
2015-07-08 15:39:05 +00:00
|
|
|
|
2020-05-18 20:59:48 +00:00
|
|
|
url = "https://github.com/tonsky/FiraCode/releases/download/${version}/Fira_Code_v${version}.zip";
|
2015-07-08 15:39:05 +00:00
|
|
|
|
2021-01-10 04:24:55 +00:00
|
|
|
# only extract the variable font because everything else is a duplicate
|
2017-08-11 13:42:16 +00:00
|
|
|
postFetch = ''
|
|
|
|
mkdir -p $out/share/fonts
|
2021-01-10 04:24:55 +00:00
|
|
|
unzip -j $downloadedFile '*-VF.ttf' -d $out/share/fonts/truetype
|
2015-07-08 15:39:05 +00:00
|
|
|
'';
|
|
|
|
|
2021-11-29 15:11:53 +00:00
|
|
|
sha256 = "h2Q63rT26SxXeZ76CRCcFg+NfDAc0IgYaYD2ok09Jh4=";
|
2017-08-11 13:42:16 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-09 17:18:00 +00:00
|
|
|
homepage = "https://github.com/tonsky/FiraCode";
|
2015-07-08 15:39:05 +00: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;
|
|
|
|
};
|
|
|
|
}
|