2024-01-16 02:36:17 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenvNoCC,
|
|
|
|
fetchFromGitHub,
|
2024-01-17 05:06:06 +00:00
|
|
|
nix-update-script,
|
2024-01-16 02:36:17 +00:00
|
|
|
}:
|
|
|
|
# TODO: use buildLua
|
|
|
|
# error: evaluation aborted with the following error message: 'lib.customisation.callPackageWith: Function called without required argument "buildLua"
|
2024-01-16 14:21:32 +00:00
|
|
|
stdenvNoCC.mkDerivation (finalAttrs: {
|
2024-01-16 02:36:17 +00:00
|
|
|
pname = "modernx";
|
|
|
|
version = "0.2.4";
|
|
|
|
|
|
|
|
# zydezu's fork
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "zydezu";
|
|
|
|
repo = "ModernX";
|
2024-01-16 14:21:32 +00:00
|
|
|
rev = finalAttrs.version;
|
2024-01-16 02:36:17 +00:00
|
|
|
hash = "sha256-b5dJeJ5GPEKhyznYIAQ3YzUq01rYUhDbci1ilNuXrdk=";
|
|
|
|
};
|
|
|
|
|
|
|
|
dontConfigure = true;
|
|
|
|
dontBuild = true;
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -Dm644 modernx.lua $out/share/mpv/scripts/modernx.lua
|
|
|
|
|
|
|
|
# I dont know how to handle the font...
|
|
|
|
install -Dm644 Material-Design-Iconic-Font.ttf $out/share/mpv/fonts/Material-Design-Iconic-Font.ttf
|
|
|
|
install -Dm644 Material-Design-Iconic-Round.ttf $out/share/mpv/fonts/Material-Design-Iconic-Round.ttf
|
|
|
|
'';
|
|
|
|
|
|
|
|
passthru.scriptName = "modernx.lua";
|
2024-01-17 05:06:06 +00:00
|
|
|
passthru.updateScript = nix-update-script {};
|
2024-01-16 02:36:17 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A modern OSC UI replacement for MPV that retains the functionality of the default OSC. (@zydezu's fork)";
|
|
|
|
homepage = "https://github.com/zydezu/ModernX/";
|
|
|
|
license = licenses.gpl2; # https://github.com/maoiscat/mpv-osc-modern/issues/43
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
2024-01-16 14:21:32 +00:00
|
|
|
})
|