Adds fonts

nix-darwin
Abhinav Sarkar 2022-09-26 19:12:43 +05:30
parent 45fb7389fe
commit 6c021c3ea0
2 changed files with 34 additions and 0 deletions

25
dm-mono.nix Normal file
View File

@ -0,0 +1,25 @@
{ lib, fetchzip }:
let
pname = "dm-mono";
version = "1.0.0";
in fetchzip {
name = "${pname}-${version}";
extension = "zip";
stripRoot = false;
url = "https://fonts.google.com/download?family=DM%20Mono";
hash = "sha256-HAStsW+SAAkOjywPBSzhmib+fEylWZo6PtNtfDVNYZ0=";
postFetch = ''
mkdir -p $out/share/fonts/truetype
mv $out/*.ttf $out/share/fonts/truetype
'';
meta = with lib; {
description = "DM Mono";
homepage = "https://github.com/googlefonts/dm-mono";
license = licenses.ofl;
platforms = platforms.all;
};
}

View File

@ -172,6 +172,15 @@
nixfmt
statix
tree
# fonts
fira-mono
inconsolata
jetbrains-mono
nanum-gothic-coding
roboto-mono
source-code-pro
(import ./dm-mono.nix { inherit lib fetchzip; })
];
}