Initial commit

This commit is contained in:
2026-03-31 16:53:11 +02:00
commit d0eba1c834
343 changed files with 34443 additions and 0 deletions
+42
View File
@@ -0,0 +1,42 @@
{
stdenv,
lib,
fetchFromGitHub,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "apple-fonts";
version = "1.0";
src = fetchFromGitHub {
owner = "0xsharkboy";
repo = "Apple-Fonts-Collection";
tag = "v${finalAttrs.version}";
sha256 = "sha256-8EZ7fYy6CONgyj3dHOsaVSF0oMRH+SRZclwdrMSA0h8=";
};
dontBuild = true;
installPhase = let
fontDirs = ["NewYork" "SF-Compact" "SF-Mono" "SF-Pro"];
in ''
runHook preInstall
mkdir -p $out/share/fonts/{opentype,truetype}
${lib.concatMapStringsSep "\n" (dir: ''
cp ${dir}/*.otf $out/share/fonts/opentype/ 2>/dev/null || true
cp ${dir}/*.ttf $out/share/fonts/truetype/ 2>/dev/null || true
'')
fontDirs}
runHook postInstall
'';
meta = {
description = "Apple Fonts Collection including SF Pro, SF Compact, SF Mono, and New York";
homepage = "https://github.com/0xsharkboy/Apple-Fonts-Collection";
changelog = "https://github.com/0xsharkboy/Apple-Fonts-Collection/releases/tag/v${finalAttrs.version}";
license = lib.licenses.mit;
platforms = lib.platforms.all;
};
})