my-nixpkgs/pkgs/fonts-ms-win11/default.nix

36 lines
855 B
Nix

{ 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/
mkdir -p $out/share/doc/$pname/
install -D {license,LICENSE}.* $out/share/doc/$pname/
runHook postInstall
'';
meta = with lib; {
homepage = "https://www.microsoft.com/windows/";
description = "Microsoft Windows 11 TrueType fonts for Linux";
license = licenses.unfree;
platforms = platforms.all;
};
}