2020-07-25 11:20:00 +02:00
|
|
|
{ lib, fetchzip }:
|
|
|
|
let
|
2021-12-31 08:00:30 +01:00
|
|
|
version = "2111.01";
|
2020-07-25 11:20:00 +02:00
|
|
|
in
|
|
|
|
fetchzip {
|
|
|
|
name = "cascadia-code-${version}";
|
2019-09-19 04:00:00 +02:00
|
|
|
|
2020-07-25 11:20:00 +02:00
|
|
|
url = "https://github.com/microsoft/cascadia-code/releases/download/v${version}/CascadiaCode-${version}.zip";
|
2019-09-19 04:00:00 +02:00
|
|
|
|
2021-12-31 08:00:30 +01:00
|
|
|
sha256 = "sha256-kUVTQ/oMZztNf22sDbQBpQW0luSc5nr5sxWU5etLDec=";
|
2019-09-19 04:00:00 +02:00
|
|
|
|
2020-07-25 11:20:00 +02: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-19 04:00:00 +02:00
|
|
|
'';
|
|
|
|
|
2020-07-25 11:20:00 +02:00
|
|
|
meta = with lib; {
|
2019-09-19 04:00:00 +02: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";
|
2021-11-24 05:20:00 +01:00
|
|
|
changelog = "https://github.com/microsoft/cascadia-code/raw/v${version}/FONTLOG.txt";
|
2019-09-19 04:00:00 +02:00
|
|
|
license = licenses.ofl;
|
|
|
|
maintainers = [ maintainers.marsam ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|