about summary refs log tree commit diff
path: root/pkgs/data/fonts/work-sans/default.nix
blob: 49722fc3e01ab0f7886f2104a73350993cacc105 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{ lib, fetchzip }:

let
  version = "2.010";
in
fetchzip {
  name = "work-sans-${version}";

  url = "https://github.com/weiweihuanghuang/Work-Sans/archive/refs/tags/v${version}.zip";

  postFetch = ''
    mkdir -p $out/share/fonts
    unzip -j $downloadedFile "*/fonts/*.ttf" -d $out/share/fonts/opentype
  '';

  sha256 = "sha256-S4O5EoKY4w/p+MHeHRCmPyQRAOUfEwNiETxMgNcsrws=";

  meta = with lib; {
    description = "A grotesque sans";
    homepage = "https://weiweihuanghuang.github.io/Work-Sans/";
    license = licenses.ofl;
    maintainers = [ maintainers.marsam ];
    platforms = platforms.all;
  };
}