1 { lib, stdenvNoCC, fetchzip, useVariableFont ? true }:
3 stdenvNoCC.mkDerivation (finalAttrs: {
8 url = "https://github.com/tonsky/FiraCode/releases/download/${finalAttrs.version}/Fira_Code_v${finalAttrs.version}.zip";
10 hash = "sha256-UHOwZL9WpCHk6vZaqI/XfkZogKgycs5lWg1p0XdQt0A=";
13 # only extract the variable font because everything else is a duplicate
17 install -Dm644 -t $out/share/fonts/truetype ${if useVariableFont then "variable_ttf/*-VF.ttf" else "ttf/*.ttf"}
23 homepage = "https://github.com/tonsky/FiraCode";
24 description = "Monospace font with programming ligatures";
26 Fira Code is a monospace font extending the Fira Mono font with
27 a set of ligatures for common programming multi-character
30 license = licenses.ofl;
31 maintainers = [ maintainers.rycee ];
32 platforms = platforms.all;