2023-01-20 10:41:00 +00:00
|
|
|
# when changing this expression convert it from 'fetchzip' to 'stdenvNoCC.mkDerivation'
|
2020-04-24 23:36:52 +00:00
|
|
|
{ lib, fetchzip }:
|
|
|
|
|
|
|
|
let
|
2022-05-18 14:49:53 +00:00
|
|
|
version = "6.0.1";
|
2020-06-18 07:06:33 +00:00
|
|
|
|
2023-01-20 10:41:00 +00:00
|
|
|
in (fetchzip {
|
2020-04-24 23:36:52 +00:00
|
|
|
name = "ibm-plex-${version}";
|
2020-06-18 07:06:33 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
url = "https://github.com/IBM/plex/releases/download/v${version}/OpenType.zip";
|
2020-06-18 07:06:33 +00:00
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
sha256 = "sha256-HxO0L5Q6WJQBqtg64cczzuRcSYi4jEqbOzEWxDmqFp8=";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "IBM Plex Typeface";
|
|
|
|
homepage = "https://www.ibm.com/plex/";
|
2021-12-06 16:07:01 +00:00
|
|
|
changelog = "https://github.com/IBM/plex/raw/v${version}/CHANGELOG.md";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.ofl;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = [ maintainers.romildo ];
|
|
|
|
};
|
2023-01-20 10:41:00 +00:00
|
|
|
}).overrideAttrs (_: {
|
|
|
|
postFetch = ''
|
|
|
|
mkdir -p $out/share/fonts
|
|
|
|
unzip -j $downloadedFile "OpenType/*/*.otf" -x "OpenType/IBM-Plex-Sans-JP/unhinted/*" -d $out/share/fonts/opentype
|
|
|
|
'';
|
|
|
|
})
|