diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2023-01-02 21:55:58 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-02 21:55:58 +0100 |
commit | 3d725b90fd8b590009281c2250e0ca23dc72a5f3 (patch) | |
tree | 87b44783f6d496e0dc4a8eebfc9064e0fbb01439 /pkgs | |
parent | ffd471c22bf59992b1fde1c9f8cca4c8529e36f6 (diff) | |
parent | 6054e49c022871b913f0ec68e5351cb6f067b131 (diff) |
Merge pull request #194771 from gilice/dm-sans
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/data/fonts/dm-sans/default.nix | 21 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 1 |
2 files changed, 22 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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 151d0e6640c4..f94257583060 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -26569,6 +26569,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 { }; |