mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-14 15:36:47 +03:00
wqy_zenhei: 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
7c79bb6a87
commit
e8fc26fdb2
@ -1,21 +1,19 @@
|
|||||||
{ stdenv, fetchurl }:
|
{ stdenv, fetchzip }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
let
|
||||||
name = "wqy-zenhei-${version}";
|
|
||||||
version = "0.9.45";
|
version = "0.9.45";
|
||||||
|
in fetchzip rec {
|
||||||
|
name = "wqy-zenhei-${version}";
|
||||||
|
|
||||||
src = fetchurl {
|
url = "mirror://sourceforge/wqy/${name}.tar.gz";
|
||||||
url = "mirror://sourceforge/wqy/${name}.tar.gz";
|
|
||||||
sha256 = "1mkmxq8g2hjcglb3zajfqj20r4r88l78ymsp2xyl5yav8w3f7dz4";
|
|
||||||
};
|
|
||||||
|
|
||||||
dontBuild = true;
|
postFetch = ''
|
||||||
|
tar -xzf $downloadedFile --strip-components=1
|
||||||
|
mkdir -p $out/share/fonts
|
||||||
|
install -m644 *.ttc $out/share/fonts/
|
||||||
|
'';
|
||||||
|
|
||||||
installPhase =
|
sha256 = "0hbjq6afcd63nsyjzrjf8fmm7pn70jcly7fjzjw23v36ffi0g255";
|
||||||
''
|
|
||||||
mkdir -p $out/share/fonts
|
|
||||||
install -m644 *.ttc $out/share/fonts/
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "A (mainly) Chinese Unicode font";
|
description = "A (mainly) Chinese Unicode font";
|
||||||
@ -25,4 +23,3 @@ stdenv.mkDerivation rec {
|
|||||||
platforms = stdenv.lib.platforms.all;
|
platforms = stdenv.lib.platforms.all;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user