mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-30 17:43:42 +00:00
31 lines
889 B
Nix
31 lines
889 B
Nix
{ lib, fetchzip }:
|
|
|
|
let
|
|
version = "5.2";
|
|
in fetchzip {
|
|
name = "fira-code-${version}";
|
|
|
|
url = "https://github.com/tonsky/FiraCode/releases/download/${version}/Fira_Code_v${version}.zip";
|
|
|
|
# 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
|
|
'';
|
|
|
|
sha256 = "1wbfjgvr9m5azl5w49y0hpqzgcraw6spd1wnxgxlzfx57x6gcw0k";
|
|
|
|
meta = with 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;
|
|
};
|
|
}
|