From fee5f4012e0e6334eb045773c8ecb711103c418d Mon Sep 17 00:00:00 2001 From: Sigmanificient Date: Fri, 1 May 2026 23:57:32 +0200 Subject: [PATCH] libertinus: use installFonts --- pkgs/by-name/li/libertinus/package.nix | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/pkgs/by-name/li/libertinus/package.nix b/pkgs/by-name/li/libertinus/package.nix index 212a0eb1eca2..ea11f10d53c0 100644 --- a/pkgs/by-name/li/libertinus/package.nix +++ b/pkgs/by-name/li/libertinus/package.nix @@ -2,6 +2,7 @@ lib, stdenvNoCC, fetchurl, + installFonts, zstd, }: @@ -14,15 +15,15 @@ stdenvNoCC.mkDerivation rec { hash = "sha256-JQZ3ySnTd1owkTZDWUN5ryZKwu8oAQNaody+MLm+I6Y="; }; - nativeBuildInputs = [ zstd ]; + outputs = [ + "out" + "webfont" + ]; - installPhase = '' - runHook preInstall - - install -m644 -Dt $out/share/fonts/opentype static/OTF/*.otf - - runHook postInstall - ''; + nativeBuildInputs = [ + installFonts + zstd + ]; meta = { description = "Libertinus font family";