2023-01-28 05:13:31 +00:00
|
|
|
{ lib, stdenvNoCC, fetchzip }:
|
2017-12-19 20:17:52 +00:00
|
|
|
|
2023-01-28 05:13:31 +00:00
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
|
|
pname = "ibm-plex";
|
2023-03-02 09:51:02 +00:00
|
|
|
version = "6.2.0";
|
2020-06-08 18:47:19 +00:00
|
|
|
|
2023-01-28 05:13:31 +00:00
|
|
|
src = fetchzip {
|
|
|
|
url = "https://github.com/IBM/plex/releases/download/v${version}/OpenType.zip";
|
2023-03-02 09:51:02 +00:00
|
|
|
hash = "sha256-RvD/aeZrvltJiuAHqYMNaRsjLgTdcC1/5zqlcd4qKAA=";
|
2023-01-28 05:13:31 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
2020-06-08 18:47:19 +00:00
|
|
|
|
2023-01-28 05:13:31 +00:00
|
|
|
install -Dm644 */*.otf IBM-Plex-Sans-JP/unhinted/* -t $out/share/fonts/opentype
|
2020-06-08 18:47:19 +00:00
|
|
|
|
2023-01-28 05:13:31 +00:00
|
|
|
runHook postInstall
|
|
|
|
'';
|
2017-12-19 20:17:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "IBM Plex Typeface";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://www.ibm.com/plex/";
|
2021-10-30 04:20:00 +00:00
|
|
|
changelog = "https://github.com/IBM/plex/raw/v${version}/CHANGELOG.md";
|
2017-12-19 20:17:52 +00:00
|
|
|
license = licenses.ofl;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = [ maintainers.romildo ];
|
|
|
|
};
|
2023-01-28 05:13:31 +00:00
|
|
|
}
|