depot/third_party/nixpkgs/pkgs/data/fonts/work-sans/default.nix
Default email 5c370c0b2a Project import generated by Copybara.
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
2024-05-15 17:35:15 +02:00

27 lines
671 B
Nix

{ lib, stdenvNoCC, fetchzip }:
stdenvNoCC.mkDerivation rec {
pname = "work-sans";
version = "2.010";
src = fetchzip {
url = "https://github.com/weiweihuanghuang/Work-Sans/archive/refs/tags/v${version}.zip";
hash = "sha256-cedcx3CpcPZk3jxxIs5Bz78dxZNtOemvXnUBO6zl2dw=";
};
installPhase = ''
runHook preInstall
install -Dm644 fonts/variable/*.ttf fonts/static/TTF/*.ttf -t $out/share/fonts/opentype
runHook postInstall
'';
meta = with lib; {
description = "A grotesque sans";
homepage = "https://weiweihuanghuang.github.io/Work-Sans/";
license = licenses.ofl;
maintainers = [ ];
platforms = platforms.all;
};
}