From 2642483b014ad16977e41f6a7037a0788ca0603a Mon Sep 17 00:00:00 2001 From: pancaek <20342389+pancaek@users.noreply.github.com> Date: Thu, 7 May 2026 12:27:48 -0700 Subject: [PATCH 1/2] alice: use installFonts --- pkgs/by-name/al/alice/package.nix | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/pkgs/by-name/al/alice/package.nix b/pkgs/by-name/al/alice/package.nix index daf66b775658..72f5dd246242 100644 --- a/pkgs/by-name/al/alice/package.nix +++ b/pkgs/by-name/al/alice/package.nix @@ -2,6 +2,7 @@ lib, stdenv, fetchzip, + installFonts, }: stdenv.mkDerivation (finalAttrs: { @@ -10,7 +11,7 @@ stdenv.mkDerivation (finalAttrs: { outputs = [ "out" - "woff2" + "webfont" ]; src = fetchzip { @@ -21,18 +22,10 @@ stdenv.mkDerivation (finalAttrs: { hash = "sha256-p+tE3DECfJyBIPyafGZ8jDYQ1lPb+iAnEwLyaUy7DW0="; }; + nativeBuildInputs = [ installFonts ]; + dontBuild = true; - installPhase = '' - runHook preInstall - - install -m444 -Dt $out/share/fonts/truetype fonts/ttf/*.ttf - install -m444 -Dt $out/share/fonts/opentype fonts/otf/*.otf - install -m444 -Dt $woff2/share/fonts/woff2 fonts/webfonts/*.woff2 - - runHook postInstall - ''; - meta = { description = "Open-source font by Ksenia Erulevich"; homepage = "https://github.com/cyrealtype/Alice"; From 3e4f42ed1dbd27bd17fc1910e30e546842eb17ee Mon Sep 17 00:00:00 2001 From: pancaek <20342389+pancaek@users.noreply.github.com> Date: Thu, 7 May 2026 12:30:01 -0700 Subject: [PATCH 2/2] alice: lowercase pname, small cleanup --- pkgs/by-name/al/alice/package.nix | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/pkgs/by-name/al/alice/package.nix b/pkgs/by-name/al/alice/package.nix index 72f5dd246242..822ba52f8f6b 100644 --- a/pkgs/by-name/al/alice/package.nix +++ b/pkgs/by-name/al/alice/package.nix @@ -6,7 +6,7 @@ }: stdenv.mkDerivation (finalAttrs: { - pname = "Alice"; + pname = "alice"; version = "2.003"; outputs = [ @@ -15,9 +15,7 @@ stdenv.mkDerivation (finalAttrs: { ]; src = fetchzip { - url = - with finalAttrs; - "https://github.com/cyrealtype/${pname}/releases/download/v${version}/${pname}-v${version}.zip"; + url = "https://github.com/cyrealtype/Alice/releases/download/v${finalAttrs.version}/Alice-v${finalAttrs.version}.zip"; stripRoot = false; hash = "sha256-p+tE3DECfJyBIPyafGZ8jDYQ1lPb+iAnEwLyaUy7DW0="; };