nixpkgs/pkgs/data/fonts/mplus-outline-fonts/default.nix

26 lines
651 B
Nix
Raw Normal View History

{ lib, fetchzip }:
2015-03-25 16:53:26 +00:00
2017-08-10 19:43:49 +00:00
let
version = "063a";
2017-08-10 19:43:49 +00:00
in fetchzip rec {
name = "mplus-${version}";
2015-03-25 16:53:26 +00:00
url = "mirror://osdn/mplus-fonts/62344/mplus-TESTFLIGHT-${version}.tar.xz";
2015-03-25 16:53:26 +00:00
2017-08-10 19:43:49 +00:00
postFetch = ''
tar -xJf $downloadedFile --strip-components=1
2015-03-25 16:53:26 +00:00
mkdir -p $out/share/fonts/truetype
cp *.ttf $out/share/fonts/truetype
'';
sha256 = "1khbkch2r96ppifc93bmy1v047pgciyhfmcjb98ggncp5ix885xz";
2017-08-10 19:43:49 +00:00
meta = with lib; {
2015-03-25 16:53:26 +00:00
description = "M+ Outline Fonts";
homepage = http://mplus-fonts.sourceforge.jp/mplus-outline-fonts/index-en.html;
license = licenses.mit;
maintainers = with maintainers; [ henrytill ];
platforms = platforms.all;
};
}