fonts-ms-win11: init

This commit is contained in:
ZMSUN 2025-10-03 12:46:06 +08:00
parent c8991b8e7e
commit d19d53c6f4
Signed by: zm
GPG key ID: 9887E5061F495C4C

View file

@ -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;
};
}