summaryrefslogtreecommitdiffstats
path: root/pkgs/data
diff options
context:
space:
mode:
authorriceicetea <104317939+riceicetea@users.noreply.github.com>2022-10-07 15:56:41 +0200
committerriceicetea <104317939+riceicetea@users.noreply.github.com>2022-12-22 16:15:30 +0100
commit6054e49c022871b913f0ec68e5351cb6f067b131 (patch)
tree810b065ea1497be36a804380f691c5760a7e0a94 /pkgs/data
parentff08a6db69ec9ed3baac80559c4070a492dea128 (diff)
dm-sans: init at 1.002
Co-authored-by: wegank <9713184+wegank@users.noreply.github.com> Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
Diffstat (limited to 'pkgs/data')
-rw-r--r--pkgs/data/fonts/dm-sans/default.nix21
1 files changed, 21 insertions, 0 deletions
diff --git a/pkgs/data/fonts/dm-sans/default.nix b/pkgs/data/fonts/dm-sans/default.nix
new file mode 100644
index 000000000000..f7b556fe538d
--- /dev/null
+++ b/pkgs/data/fonts/dm-sans/default.nix
@@ -0,0 +1,21 @@
+{ 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 ];
+ };
+}