2021-02-05 17:12:51 +00:00
|
|
|
{ lib, fetchzip }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
let
|
2021-12-19 01:06:50 +00:00
|
|
|
version = "6.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
in fetchzip {
|
|
|
|
name = "fira-code-${version}";
|
|
|
|
|
2020-05-29 06:06:01 +00:00
|
|
|
url = "https://github.com/tonsky/FiraCode/releases/download/${version}/Fira_Code_v${version}.zip";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
# only extract the variable font because everything else is a duplicate
|
2020-04-24 23:36:52 +00:00
|
|
|
postFetch = ''
|
|
|
|
mkdir -p $out/share/fonts
|
2021-01-15 22:18:51 +00:00
|
|
|
unzip -j $downloadedFile '*-VF.ttf' -d $out/share/fonts/truetype
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2021-12-19 01:06:50 +00:00
|
|
|
sha256 = "0l02ivxz3jbk0rhgaq83cqarqxr07xgp7n27l0fh8fbgxwi52djl";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|