depot/third_party/nixpkgs/pkgs/applications/video/mpv/scripts/modernx-zydezu.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

44 lines
1 KiB
Nix

{
lib,
buildLua,
fetchFromGitHub,
makeFontsConf,
nix-update-script,
}:
buildLua (finalAttrs: {
pname = "modernx-zydezu";
version = "0.3.6.6";
scriptPath = "modernx.lua";
src = fetchFromGitHub {
owner = "zydezu";
repo = "ModernX";
rev = finalAttrs.version;
hash = "sha256-Jt3Y/4no3dUOopjvbS/dBGU0vw9Lq4o5inb4efuyYBM=";
};
postInstall = ''
mkdir -p $out/share/fonts
cp -r *.ttf $out/share/fonts
'';
passthru.extraWrapperArgs = [
"--set"
"FONTCONFIG_FILE"
(toString (makeFontsConf {
fontDirectories = [ "${finalAttrs.finalPackage}/share/fonts" ];
}))
];
passthru.updateScript = nix-update-script { };
meta = {
description = "Modern OSC UI replacement for MPV that retains the functionality of the default OSC";
changelog = "https://github.com/zydezu/ModernX/releases/tag/${finalAttrs.version}";
homepage = "https://github.com/zydezu/ModernX";
license = lib.licenses.lgpl21Plus;
maintainers = with lib.maintainers; [
luftmensch-luftmensch
Guanran928
];
};
})