5c370c0b2a
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
30 lines
983 B
Nix
30 lines
983 B
Nix
{ lib, stdenvNoCC, fetchzip }:
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
pname = "cascadia-code";
|
|
version = "2404.23";
|
|
|
|
src = fetchzip {
|
|
url = "https://github.com/microsoft/cascadia-code/releases/download/v${version}/CascadiaCode-${version}.zip";
|
|
stripRoot = false;
|
|
hash = "sha256-Z2AzBeNiM6mc1OHCJRv0rUvH8WRygyQGSOvwbAISYHE=";
|
|
};
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
install -Dm644 otf/static/*.otf -t $out/share/fonts/opentype
|
|
install -Dm644 ttf/static/*.ttf -t $out/share/fonts/truetype
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
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";
|
|
changelog = "https://github.com/microsoft/cascadia-code/raw/v${version}/FONTLOG.txt";
|
|
license = licenses.ofl;
|
|
maintainers = with maintainers; [ ryanccn ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|