summary refs log tree commit diff
path: root/pkgs/data/fonts/ibm-plex/default.nix
diff options
context:
space:
mode:
authorMario Rodas <marsam@users.noreply.github.com>2018-07-29 14:28:44 -0500
committerxeji <36407913+xeji@users.noreply.github.com>2018-07-29 21:28:44 +0200
commit233b28285f7e80b94ec8b8f7222da74605c99981 (patch)
tree374ea953cdb87bc90af7bec37590845f239d4dc4 /pkgs/data/fonts/ibm-plex/default.nix
parent5bc007bbea779db5bd9e6cffd3fb09ca06847e13 (diff)
downloadnixpkgs-233b28285f7e80b94ec8b8f7222da74605c99981.tar
nixpkgs-233b28285f7e80b94ec8b8f7222da74605c99981.tar.gz
nixpkgs-233b28285f7e80b94ec8b8f7222da74605c99981.tar.bz2
nixpkgs-233b28285f7e80b94ec8b8f7222da74605c99981.tar.lz
nixpkgs-233b28285f7e80b94ec8b8f7222da74605c99981.tar.xz
nixpkgs-233b28285f7e80b94ec8b8f7222da74605c99981.tar.zst
nixpkgs-233b28285f7e80b94ec8b8f7222da74605c99981.zip
ibm-plex: 0.5.3 -> 1.0.2 (#43935)
Diffstat (limited to 'pkgs/data/fonts/ibm-plex/default.nix')
-rw-r--r--pkgs/data/fonts/ibm-plex/default.nix22
1 files changed, 9 insertions, 13 deletions
diff --git a/pkgs/data/fonts/ibm-plex/default.nix b/pkgs/data/fonts/ibm-plex/default.nix
index 573cb432085..fec45bf7bf2 100644
--- a/pkgs/data/fonts/ibm-plex/default.nix
+++ b/pkgs/data/fonts/ibm-plex/default.nix
@@ -1,23 +1,19 @@
-{ lib, fetchFromGitHub }:
+{ lib, fetchzip }:
 
-let version = "0.5.3";
-in fetchFromGitHub rec {
+let
+  version = "1.0.2";
+in fetchzip rec {
   name = "ibm-plex-${version}";
-
-  owner = "IBM";
-  repo = "type";
-  rev = "v${version}";
-  sha256 = "1im7sid3qsk4wnm0yhq9h7i50bz46jksqxv60svdfnsrwq0krd1h";
-
+  url = "https://github.com/IBM/plex/releases/download/v${version}/OpenType.zip";
   postFetch = ''
-    tar --strip-components=1 -xzvf $downloadedFile
-    mkdir -p $out/share/fonts/opentype
-    cp fonts/*/desktop/mac/*.otf $out/share/fonts/opentype/
+    mkdir -p $out/share/fonts
+    unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype
   '';
+  sha256 = "1ixxm47lwsrc136z6cxkk5dm3svmvcvq0ya8q8ayvn68q5ijbh5m";
 
   meta = with lib; {
     description = "IBM Plex Typeface";
-    homepage = https://ibm.github.io/type/;
+    homepage = https://www.ibm.com/plex/;
     license = licenses.ofl;
     platforms = platforms.all;
     maintainers = [ maintainers.romildo ];