nixpkgs-suyu/pkgs/data/fonts/fira-code/default.nix

31 lines
880 B
Nix
Raw Normal View History

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