Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{
2 lib,
3 stdenvNoCC,
4 fetchzip,
5}:
6
7stdenvNoCC.mkDerivation (finalAttrs: {
8 pname = "roboto";
9 version = "3.011";
10
11 src = fetchzip {
12 url = "https://github.com/googlefonts/roboto-3-classic/releases/download/v${finalAttrs.version}/Roboto_v${finalAttrs.version}.zip";
13 stripRoot = false;
14 hash = "sha256-Ko5x4zn/bhrFLuYktaAsqsWUsIOMfnxK8rZ4UiqK8ds=";
15 };
16
17 installPhase = ''
18 runHook preInstall
19
20 install -Dm644 unhinted/static/*.ttf -t $out/share/fonts/truetype
21
22 runHook postInstall
23 '';
24
25 meta = {
26 homepage = "https://github.com/googlefonts/roboto-3-classic";
27 description = "This is a variable version of Roboto intended to be a 1:1 match with the official non-variable release from Google";
28 longDescription = ''
29 This is not an official Google project, but was enabled with generous
30 funding by Google Fonts, who contracted Type Network. The Roboto family of
31 instances contained 6 weights and two widths of normal, along with italic
32 of the regular width.
33 '';
34 license = lib.licenses.ofl;
35 platforms = lib.platforms.all;
36 maintainers = [ lib.maintainers.romildo ];
37 };
38})