inter,inter-ui: init new 'inter', bump inter-ui to last w/that name

This commit is contained in:
Will Dietz 2019-03-29 02:24:46 -05:00
parent 3d3bf7d0e0
commit 346082f8ec
3 changed files with 32 additions and 2 deletions

View File

@ -1,7 +1,11 @@
{ stdenv, fetchzip }:
# XXX: IMPORTANT:
# For compat, keep this at the last version that used the name "Inter UI"
# For newer versions, which are now simply named "Inter",
# see the expression for `inter` (../inter/default.nix).
let
version = "3.1";
version = "3.2";
in fetchzip {
name = "inter-ui-${version}";
@ -12,7 +16,7 @@ in fetchzip {
unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype
'';
sha256 = "0cdjpwylynwmab0x5z5lw43k39vis74xj1ciqg8nw12ccprbmj60";
sha256 = "01d2ql803jrhss6g60djvs08x9xl7z6b3snkn03vqnrajdgifcl4";
meta = with stdenv.lib; {
homepage = https://rsms.me/inter/;

View File

@ -0,0 +1,25 @@
{ stdenv, fetchzip }:
let
version = "3.3";
in fetchzip {
name = "inter-${version}";
url = "https://github.com/rsms/inter/releases/download/v${version}/Inter-${version}.zip";
postFetch = ''
mkdir -p $out/share/fonts/opentype
unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype
'';
sha256 = "17fv33ryvbla4f4mfgw7m7gjlwyjlni90a8gpb7jws1qzn0vgazg";
meta = with stdenv.lib; {
homepage = https://rsms.me/inter/;
description = "A typeface specially designed for user interfaces";
license = licenses.ofl;
platforms = platforms.all;
maintainers = with maintainers; [ demize ];
};
}

View File

@ -16157,6 +16157,7 @@ in
maligned = callPackage ../development/tools/maligned { };
inter-ui = callPackage ../data/fonts/inter-ui { };
inter = callPackage ../data/fonts/inter { };
siji = callPackage ../data/fonts/siji { };