Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at fix-function-merge 29 lines 731 B view raw
1{ lib, stdenvNoCC, fetchzip }: 2 3stdenvNoCC.mkDerivation rec { 4 pname = "inter"; 5 version = "4.0"; 6 7 src = fetchzip { 8 url = "https://github.com/rsms/inter/releases/download/v${version}/Inter-${version}.zip"; 9 stripRoot = false; 10 hash = "sha256-hFK7xFJt69n+98+juWgMvt+zeB9nDkc8nsR8vohrFIc="; 11 }; 12 13 installPhase = '' 14 runHook preInstall 15 16 mkdir -p $out/share/fonts/truetype 17 cp Inter.ttc InterVariable*.ttf $out/share/fonts/truetype 18 19 runHook postInstall 20 ''; 21 22 meta = with lib; { 23 homepage = "https://rsms.me/inter/"; 24 description = "Typeface specially designed for user interfaces"; 25 license = licenses.ofl; 26 platforms = platforms.all; 27 maintainers = with maintainers; [ demize ]; 28 }; 29}