3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/data/fonts/fira-code/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
889 B
Nix
Raw Normal View History

{ lib, fetchzip }:
2015-07-08 16:39:05 +01:00
let
2021-12-08 23:52:55 +00:00
version = "6.2";
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
# only extract the variable font because everything else is a duplicate
postFetch = ''
mkdir -p $out/share/fonts
unzip -j $downloadedFile '*-VF.ttf' -d $out/share/fonts/truetype
2015-07-08 16:39:05 +01:00
'';
2021-12-08 23:52:55 +00:00
sha256 = "0l02ivxz3jbk0rhgaq83cqarqxr07xgp7n27l0fh8fbgxwi52djl";
meta = with lib; {
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;
};
}