···11-{ lib, fetchzip }:
11+{ lib, stdenvNoCC, fetchurl }:
2233-let
33+stdenvNoCC.mkDerivation rec {
44 pname = "unfonts-core";
55 version = "1.0.2-080608";
66-in fetchzip {
77- name = "${pname}-${version}";
88- url = "https://kldp.net/unfonts/release/2607-un-fonts-core-${version}.tar.gz";
99- hash = "sha256-k9C7d/SbVLWFzRnDWpOIMtY6cAEIcaLcbxQAqjwuWds=";
1061111- postFetch = ''
1212- tar -xzf $downloadedFile --strip-components=1
77+ src = fetchurl {
88+ url = "https://kldp.net/unfonts/release/2607-un-fonts-core-${version}.tar.gz";
99+ hash = "sha256-OwpydPmqt+jw8ZOMAacOFYF2bVG0lLoUVoPzesVXkY4=";
1010+ };
1111+1212+ dontBuild = true;
1313+1414+ installPhase = ''
1515+ runHook preInstall
1616+1317 install -m444 -Dt $out/share/fonts/truetype *.ttf
1818+1919+ runHook postInstall
1420 '';
15211622 meta = with lib; {
···2026 The Un-fonts come from the HLaTeX as type1 fonts in 1998 by Koaunghi Un, he made type1 fonts to use with Korean TeX (HLaTeX) in the late 1990's and released it under the GPL license.
21272228 They were converted to TrueType with the FontForge (PfaEdit) by Won-kyu Park in 2003.
2323- '';
2929+ '';
2430 license = licenses.gpl2;
2531 platforms = platforms.all;
2632 maintainers = [ maintainers.ehmry ];