3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/data/fonts/cascadia-code/default.nix
2019-10-06 04:20:00 -05:00

28 lines
773 B
Nix

{ lib, fetchurl }:
let
pname = "cascadia-code";
version = "1910.04";
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
'';
sha256 = "124zbv7xwirwwxrm988h3plwd2vynqxyx7p2gijqrnw69q9pf67q";
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;
};
}