nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at netboot-syslinux-multiplatform 33 lines 883 B view raw
1{ lib, stdenvNoCC, fetchzip }: 2 3stdenvNoCC.mkDerivation rec { 4 pname = "roboto"; 5 version = "2.138"; 6 7 src = fetchzip { 8 url = "https://github.com/google/roboto/releases/download/v${version}/roboto-unhinted.zip"; 9 stripRoot = false; 10 hash = "sha256-ue3PUZinBpcYgSho1Zrw1KHl7gc/GlN1GhWFk6g5QXE="; 11 }; 12 13 installPhase = '' 14 runHook preInstall 15 16 install -Dm644 *.ttf -t $out/share/fonts/truetype 17 18 runHook postInstall 19 ''; 20 21 meta = { 22 homepage = "https://github.com/google/roboto"; 23 description = "The Roboto family of fonts"; 24 longDescription = '' 25 Googles signature family of fonts, the default font on Android and 26 Chrome OS, and the recommended font for Googles visual language, 27 Material Design. 28 ''; 29 license = lib.licenses.asl20; 30 platforms = lib.platforms.all; 31 maintainers = [ lib.maintainers.romildo ]; 32 }; 33}