nixpkgs/pkgs/data/fonts/work-sans/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

26 lines
611 B
Nix
Raw Normal View History

{ lib, fetchzip }:
2019-09-28 21:20:00 +00:00
let
version = "2.010";
in
fetchzip {
2019-09-28 21:20:00 +00:00
name = "work-sans-${version}";
url = "https://github.com/weiweihuanghuang/Work-Sans/archive/refs/tags/v${version}.zip";
2019-09-28 21:20:00 +00:00
postFetch = ''
mkdir -p $out/share/fonts
unzip -j $downloadedFile "*/fonts/*.ttf" -d $out/share/fonts/opentype
2019-09-28 21:20:00 +00:00
'';
sha256 = "sha256-S4O5EoKY4w/p+MHeHRCmPyQRAOUfEwNiETxMgNcsrws=";
2019-09-28 21:20:00 +00:00
meta = with lib; {
description = "A grotesque sans";
homepage = "https://weiweihuanghuang.github.io/Work-Sans/";
license = licenses.ofl;
maintainers = [ maintainers.marsam ];
platforms = platforms.all;
};
}