mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-19 04:02:10 +00:00
yasashisa-gothic: init at 0-unstable-2014-03-13
This commit is contained in:
parent
f8cec6e01d
commit
e94f42a0f3
40
pkgs/by-name/ya/yasashisa-gothic/package.nix
Normal file
40
pkgs/by-name/ya/yasashisa-gothic/package.nix
Normal file
|
@ -0,0 +1,40 @@
|
|||
{ lib
|
||||
, stdenvNoCC
|
||||
, fetchurl
|
||||
, unzrip
|
||||
}:
|
||||
|
||||
stdenvNoCC.mkDerivation {
|
||||
pname = "yasashisa-gothic";
|
||||
version = "0-unstable-2014-03-13";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://flop.sakura.ne.jp/font/fontna-op/07Yasashisa.zip";
|
||||
hash = "sha256-JmsRvUak9FBjDw8wNA2R3lEt52/UpElleziQqa5Pm4w=";
|
||||
};
|
||||
|
||||
unpackPhase = ''
|
||||
runHook preUnpack
|
||||
|
||||
${lib.getExe unzrip} -O SHIFT_JIS "$src"
|
||||
|
||||
runHook postUnpack
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
install -Dm444 "07Yasashisa/07やさしさゴシック.ttf" -t "$out/share/fonts/truetype"
|
||||
install -Dm444 "07Yasashisa/その他-サポート外/OpenType/YasashisaGothic.otf" -t "$out/share/fonts/opentype"
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Free gothic style font by Fontna";
|
||||
homepage = "http://www.fontna.com/blog/379/";
|
||||
license = with licenses; [ ipa mplus ];
|
||||
platforms = platforms.all;
|
||||
maintainers = with maintainers; [ h7x4 ];
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue