wqy_microhei: make the font derivation fixed-output
- [x] make the font derivation fixed-output (https://github.com/NixOS/nixpkgs/issues/27754)
This commit is contained in:
parent
e8fc26fdb2
commit
9baf0b76b7
@ -1,14 +1,16 @@
|
|||||||
{ stdenv, fetchurl }:
|
{ stdenv, fetchzip }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
fetchzip rec {
|
||||||
name = "wqy-microhei-0.2.0-beta";
|
name = "wqy-microhei-0.2.0-beta";
|
||||||
|
|
||||||
src = fetchurl {
|
url = "mirror://sourceforge/wqy/${name}.tar.gz";
|
||||||
url = "mirror://sourceforge/wqy/${name}.tar.gz";
|
|
||||||
sha256 = "0gi1yxqph8xx869ichpzzxvx6y50wda5hi77lrpacdma4f0aq0i8";
|
|
||||||
};
|
|
||||||
|
|
||||||
installPhase = ''install -Dm644 wqy-microhei.ttc $out/share/fonts/wqy-microhei.ttc'';
|
postFetch = ''
|
||||||
|
tar -xzf $downloadedFile --strip-components=1
|
||||||
|
install -Dm644 wqy-microhei.ttc $out/share/fonts/wqy-microhei.ttc
|
||||||
|
'';
|
||||||
|
|
||||||
|
sha256 = "0i5jh7mkp371fxqmsvn7say075r641yl4hq26isjyrqvb8cv92a9";
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "A (mainly) Chinese Unicode font";
|
description = "A (mainly) Chinese Unicode font";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user