about summary refs log tree commit diff
path: root/pkgs/data/fonts/source-serif-pro
diff options
context:
space:
mode:
authorWill Dietz <w@wdtz.org>2019-01-13 17:01:06 -0600
committerWill Dietz <w@wdtz.org>2019-01-13 17:49:04 -0600
commitd85777cb91052e1e309f833ce8c6f8628ba2a5f8 (patch)
treecd644c76845127dd4d6c213aacc2c42d26bfbe22 /pkgs/data/fonts/source-serif-pro
parent5285526b0fd58474de11b32eaa5e836dd2369189 (diff)
source-serif-pro: 1.017 -> 2.010, sync w/source-sans-pro expression
Diffstat (limited to 'pkgs/data/fonts/source-serif-pro')
-rw-r--r--pkgs/data/fonts/source-serif-pro/default.nix12
1 files changed, 7 insertions, 5 deletions
diff --git a/pkgs/data/fonts/source-serif-pro/default.nix b/pkgs/data/fonts/source-serif-pro/default.nix
index d58ccc3381335..8e7688df7d335 100644
--- a/pkgs/data/fonts/source-serif-pro/default.nix
+++ b/pkgs/data/fonts/source-serif-pro/default.nix
@@ -1,18 +1,20 @@
 { stdenv, fetchzip }:
 
 let
-  version = "1.017";
+  version = "2.010";
 in fetchzip {
   name = "source-serif-pro-${version}";
 
-  url = "https://github.com/adobe-fonts/source-serif-pro/archive/${version}R.zip";
+  url = "https://github.com/adobe-fonts/source-serif-pro/releases/download/${version}R-ro%2F1.010R-it/source-serif-pro-${version}R-ro-1.010R-it.zip";
 
   postFetch = ''
-    mkdir -p $out/share/fonts/opentype
-    unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype
+    mkdir -p $out/share/fonts/{opentype,truetype,variable}
+    unzip -j $downloadedFile "*/OTF/*.otf" -d $out/share/fonts/opentype
+    unzip -j $downloadedFile "*/TTF/*.ttf" -d $out/share/fonts/truetype
+    unzip -j $downloadedFile "*/VAR/*.otf" -d $out/share/fonts/variable
   '';
 
-  sha256 = "04447fbj7lwr2qmmvy7d7624qdh4in7hp627nsc8vbpxmb7bbmn1";
+  sha256 = "1a3lmqk7hyxpfkb30s9z73lhs823dmq6xr5llp9w23g6bh332x2h";
 
   meta = with stdenv.lib; {
     homepage = https://sourceforge.net/adobe/sourceserifpro;