feat(packages): cal-sans package definition

This commit is contained in:
Guz
2026-03-24 14:21:07 -03:00
parent 35e6515a55
commit 11b1d4486a
2 changed files with 27 additions and 0 deletions

View File

@@ -258,6 +258,7 @@
}: {
audacity4 = pkgs.callPackage ./packages/audacity4 {};
neovim = inputs.neovim.packages.${pkgs.system}.default;
cal-sans = pkgs.callPackage ./packages/cal-sans.nix {};
devkit = {
ghostty = pkgs.callPackage ./packages/devkit/ghostty.nix {
command = "${lib.getExe self.packages.${pkgs.stdenv.hostPlatform.system}.devkit.zsh}";

26
packages/cal-sans.nix Normal file
View File

@@ -0,0 +1,26 @@
{
lib,
pkgs,
stdenv,
...
}:
stdenv.mkDerivation rec {
name = "Cal Sans";
pname = "cal-sans";
version = "1.0.0";
src = pkgs.fetchzip {
url = "https://github.com/calcom/font/releases/download/v${version}/CalSans_Semibold_v${version}.zip";
stripRoot = false;
hash = "sha256-JqU64JUgWimJgrKX3XYcml8xsvy//K7O5clNKJRGaTM=";
};
installPhase = ''
runHook preInstall
install -m444 -Dt $out/share/fonts/truetype fonts/webfonts/*.ttf
runHook postInstall
'';
meta = with lib; {
homepage = "https://github.com/calcom/font";
license = licenses.ofl;
platforms = platforms.all;
};
}