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:
volth 2017-08-11 03:51:51 +00:00 committed by Franz Pletz
parent 9f11dcc625
commit be422a4a68

View file

@ -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 = ''