2023-02-02 18:25:31 +00:00
|
|
|
{ lib, stdenvNoCC, fetchzip }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
|
|
pname = "inter";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "4.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
src = fetchzip {
|
|
|
|
url = "https://github.com/rsms/inter/releases/download/v${version}/Inter-${version}.zip";
|
|
|
|
stripRoot = false;
|
2024-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-hFK7xFJt69n+98+juWgMvt+zeB9nDkc8nsR8vohrFIc=";
|
2023-02-02 18:25:31 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
mkdir -p $out/share/fonts/truetype
|
|
|
|
cp Inter.ttc InterVariable*.ttf $out/share/fonts/truetype
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
runHook postInstall
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://rsms.me/inter/";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Typeface specially designed for user interfaces";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.ofl;
|
|
|
|
platforms = platforms.all;
|
2024-07-27 06:49:29 +00:00
|
|
|
maintainers = with maintainers; [ demize ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2023-02-02 18:25:31 +00:00
|
|
|
}
|