1{ stdenv, fetchzip }:
2
3let
4 version = "1.204";
5in fetchzip {
6 name = "fira-code-${version}";
7
8 url = "https://github.com/tonsky/FiraCode/releases/download/${version}/FiraCode_${version}.zip";
9
10 postFetch = ''
11 mkdir -p $out/share/fonts
12 unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype
13 '';
14
15 sha256 = "0gngbnrq42ysz13w3s227ghv1yigw399r3w2415ipb5pba8vipad";
16
17 meta = with stdenv.lib; {
18 homepage = https://github.com/tonsky/FiraCode;
19 description = "Monospace font with programming ligatures";
20 longDescription = ''
21 Fira Code is a monospace font extending the Fira Mono font with
22 a set of ligatures for common programming multi-character
23 combinations.
24 '';
25 license = licenses.ofl;
26 maintainers = [ maintainers.rycee ];
27 platforms = platforms.all;
28 };
29}