Adds fonts
parent
45fb7389fe
commit
6c021c3ea0
|
@ -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;
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in New Issue