2024-04-30 18:04:06 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildLua,
|
|
|
|
fetchFromGitHub,
|
|
|
|
makeFontsConf,
|
|
|
|
nix-update-script,
|
2024-03-18 06:30:18 +00:00
|
|
|
}:
|
|
|
|
buildLua (finalAttrs: {
|
|
|
|
pname = "modernx";
|
2024-05-01 09:54:49 +00:00
|
|
|
version = "0.6.1";
|
2024-03-18 06:30:18 +00:00
|
|
|
|
|
|
|
scriptPath = "modernx.lua";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cyl0";
|
|
|
|
repo = "ModernX";
|
|
|
|
rev = finalAttrs.version;
|
2024-05-01 09:54:49 +00:00
|
|
|
hash = "sha256-q7DwyfmOIM7K1L7vvCpq1EM0RVpt9E/drhAa9rLYb1k=";
|
2024-03-18 06:30:18 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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 = with lib; {
|
|
|
|
description = "Modern OSC UI replacement for MPV that retains the functionality of the default OSC";
|
|
|
|
homepage = "https://github.com/cyl0/ModernX";
|
|
|
|
license = licenses.lgpl21Plus;
|
|
|
|
maintainers = with maintainers; [ Guanran928 ];
|
|
|
|
};
|
|
|
|
})
|