nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at netboot-syslinux-multiplatform 37 lines 1.0 kB view raw
1{ lib, stdenvNoCC, fetchFromGitHub }: 2 3stdenvNoCC.mkDerivation rec { 4 pname = "comfortaa"; 5 version = "unstable-2021-07-29"; 6 7 src = fetchFromGitHub { 8 owner = "googlefonts"; 9 repo = pname; 10 rev = "2a87ac6f6ea3495150bfa00d0c0fb53dd0a2f11b"; 11 postFetch = '' 12 # Remove the OTF fonts as they are not needed and cause a hash mismatch 13 rm -rf $out/fonts/{OTF,otf} 14 ''; 15 hash = "sha256-4ZBRaQyYlnt9l4NgBHezuCnR3rKTJ37L41RTbGAhd0M="; 16 }; 17 18 dontBuild = true; 19 20 installPhase = '' 21 runHook preInstall 22 23 mkdir -p $out/share/fonts/truetype $out/share/doc/comfortaa 24 cp fonts/TTF/*.ttf $out/share/fonts/truetype 25 cp FONTLOG.txt README.md $out/share/doc/comfortaa 26 27 runHook postInstall 28 ''; 29 30 meta = with lib; { 31 homepage = "http://aajohan.deviantart.com/art/Comfortaa-font-105395949"; 32 description = "A clean and modern font suitable for headings and logos"; 33 license = licenses.ofl; 34 platforms = platforms.all; 35 maintainers = [ maintainers.rycee ]; 36 }; 37}