2024-05-15 15:35:15 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildLua,
|
|
|
|
fetchFromGitHub,
|
|
|
|
makeFontsConf,
|
|
|
|
nix-update-script,
|
2024-04-21 15:54:59 +00:00
|
|
|
}:
|
|
|
|
buildLua (finalAttrs: {
|
|
|
|
pname = "modernx-zydezu";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "0.3.5.5";
|
2024-04-21 15:54:59 +00:00
|
|
|
|
|
|
|
scriptPath = "modernx.lua";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "zydezu";
|
|
|
|
repo = "ModernX";
|
|
|
|
rev = finalAttrs.version;
|
2024-06-05 15:53:02 +00:00
|
|
|
hash = "sha256-sPpVwI8w5JsP/jML0viOSqhyYBVKfxWuKbxHkX3GVug=";
|
2024-04-21 15:54:59 +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; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Modern OSC UI replacement for MPV that retains the functionality of the default OSC";
|
2024-04-21 15:54:59 +00:00
|
|
|
homepage = "https://github.com/zydezu/ModernX";
|
|
|
|
license = licenses.lgpl21Plus;
|
2024-05-15 15:35:15 +00:00
|
|
|
maintainers = with maintainers; [
|
|
|
|
luftmensch-luftmensch
|
|
|
|
Guanran928
|
|
|
|
];
|
2024-04-21 15:54:59 +00:00
|
|
|
};
|
|
|
|
})
|