diff options
author | volth <volth@webmaster.ms> | 2017-08-11 03:51:51 +0000 |
---|---|---|
committer | Franz Pletz <fpletz@fnordicwalking.de> | 2017-08-11 15:29:57 +0200 |
commit | be422a4a68cf1d9140b5de6930ef7dcb569731ba (patch) | |
tree | 8effb15bbf91e8a8d702a03ec4e711eefbdb497e /pkgs/data/fonts/ipaexfont | |
parent | 9f11dcc625be85996348f0e95a27800dcdc4b592 (diff) |
ipaexfont: make the font derivation fixed-output
- [x] make the font derivation fixed-output (https://github.com/NixOS/nixpkgs/issues/27754)
Diffstat (limited to 'pkgs/data/fonts/ipaexfont')
-rw-r--r-- | pkgs/data/fonts/ipaexfont/default.nix | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/pkgs/data/fonts/ipaexfont/default.nix b/pkgs/data/fonts/ipaexfont/default.nix index e6d4b6734bf32..dfeab5124c846 100644 --- a/pkgs/data/fonts/ipaexfont/default.nix +++ b/pkgs/data/fonts/ipaexfont/default.nix @@ -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"; - }; - - buildInputs = [ unzip ]; + url = "http://dl.ipafont.ipa.go.jp/IPAexfont/IPAexfont00301.zip"; - 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 = '' |