nixpkgs/pkgs/data/fonts/cascadia-code/default.nix

26 lines
803 B
Nix
Raw Normal View History

2020-07-25 02:20:00 -07:00
{ lib, fetchzip }:
let
version = "2102.25";
2020-07-25 02:20:00 -07:00
in
fetchzip {
name = "cascadia-code-${version}";
2019-09-18 19:00:00 -07:00
2020-07-25 02:20:00 -07:00
url = "https://github.com/microsoft/cascadia-code/releases/download/v${version}/CascadiaCode-${version}.zip";
2019-09-18 19:00:00 -07:00
sha256 = "14qhawcf1jmv68zdfbi2zfqdw4cf8fpk7plxzphmkqsp7hlw9pzx";
2019-09-18 19:00:00 -07:00
2020-07-25 02:20:00 -07:00
postFetch = ''
mkdir -p $out/share/fonts/
unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype
unzip -j $downloadedFile \*.ttf -d $out/share/fonts/truetype
2019-09-18 19:00:00 -07:00
'';
2020-07-25 02:20:00 -07:00
meta = with lib; {
2019-09-18 19:00:00 -07:00
description = "Monospaced font that includes programming ligatures and is designed to enhance the modern look and feel of the Windows Terminal";
homepage = "https://github.com/microsoft/cascadia-code";
license = licenses.ofl;
maintainers = [ maintainers.marsam ];
platforms = platforms.all;
};
}