From 00adb0968ce8592db442d4f30bf5a3494a45e101 Mon Sep 17 00:00:00 2001 From: x Date: Tue, 22 Apr 2025 15:09:11 +0800 Subject: [PATCH] edusong: ensure correct filename in installPhase fetchzip's unzipping the file without any special options will create a file with garbled characters (mojibake) and 'invalid encoding' appended to the filename. The original filename can be seen using unzipNLS with option -O CP950. Also see https://wiki.archlinux.org/title/Character_encoding#Troubleshooting. --- pkgs/by-name/ed/edusong/package.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/by-name/ed/edusong/package.nix b/pkgs/by-name/ed/edusong/package.nix index bdd306c9b272..dec473ccf5f0 100644 --- a/pkgs/by-name/ed/edusong/package.nix +++ b/pkgs/by-name/ed/edusong/package.nix @@ -16,7 +16,7 @@ stdenvNoCC.mkDerivation rec { installPhase = '' mkdir -p $out/share/fonts/ - mv *.ttf $out/share/fonts/ + mv eduSong_Unicode*.ttf $out/share/fonts/eduSong_Unicode\(2024年12月\).ttf ''; meta = {