babelstone-han: 9.0.2 -> 10.0.0 (#28108)
* babelstone-han: 9.0.2 -> 10.0.0 * simplification (two hashes -> one hash) * simplification (fetchurl -> fetchzip)
This commit is contained in:
parent
bd41e827de
commit
b1ce017d44
@ -1,22 +1,16 @@
|
|||||||
{stdenv, fetchurl, unzip}:
|
{stdenv, fetchzip}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
let
|
||||||
|
version = "10.0.0";
|
||||||
|
in fetchzip {
|
||||||
name = "babelstone-han-${version}";
|
name = "babelstone-han-${version}";
|
||||||
version = "9.0.2";
|
|
||||||
|
|
||||||
src = fetchurl {
|
url = http://www.babelstone.co.uk/Fonts/0816/BabelStoneHan.zip;
|
||||||
url = "http://www.babelstone.co.uk/Fonts/8672/BabelStoneHan.zip";
|
postFetch = ''
|
||||||
sha256 = "09zlrp3mqdsbxpq4sssd8gj5isnxfbr56pcdp7mnr27nv4pvp6ha";
|
|
||||||
};
|
|
||||||
|
|
||||||
buildInputs = [ unzip ];
|
|
||||||
|
|
||||||
sourceRoot = ".";
|
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
mkdir -p $out/share/fonts/truetype
|
mkdir -p $out/share/fonts/truetype
|
||||||
cp -v *.ttf $out/share/fonts/truetype
|
unzip $downloadedFile '*.ttf' -d $out/share/fonts/truetype
|
||||||
'';
|
'';
|
||||||
|
sha256 = "0648hv5c1hq3bq7mlk7bnmflzzqj4wh137bjqyrwj5hy3nqzvl5r";
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Unicode CJK font with over 32600 Han characters";
|
description = "Unicode CJK font with over 32600 Han characters";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user