fonts-ms-win11: init
This commit is contained in:
parent
c8991b8e7e
commit
d19d53c6f4
1 changed files with 32 additions and 0 deletions
32
pkgs/fonts-ms-win11/default.nix
Normal file
32
pkgs/fonts-ms-win11/default.nix
Normal 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;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue