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:
volth 2017-08-10 20:26:24 +00:00 committed by Jörg Thalheim
parent bd41e827de
commit b1ce017d44

View file

@ -1,22 +1,16 @@
{stdenv, fetchurl, unzip}:
{stdenv, fetchzip}:
stdenv.mkDerivation rec {
let
version = "10.0.0";
in fetchzip {
name = "babelstone-han-${version}";
version = "9.0.2";
src = fetchurl {
url = "http://www.babelstone.co.uk/Fonts/8672/BabelStoneHan.zip";
sha256 = "09zlrp3mqdsbxpq4sssd8gj5isnxfbr56pcdp7mnr27nv4pvp6ha";
};
buildInputs = [ unzip ];
sourceRoot = ".";
installPhase = ''
url = http://www.babelstone.co.uk/Fonts/0816/BabelStoneHan.zip;
postFetch = ''
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; {
description = "Unicode CJK font with over 32600 Han characters";