From 6054e49c022871b913f0ec68e5351cb6f067b131 Mon Sep 17 00:00:00 2001 From: riceicetea <104317939+riceicetea@users.noreply.github.com> Date: Fri, 7 Oct 2022 15:56:41 +0200 Subject: [PATCH] dm-sans: init at 1.002 Co-authored-by: wegank <9713184+wegank@users.noreply.github.com> Co-authored-by: Sandro --- maintainers/maintainer-list.nix | 6 ++++++ pkgs/data/fonts/dm-sans/default.nix | 21 +++++++++++++++++++++ pkgs/top-level/all-packages.nix | 1 + 3 files changed, 28 insertions(+) create mode 100644 pkgs/data/fonts/dm-sans/default.nix diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 2f0eb281950b..3076008f8ec9 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -5111,6 +5111,12 @@ githubId = 15957973; name = "Jeffry Molanus"; }; + gilice = { + email = "gilice@proton.me"; + github = "gilice"; + githubId = 104317939; + name = "gilice"; + }; gilligan = { email = "tobias.pflug@gmail.com"; github = "gilligan"; 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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index f6ee2814f487..95f9a26cf77a 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -26498,6 +26498,7 @@ with pkgs; dina-font = callPackage ../data/fonts/dina { }; + dm-sans = callPackage ../data/fonts/dm-sans { }; dns-root-data = callPackage ../data/misc/dns-root-data { }; docbook5 = callPackage ../data/sgml+xml/schemas/docbook-5.0 { };