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

28 lines
773 B
Nix
Raw Normal View History

2019-09-19 03:00:00 +01:00
{ lib, fetchurl }:
let
pname = "cascadia-code";
2019-12-02 23:36:09 +00:00
version = "1911.21";
2019-09-19 03:00:00 +01:00
in
fetchurl {
name = "${pname}-${version}";
url = "https://github.com/microsoft/cascadia-code/releases/download/v${version}/Cascadia.ttf";
downloadToTemp = true;
recursiveHash = true;
postFetch = ''
install -Dm444 $downloadedFile $out/share/fonts/truetype/Cascadia.ttf
'';
2019-12-02 23:36:09 +00:00
sha256 = "0b41xkpqx4ybpw5ar8njy0yznbk0hwf1ypigxf8f16chsfim7dkr";
2019-09-19 03:00:00 +01:00
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;
};
}