ipafont: make the font derivation fixed-output
- [x] make the font derivations fixed-output (https://github.com/NixOS/nixpkgs/issues/27754)
This commit is contained in:
parent
be422a4a68
commit
576e9aacc0
@ -1,23 +1,16 @@
|
|||||||
{ stdenv, fetchurl, unzip }:
|
{ stdenv, fetchzip }:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
fetchzip {
|
||||||
name = "ipafont-003.03";
|
name = "ipafont-003.03";
|
||||||
|
|
||||||
src = fetchurl {
|
url = "http://ipafont.ipa.go.jp/old/ipafont/IPAfont00303.php";
|
||||||
url = "http://ipafont.ipa.go.jp/old/ipafont/IPAfont00303.php";
|
|
||||||
sha256 = "f755ed79a4b8e715bed2f05a189172138aedf93db0f465b4e20c344a02766fe5";
|
|
||||||
};
|
|
||||||
|
|
||||||
buildInputs = [ unzip ];
|
postFetch = ''
|
||||||
|
mkdir -p $out/share/fonts
|
||||||
unpackPhase = ''
|
unzip -j $downloadedFile \*.ttf -d $out/share/fonts/opentype
|
||||||
unzip $src
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
sha256 = "0lrjd0bfy36f9j85m12afg5nvr5id3sig2nmzs5qifskbd7mqv9h";
|
||||||
mkdir -p $out/share/fonts/opentype
|
|
||||||
cp ./IPAfont00303/*.ttf $out/share/fonts/opentype/
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Japanese font package with Mincho and Gothic fonts";
|
description = "Japanese font package with Mincho and Gothic fonts";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user