a7848c7476
GitOrigin-RevId: 34ad3ffe08adfca17fcb4e4a47bb5f3b113687be
25 lines
803 B
Nix
25 lines
803 B
Nix
{ lib, fetchzip }:
|
|
let
|
|
version = "2108.26";
|
|
in
|
|
fetchzip {
|
|
name = "cascadia-code-${version}";
|
|
|
|
url = "https://github.com/microsoft/cascadia-code/releases/download/v${version}/CascadiaCode-${version}.zip";
|
|
|
|
sha256 = "1dvwn5rs4ss4rwd64namy8ccz8dagkk84qjg13sxxqizyd5y08h1";
|
|
|
|
postFetch = ''
|
|
mkdir -p $out/share/fonts/
|
|
unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype
|
|
unzip -j $downloadedFile \*.ttf -d $out/share/fonts/truetype
|
|
'';
|
|
|
|
meta = with lib; {
|
|
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;
|
|
};
|
|
}
|