mpvScripts.{modernx,modernx-zydezu,modernz,mpv-osc-modern}: use installFonts (#495852)

This commit is contained in:
isabel 2026-03-05 08:56:55 +00:00 committed by GitHub
commit 400ca1e2dd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 11 additions and 15 deletions

View file

@ -2,6 +2,7 @@
lib,
buildLua,
fetchFromGitHub,
installFonts,
makeFontsConf,
nix-update-script,
}:
@ -17,10 +18,8 @@ buildLua (finalAttrs: {
hash = "sha256-a+StfEYQwt5NuELvanvZllrD2RQ0g9JBpCznMdSDM5Y=";
};
postInstall = ''
mkdir -p $out/share/fonts
cp -r *.ttf $out/share/fonts
'';
nativeBuildInputs = [ installFonts ];
passthru.extraWrapperArgs = [
"--set"
"FONTCONFIG_FILE"

View file

@ -2,6 +2,7 @@
lib,
buildLua,
fetchFromGitHub,
installFonts,
makeFontsConf,
nix-update-script,
}:
@ -17,10 +18,8 @@ buildLua (finalAttrs: {
hash = "sha256-q7DwyfmOIM7K1L7vvCpq1EM0RVpt9E/drhAa9rLYb1k=";
};
postInstall = ''
mkdir -p $out/share/fonts
cp -r *.ttf $out/share/fonts
'';
nativeBuildInputs = [ installFonts ];
passthru.extraWrapperArgs = [
"--set"
"FONTCONFIG_FILE"

View file

@ -2,6 +2,7 @@
lib,
buildLua,
fetchFromGitHub,
installFonts,
makeFontsConf,
nix-update-script,
}:
@ -17,9 +18,7 @@ buildLua (finalAttrs: {
hash = "sha256-9jth8TCAx/cmbAfO8s+1WPpMDuF79gQtVlC4OG2adrA=";
};
postInstall = ''
install -Dt $out/share/fonts *.ttf
'';
nativeBuildInputs = [ installFonts ];
passthru.extraWrapperArgs = [
"--set"

View file

@ -2,6 +2,7 @@
lib,
buildLua,
fetchFromGitHub,
installFonts,
makeFontsConf,
nix-update-script,
}:
@ -17,10 +18,8 @@ buildLua (finalAttrs: {
hash = "sha256-RMUy8UpSRSCEPAbnGLpJ2NjDsDdkjq8cNsdGwsQ5ANU=";
};
postInstall = ''
mkdir -p $out/share/fonts
cp -r *.ttf $out/share/fonts
'';
nativeBuildInputs = [ installFonts ];
passthru.extraWrapperArgs = [
"--set"
"FONTCONFIG_FILE"