Skip to content

Commit

Permalink
wqy_microhei: make the font derivation fixed-output
Browse files Browse the repository at this point in the history
- [x] make the font derivation fixed-output (#27754)
  • Loading branch information
volth authored and fpletz committed Aug 11, 2017
1 parent e8fc26f commit 9baf0b7
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions pkgs/data/fonts/wqy-microhei/default.nix
@@ -1,14 +1,16 @@
{ stdenv, fetchurl }:
{ stdenv, fetchzip }:

stdenv.mkDerivation rec {
fetchzip rec {
name = "wqy-microhei-0.2.0-beta";

src = fetchurl {
url = "mirror://sourceforge/wqy/${name}.tar.gz";
sha256 = "0gi1yxqph8xx869ichpzzxvx6y50wda5hi77lrpacdma4f0aq0i8";
};
url = "mirror://sourceforge/wqy/${name}.tar.gz";

postFetch = ''
tar -xzf $downloadedFile --strip-components=1
install -Dm644 wqy-microhei.ttc $out/share/fonts/wqy-microhei.ttc
'';

installPhase = ''install -Dm644 wqy-microhei.ttc $out/share/fonts/wqy-microhei.ttc'';
sha256 = "0i5jh7mkp371fxqmsvn7say075r641yl4hq26isjyrqvb8cv92a9";

meta = {
description = "A (mainly) Chinese Unicode font";
Expand Down

0 comments on commit 9baf0b7

Please sign in to comment.