Skip to content

Commit

Permalink
feat: add firge package
Browse files Browse the repository at this point in the history
  • Loading branch information
Omochice committed Jan 7, 2025
1 parent d7e2109 commit 3ab29a4
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -86,3 +86,4 @@ config/fish/functions/fzf_key_bindings.fish
!/flake.lock
!/config/nix/**
!config/*/default.nix
!config/font/**
28 changes: 28 additions & 0 deletions config/font/firge-nerd/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
lib,
stdenvNoCC,
fetchzip,
}:

stdenvNoCC.mkDerivation rec {
pname = "FirgeNerd";
version = "0.3.0";

src = fetchzip {
url = "https://github.com/yuru7/Firge/releases/download/v${version}/${pname}_v${version}.zip";
hash = "sha256-Zb95RroGitkOetmLPa4r8EsIKnKiYw7pAlVg6j9lgoc=";
};

installPhase = ''
runHook preInstall
install -Dm644 *.ttf -t $out/share/fonts/FirgeNerd
runHook postInstall
'';

meta = with lib; {
description = "Programming font that combines Genshin Gothic and Fira Mono with Nerd Font";
homepage = "https://github.com/yuru7/Firge";
license = licenses.ofl;
platforms = platforms.all;
};
}
28 changes: 28 additions & 0 deletions config/font/firge/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
lib,
stdenvNoCC,
fetchzip,
}:

stdenvNoCC.mkDerivation rec {
pname = "Firge";
version = "0.3.0";

src = fetchzip {
url = "https://github.com/yuru7/Firge/releases/download/v${version}/${pname}_v${version}.zip";
hash = "sha256-zPAeOits3FxIwerGCY8L3eDZtBi3qU19p3XOhtcMV64=";
};

installPhase = ''
runHook preInstall
install -Dm644 *.ttf -t $out/share/fonts/Firge
runHook postInstall
'';

meta = with lib; {
description = "Programming font that combines Genshin Gothic and Fira Mono";
homepage = "https://github.com/yuru7/Firge";
license = licenses.ofl;
platforms = platforms.all;
};
}

0 comments on commit 3ab29a4

Please sign in to comment.