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.

28 lines
690 B
Nix
Raw Normal View History

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