mirror of
https://github.com/EdenQwQ/nixos.git
synced 2026-02-03 19:53:25 +08:00
update maple font
This commit is contained in:
parent
c3172230d0
commit
48e00ea4f8
6 changed files with 37 additions and 83 deletions
34
pkgs/maple-mono-variable.nix
Normal file
34
pkgs/maple-mono-variable.nix
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
{
|
||||
lib,
|
||||
stdenv,
|
||||
unzip,
|
||||
fetchurl,
|
||||
}:
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "MapleMono-Variable";
|
||||
version = "7.3";
|
||||
src = fetchurl {
|
||||
url = "https://github.com/subframe7536/Maple-font/releases/download/v${version}/${pname}.zip";
|
||||
sha256 = "1wfgfginnrqk2ppiyxb6jbvflha9kx0yqj84mbw04c923mav56z0";
|
||||
};
|
||||
|
||||
# Work around the "unpacker appears to have produced no directories"
|
||||
# case that happens when the archive doesn't have a subdirectory.
|
||||
sourceRoot = ".";
|
||||
nativeBuildInputs = [ unzip ];
|
||||
installPhase = ''
|
||||
find . -name '*.ttf' -exec install -Dt $out/share/fonts/truetype {} \;
|
||||
find . -name '*.otf' -exec install -Dt $out/share/fonts/opentype {} \;
|
||||
find . -name '*.woff2' -exec install -Dt $out/share/fonts/woff2 {} \;
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/subframe7536/Maple-font";
|
||||
description = ''
|
||||
Open source Nerd Font CN unhinted font with round corner and ligatures for IDE and command line
|
||||
'';
|
||||
license = licenses.ofl;
|
||||
platforms = platforms.all;
|
||||
maintainers = with maintainers; [ oluceps ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue