nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, stdenvNoCC, fetchzip }:
2
3stdenvNoCC.mkDerivation rec {
4 pname = "work-sans";
5 version = "2.010";
6
7 src = fetchzip {
8 url = "https://github.com/weiweihuanghuang/Work-Sans/archive/refs/tags/v${version}.zip";
9 hash = "sha256-cedcx3CpcPZk3jxxIs5Bz78dxZNtOemvXnUBO6zl2dw=";
10 };
11
12 installPhase = ''
13 runHook preInstall
14
15 install -Dm644 fonts/variable/*.ttf fonts/static/TTF/*.ttf -t $out/share/fonts/opentype
16
17 runHook postInstall
18 '';
19
20 meta = with lib; {
21 description = "A grotesque sans";
22 homepage = "https://weiweihuanghuang.github.io/Work-Sans/";
23 license = licenses.ofl;
24 maintainers = [ maintainers.marsam ];
25 platforms = platforms.all;
26 };
27}