nixpkgs/pkgs/data/fonts/dm-sans/default.nix
riceicetea 6054e49c02 dm-sans: init at 1.002
Co-authored-by: wegank <9713184+wegank@users.noreply.github.com>
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
2022-12-22 16:15:30 +01:00

22 lines
612 B
Nix

{ lib, fetchzip }:
let version = "1.002"; in
fetchzip {
inherit version;
pname = "dm-sans";
url = "https://github.com/googlefonts/dm-fonts/releases/download/v${version}/DeepMindSans_v${version}.zip";
stripRoot = false;
hash = "sha256-zyS0gz7CGn39HCiyeN5cAP63v9nG6jffGSsI1vr84EQ=";
postFetch = ''
mkdir -p $out/share/fonts/truetype
mv $out/*.ttf $out/share/fonts/truetype
'';
meta = {
description = "A geometric sans-serif typeface";
homepage = "https://github.com/googlefonts/dm-fonts";
license = lib.licenses.ofl;
maintainers = with lib.maintainers; [ gilice ];
};
}