nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenvNoCC,
4 fetchzip,
5}:
6
7stdenvNoCC.mkDerivation rec {
8 pname = "inter";
9 version = "4.1";
10
11 src = fetchzip {
12 url = "https://github.com/rsms/inter/releases/download/v${version}/Inter-${version}.zip";
13 stripRoot = false;
14 hash = "sha256-5vdKKvHAeZi6igrfpbOdhZlDX2/5+UvzlnCQV6DdqoQ=";
15 };
16
17 installPhase = ''
18 runHook preInstall
19
20 mkdir -p $out/share/fonts/truetype
21 cp Inter.ttc InterVariable*.ttf $out/share/fonts/truetype
22
23 runHook postInstall
24 '';
25
26 meta = {
27 homepage = "https://rsms.me/inter/";
28 description = "Typeface specially designed for user interfaces";
29 license = lib.licenses.ofl;
30 platforms = lib.platforms.all;
31 maintainers = with lib.maintainers; [ demize ];
32 };
33}