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";