depot/third_party/nixpkgs/pkgs/data/fonts/work-sans/default.nix
Default email 0d9fc34957 Project import generated by Copybara.
GitOrigin-RevId: 5ed481943351e9fd354aeb557679624224de38d5
2023-01-20 11:41:00 +01:00

26 lines
723 B
Nix

# when changing this expression convert it from 'fetchzip' to 'stdenvNoCC.mkDerivation'
{ 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";
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;
};
}).overrideAttrs (_: {
postFetch = ''
mkdir -p $out/share/fonts
unzip -j $downloadedFile "*/fonts/*.ttf" -d $out/share/fonts/opentype
'';
})