nixpkgs-suyu/pkgs/data/fonts/fira-code/default.nix
Fabián Heredia Montiel f5e5aa7400 fira-code: 1.207 -> 2
2019-09-09 22:35:16 -05:00

30 lines
880 B
Nix

{ stdenv, fetchzip }:
let
version = "2";
in fetchzip {
name = "fira-code-${version}";
url = "https://github.com/tonsky/FiraCode/releases/download/${version}/FiraCode_${version}.zip";
postFetch = ''
mkdir -p $out/share/fonts
unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype
unzip -j $downloadedFile \*.ttf -d $out/share/fonts/truetype
'';
sha256 = "0kg9lrrjr6wrd4r96y0rnslnaw2276558a369qdvalwb3q1gi8d2";
meta = with stdenv.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;
};
}