Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{
2 lib,
3 stdenvNoCC,
4 fetchzip,
5}:
6
7stdenvNoCC.mkDerivation rec {
8 pname = "roboto-flex";
9 version = "3.200";
10
11 src = fetchzip {
12 url = "https://github.com/googlefonts/roboto-flex/releases/download/${version}/roboto-flex-fonts.zip";
13 stripRoot = false;
14 hash = "sha256-p8BvE4f6zQLygl49hzYTXXVQFZEJjrlfUvjNW+miar4=";
15 };
16
17 installPhase = ''
18 runHook preInstall
19
20 install -Dm644 roboto-flex-fonts/fonts/variable/*.ttf -t $out/share/fonts/truetype
21
22 runHook postInstall
23 '';
24
25 meta = {
26 homepage = "https://github.com/googlefonts/roboto-flex";
27 description = "Google Roboto Flex family of fonts";
28 license = lib.licenses.ofl;
29 platforms = lib.platforms.all;
30 maintainers = [ lib.maintainers.romildo ];
31 };
32}