Merge pull request #247793 from usertam/patch/source-han
This commit is contained in:
commit
03a69ca9cb
1 changed files with 5 additions and 3 deletions
|
@ -11,6 +11,7 @@ let
|
||||||
, rev
|
, rev
|
||||||
, hash
|
, hash
|
||||||
, zip ? ""
|
, zip ? ""
|
||||||
|
, prefix ? ""
|
||||||
}:
|
}:
|
||||||
let Family =
|
let Family =
|
||||||
lib.toUpper (lib.substring 0 1 family) +
|
lib.toUpper (lib.substring 0 1 family) +
|
||||||
|
@ -21,7 +22,7 @@ let
|
||||||
version = lib.removeSuffix "R" rev;
|
version = lib.removeSuffix "R" rev;
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://github.com/adobe-fonts/source-han-${family}/releases/download/${rev}/SourceHan${Family}.ttc${zip}";
|
url = "https://github.com/adobe-fonts/source-han-${family}/releases/download/${rev}/${prefix}SourceHan${Family}.ttc${zip}";
|
||||||
inherit hash;
|
inherit hash;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -61,9 +62,10 @@ in
|
||||||
serif = makePackage {
|
serif = makePackage {
|
||||||
family = "serif";
|
family = "serif";
|
||||||
description = "serif";
|
description = "serif";
|
||||||
rev = "2.000R";
|
rev = "2.001R";
|
||||||
hash = "sha256-RDgywab7gwT+YBO7F1KJvKOv0E/3+7Zi/pQl+UDsGcM=";
|
hash = "sha256-ULdrtPLtzsgfZEHWkr4ebC/FSROHBWJJVD+PzdIJ6Og=";
|
||||||
zip = ".zip";
|
zip = ".zip";
|
||||||
|
prefix = "01_";
|
||||||
};
|
};
|
||||||
|
|
||||||
mono = makePackage {
|
mono = makePackage {
|
||||||
|
|
Loading…
Reference in a new issue