Skip to content

Commit

Permalink
wqy_zenhei: 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 7c79bb6 commit e8fc26f
Showing 1 changed file with 11 additions and 14 deletions.
25 changes: 11 additions & 14 deletions pkgs/data/fonts/wqy-zenhei/default.nix
@@ -1,21 +1,19 @@
{ stdenv, fetchurl }:
{ stdenv, fetchzip }:

stdenv.mkDerivation rec {
name = "wqy-zenhei-${version}";
let
version = "0.9.45";
in fetchzip rec {
name = "wqy-zenhei-${version}";

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

dontBuild = true;
postFetch = ''
tar -xzf $downloadedFile --strip-components=1
mkdir -p $out/share/fonts
install -m644 *.ttc $out/share/fonts/
'';

installPhase =
''
mkdir -p $out/share/fonts
install -m644 *.ttc $out/share/fonts/
'';
sha256 = "0hbjq6afcd63nsyjzrjf8fmm7pn70jcly7fjzjw23v36ffi0g255";

meta = {
description = "A (mainly) Chinese Unicode font";
Expand All @@ -25,4 +23,3 @@ stdenv.mkDerivation rec {
platforms = stdenv.lib.platforms.all;
};
}

0 comments on commit e8fc26f

Please sign in to comment.