nixpkgs/pkgs/data/fonts/inter/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
741 B
Nix
Raw Normal View History

{ lib, stdenvNoCC, fetchzip }:
stdenvNoCC.mkDerivation rec {
pname = "inter";
2023-11-20 04:50:29 +00:00
version = "4.0";
src = fetchzip {
url = "https://github.com/rsms/inter/releases/download/v${version}/Inter-${version}.zip";
stripRoot = false;
2023-11-20 04:50:29 +00:00
hash = "sha256-hFK7xFJt69n+98+juWgMvt+zeB9nDkc8nsR8vohrFIc=";
};
installPhase = ''
runHook preInstall
2023-11-20 04:50:29 +00:00
mkdir -p $out/share/fonts/truetype
cp Inter.ttc InterVariable*.ttf $out/share/fonts/truetype
runHook postInstall
'';
meta = with lib; {
homepage = "https://rsms.me/inter/";
description = "A typeface specially designed for user interfaces";
license = licenses.ofl;
platforms = platforms.all;
2019-05-31 02:49:50 +00:00
maintainers = with maintainers; [ demize dtzWill ];
};
}