2023-01-28 02:45:00 +00:00
|
|
|
{ lib, stdenvNoCC, fetchzip }:
|
|
|
|
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
|
|
pname = "cascadia-code";
|
2021-12-31 07:00:30 +00:00
|
|
|
version = "2111.01";
|
2019-09-19 02:00:00 +00:00
|
|
|
|
2023-01-28 02:45:00 +00:00
|
|
|
src = fetchzip {
|
|
|
|
url = "https://github.com/microsoft/cascadia-code/releases/download/v${version}/CascadiaCode-${version}.zip";
|
|
|
|
stripRoot = false;
|
|
|
|
hash = "sha256-v9Vm5X80wEvorMhIlRw3MnyuSOdBpTl9ibBPpmm1vig=";
|
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
2019-09-19 02:00:00 +00:00
|
|
|
|
2023-01-28 02:45:00 +00:00
|
|
|
install -Dm644 otf/static/*.otf -t $out/share/fonts/opentype
|
|
|
|
install -Dm644 ttf/static/*.ttf -t $out/share/fonts/truetype
|
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
2019-09-19 02:00:00 +00:00
|
|
|
|
2020-07-25 09:20:00 +00:00
|
|
|
meta = with lib; {
|
2019-09-19 02:00:00 +00: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 04:20:00 +00:00
|
|
|
changelog = "https://github.com/microsoft/cascadia-code/raw/v${version}/FONTLOG.txt";
|
2019-09-19 02:00:00 +00:00
|
|
|
license = licenses.ofl;
|
|
|
|
maintainers = [ maintainers.marsam ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
2023-01-28 02:45:00 +00:00
|
|
|
}
|