mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
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 changed files with 8 additions and 14 deletions
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue