hannom: fix build
This commit is contained in:
parent
09091c7521
commit
0816b75dd6
|
@ -1,27 +1,28 @@
|
||||||
{ lib, fetchzip }:
|
{ lib, stdenvNoCC, fetchzip }:
|
||||||
|
|
||||||
let
|
stdenvNoCC.mkDerivation rec {
|
||||||
|
pname = "hannom";
|
||||||
version = "2005";
|
version = "2005";
|
||||||
in fetchzip {
|
|
||||||
name = "hannom-${version}";
|
|
||||||
|
|
||||||
url = "mirror://sourceforge/vietunicode/hannom/hannom%20v${version}/hannomH.zip";
|
src = fetchzip {
|
||||||
|
url = "mirror://sourceforge/vietunicode/hannom/hannom%20v${version}/hannomH.zip";
|
||||||
|
stripRoot = false;
|
||||||
|
hash = "sha256-Oh8V72tYvVA6Sk0f9UTIkRQYjdUbEB/fmCSaRYfyoP8=";
|
||||||
|
};
|
||||||
|
|
||||||
stripRoot = false;
|
dontBuild = true;
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
|
|
||||||
postFetch = ''
|
|
||||||
mkdir -p $out/share/fonts/truetype
|
mkdir -p $out/share/fonts/truetype
|
||||||
mv $out/*.ttf -t $out/share/fonts/truetype
|
mv *.ttf -t $out/share/fonts/truetype
|
||||||
shopt -s extglob dotglob
|
|
||||||
rm -rf $out/!(share)
|
|
||||||
shopt -u extglob dotglob
|
|
||||||
'';
|
|
||||||
|
|
||||||
sha256 = "sha256-zOYJxEHl4KM0ncVQDBs9+e3z8DxzF2ef3pRj0OVSuUo=";
|
runHook postInstall
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "UNICODE Han Nom Font Set";
|
description = "UNICODE Han Nom Font Set";
|
||||||
homepage = "http://vietunicode.sourceforge.net/fonts/fonts_hannom.html";
|
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
The true type fonts HAN NOM A and HAN NOM B have been developed by Chan
|
The true type fonts HAN NOM A and HAN NOM B have been developed by Chan
|
||||||
Nguyen Do Quoc Bao (Germany), To Minh Tam (USA) and Ni sinh Thien Vien Vien
|
Nguyen Do Quoc Bao (Germany), To Minh Tam (USA) and Ni sinh Thien Vien Vien
|
||||||
|
@ -31,6 +32,7 @@ in fetchzip {
|
||||||
code points by the Unicode Standard. Two sets of true type fonts are
|
code points by the Unicode Standard. Two sets of true type fonts are
|
||||||
available with high and low resolutions.
|
available with high and low resolutions.
|
||||||
'';
|
'';
|
||||||
|
homepage = "https://vietunicode.sourceforge.net/fonts/fonts_hannom.html";
|
||||||
license = licenses.unfree;
|
license = licenses.unfree;
|
||||||
maintainers = with maintainers; [ wegank ];
|
maintainers = with maintainers; [ wegank ];
|
||||||
platforms = platforms.all;
|
platforms = platforms.all;
|
||||||
|
|
Loading…
Reference in a new issue