diff --git a/pkgs/fonts-ms-win11/default.nix b/pkgs/fonts-ms-win11/default.nix new file mode 100644 index 0000000..9921605 --- /dev/null +++ b/pkgs/fonts-ms-win11/default.nix @@ -0,0 +1,32 @@ +{ lib +, stdenv +, fetchFromGitea +}: +stdenv.mkDerivation rec { + pname = "fonts-ms-win11"; + version = "unstable-2025-10-03"; + + src = fetchFromGitea { + domain = "git.zmsun.cn"; + owner = "pkg"; + repo = pname; + rev = "6bb3f27a46e2effefcbd6cc68f6cf1eae548e3e2"; + hash = "sha256-Fwe8fHgcn9gJl6uERvl5Q8C2XYfO99dAvHjV0sVUUhM="; + }; + + installPhase = '' + runHook preInstall + + mkdir -p $out/share/fonts/truetype + install -D *.{ttf,TTF} $out/share/fonts/truetype/ + install -D *.ttc $out/share/fonts/ + runHook postInstall + ''; + + meta = with lib; { + homepage = "https://git.zmsun.cn/pkg/fonts-ms-win11"; + description = "Microsoft Windows 11 TrueType fonts for Linux"; + license = licenses.unfree; + platforms = platforms.all; + }; +}