at 23.05-pre 30 lines 889 B view raw
1{ lib, fetchzip }: 2 3let 4 version = "6.2"; 5in fetchzip { 6 name = "fira-code-${version}"; 7 8 url = "https://github.com/tonsky/FiraCode/releases/download/${version}/Fira_Code_v${version}.zip"; 9 10 # only extract the variable font because everything else is a duplicate 11 postFetch = '' 12 mkdir -p $out/share/fonts 13 unzip -j $downloadedFile '*-VF.ttf' -d $out/share/fonts/truetype 14 ''; 15 16 sha256 = "0l02ivxz3jbk0rhgaq83cqarqxr07xgp7n27l0fh8fbgxwi52djl"; 17 18 meta = with lib; { 19 homepage = "https://github.com/tonsky/FiraCode"; 20 description = "Monospace font with programming ligatures"; 21 longDescription = '' 22 Fira Code is a monospace font extending the Fira Mono font with 23 a set of ligatures for common programming multi-character 24 combinations. 25 ''; 26 license = licenses.ofl; 27 maintainers = [ maintainers.rycee ]; 28 platforms = platforms.all; 29 }; 30}