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-09-19 14:19:46 +00:00
|
|
|
version = "0.3.6.6";
|
2024-04-21 15:54:59 +00:00
|
|
|
|
|
|
|
scriptPath = "modernx.lua";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "zydezu";
|
|
|
|
repo = "ModernX";
|
|
|
|
rev = finalAttrs.version;
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-Jt3Y/4no3dUOopjvbS/dBGU0vw9Lq4o5inb4efuyYBM=";
|
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 { };
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
meta = {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Modern OSC UI replacement for MPV that retains the functionality of the default OSC";
|
2024-09-19 14:19:46 +00:00
|
|
|
changelog = "https://github.com/zydezu/ModernX/releases/tag/${finalAttrs.version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
homepage = "https://github.com/zydezu/ModernX";
|
2024-09-19 14:19:46 +00:00
|
|
|
license = lib.licenses.lgpl21Plus;
|
|
|
|
maintainers = with lib.maintainers; [
|
2024-05-15 15:35:15 +00:00
|
|
|
luftmensch-luftmensch
|
|
|
|
Guanran928
|
|
|
|
];
|
2024-04-21 15:54:59 +00:00
|
|
|
};
|
|
|
|
})
|