Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sarasa-term-nerdfont: init at 1.1.0 #346943

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions pkgs/by-name/sa/sarasa-term-nerdfont/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{ lib, stdenvNoCC, fetchurl, unzip, }:

stdenvNoCC.mkDerivation rec {
pname = "sarasa-term-sc-nerd";
version = "v1.1.0";
mkenkel marked this conversation as resolved.
Show resolved Hide resolved

src = fetchurl {
url = "https://github.com/laishulu/Sarasa-Term-SC-Nerd/releases/download/${version}/sarasa-term-sc-nerd.ttf.tar.gz";
mkenkel marked this conversation as resolved.
Show resolved Hide resolved
hash = "sha256-ADS5KTYQMTELd8MjAE+ugEwC5Gr8qDpN5kPirvgogAc=";
};

sourceRoot = ".";

nativeBuildInputs = [ unzip ];

installPhase = ''
runHook preInstall

mkdir -p $out/share/fonts/truetype
cp *.ttf $out/share/fonts/truetype

runHook postInstall
'';

meta = with lib; {
mkenkel marked this conversation as resolved.
Show resolved Hide resolved
description = "Font based on Sarasa Term SC font.";
longDescription = "Sarasa Term SC Nerd font is based on Sarasa Term SC font. Nerd fonts
patch program is modified, Nerd fonts is merged into Sarasa Term SC by this program,
and then some post-processing is done to form the final font.

This font is especially suitable for Simplified Chinese users to use in terminal or code editor.";
homepage = "https://github.com/laishulu/Sarasa-Term-SC-Nerd";
license = licenses.ofl;
mkenkel marked this conversation as resolved.
Show resolved Hide resolved
maintainers = with maintainers; [ mkenkel ];
mkenkel marked this conversation as resolved.
Show resolved Hide resolved
platforms = platforms.all;
mkenkel marked this conversation as resolved.
Show resolved Hide resolved
};
}

Loading