fira-code: add option to install regular fonts instead

Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
This commit is contained in:
Sefa Eyeoglu 2024-04-18 18:03:45 +02:00 committed by Robert Helgesson
parent 5448017c98
commit 05b242b188

View File

@ -1,4 +1,4 @@
{ lib, stdenvNoCC, fetchzip }:
{ lib, stdenvNoCC, fetchzip, useVariableFont ? true }:
stdenvNoCC.mkDerivation rec {
pname = "fira-code";
@ -14,7 +14,7 @@ stdenvNoCC.mkDerivation rec {
installPhase = ''
runHook preInstall
install -Dm644 variable_ttf/*-VF.ttf -t $out/share/fonts/truetype
install -Dm644 -t $out/share/fonts/truetype ${if useVariableFont then "variable_ttf/*-VF.ttf" else "ttf/*.ttf"}
runHook postInstall
'';