ipaexfont: 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
9f11dcc625
commit
be422a4a68
1 changed files with 8 additions and 11 deletions
|
@ -1,20 +1,17 @@
|
|||
{ stdenv, fetchurl, unzip }:
|
||||
{ stdenv, fetchzip }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
fetchzip rec {
|
||||
name = "ipaexfont-003.01";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://dl.ipafont.ipa.go.jp/IPAexfont/IPAexfont00301.zip";
|
||||
sha256 = "0nmfyh10rzkvp0qmrla0dahkmmxq47678y4v8fdm8fpdzmf0kpn7";
|
||||
};
|
||||
url = "http://dl.ipafont.ipa.go.jp/IPAexfont/IPAexfont00301.zip";
|
||||
|
||||
buildInputs = [ unzip ];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/share/fonts/opentype/
|
||||
cp *.ttf $out/share/fonts/opentype/
|
||||
postFetch = ''
|
||||
mkdir -p $out/share/fonts
|
||||
unzip -j $downloadedFile \*.ttf -d $out/share/fonts/opentype
|
||||
'';
|
||||
|
||||
sha256 = "02a6sj990cnig5lq0m54nmbmfkr3s57jpxl9fiyzrjmigvd1qmhj";
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Japanese font package with Mincho and Gothic fonts";
|
||||
longDescription = ''
|
||||
|
|
Loading…
Reference in a new issue