From 8650711fd81c6131ca77ec43f35e8b88d03b216a Mon Sep 17 00:00:00 2001 From: Anderson Torres Date: Thu, 6 Apr 2023 23:05:27 -0300 Subject: [PATCH] bqn386: split woff2 fonts into a separate output --- pkgs/data/fonts/bqn386/default.nix | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/pkgs/data/fonts/bqn386/default.nix b/pkgs/data/fonts/bqn386/default.nix index b908e2e2381..de1be0cc6f5 100644 --- a/pkgs/data/fonts/bqn386/default.nix +++ b/pkgs/data/fonts/bqn386/default.nix @@ -11,20 +11,22 @@ stdenvNoCC.mkDerivation { hash = "sha256-f0MbrxdkEiOqod41U07BvdDFDbFCqJuGyDIcx2Y24D0="; }; + outputs = [ "out" "woff2" ]; + installPhase = '' runHook preInstall - install -Dm644 -t $out/share/fonts/truetype *.ttf - install -Dm644 -t $out/share/fonts/woff2 *.woff2 + install -Dm444 -t $out/share/fonts/truetype *.ttf + install -Dm444 -t $woff2/share/fonts/woff2 *.woff2 runHook postInstall ''; - meta = with lib; { + meta = { description = "An APL and BQN font extending on APL386"; homepage = "https://dzaima.github.io/BQN386/"; - license = licenses.unlicense; - maintainers = with maintainers; [ skykanin ]; - platforms = platforms.all; + license = lib.licenses.unlicense; + maintainers = with lib.maintainers; [ skykanin ]; + platforms = lib.platforms.all; }; }