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