2023-01-18 20:29:32 +00:00
|
|
|
{ lib, stdenvNoCC, fetchurl }:
|
2022-04-22 05:29:31 +00:00
|
|
|
|
2023-01-18 20:29:32 +00:00
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
|
|
pname = "nanum";
|
2023-02-19 16:08:11 +00:00
|
|
|
version = "20200506";
|
2022-04-22 05:29:31 +00:00
|
|
|
|
2023-01-18 20:29:32 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://ubuntu/pool/universe/f/fonts-${pname}/fonts-${pname}_${version}.orig.tar.xz";
|
2023-02-19 16:08:11 +00:00
|
|
|
hash = "sha256-FXgDdIGYFRJQo898sDrvhE5AjpyYhJ3YieGRhGqsrUs=";
|
2023-01-18 20:29:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
2022-04-22 05:29:31 +00:00
|
|
|
mkdir -p $out/share/fonts
|
|
|
|
cp *.ttf $out/share/fonts
|
2023-01-18 20:29:32 +00:00
|
|
|
|
|
|
|
runHook postInstall
|
2022-04-22 05:29:31 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Nanum Korean font set";
|
|
|
|
homepage = "https://hangeul.naver.com/font";
|
|
|
|
license = licenses.ofl;
|
|
|
|
maintainers = with lib.maintainers; [ serge ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|