diff --git a/pkgs/applications/video/mpv/scripts/default.nix b/pkgs/applications/video/mpv/scripts/default.nix index cdc641043f37..f2fd9255a1c8 100644 --- a/pkgs/applications/video/mpv/scripts/default.nix +++ b/pkgs/applications/video/mpv/scripts/default.nix @@ -16,7 +16,7 @@ in lib.recurseIntoAttrs mpris = callPackage ./mpris.nix { }; mpv-playlistmanager = callPackage ./mpv-playlistmanager.nix { inherit buildLua; }; mpv-webm = callPackage ./mpv-webm.nix { }; - mpvacious = callPackage ./mpvacious.nix { }; + mpvacious = callPackage ./mpvacious.nix { inherit buildLua; }; quality-menu = callPackage ./quality-menu.nix { inherit buildLua; }; simple-mpv-webui = callPackage ./simple-mpv-webui.nix { }; sponsorblock = callPackage ./sponsorblock.nix { }; diff --git a/pkgs/applications/video/mpv/scripts/mpvacious.nix b/pkgs/applications/video/mpv/scripts/mpvacious.nix index d2f2434fda11..93e1402289cd 100644 --- a/pkgs/applications/video/mpv/scripts/mpvacious.nix +++ b/pkgs/applications/video/mpv/scripts/mpvacious.nix @@ -1,20 +1,20 @@ { lib -, stdenvNoCC +, buildLua , fetchFromGitHub , curl , wl-clipboard , xclip }: -stdenvNoCC.mkDerivation rec { +buildLua rec { pname = "mpvacious"; - version = "0.24"; + version = "0.25"; src = fetchFromGitHub { owner = "Ajatt-Tools"; repo = "mpvacious"; rev = "v${version}"; - sha256 = "sha256-o0YcoSI+4934HlyIoI5V1h/FalCe+6tXS8Lg6kXWjSg="; + sha256 = "sha256-XTnib4cguWFEvZtmsLfkesbjFbkt2YoyYLT587ajyUM="; }; postPatch = '' @@ -26,23 +26,16 @@ stdenvNoCC.mkDerivation rec { --replace "'xclip" "'${xclip}/bin/xclip" ''; - dontBuild = true; - installPhase = '' runHook preInstall - rm -r .github - mkdir -p $out/share/mpv/scripts - cp -r . $out/share/mpv/scripts/mpvacious + make PREFIX=$out/share/mpv install runHook postInstall ''; - passthru.scriptName = "mpvacious"; - meta = with lib; { description = "Adds mpv keybindings to create Anki cards from movies and TV shows"; homepage = "https://github.com/Ajatt-Tools/mpvacious"; license = licenses.gpl3Plus; - platforms = platforms.all; maintainers = with maintainers; [ kmicklas ]; }; }