mpvScripts.chapterskip: Define updateScript

This commit is contained in:
nicoo 2023-10-23 20:55:11 +00:00
parent 44f36cdc9b
commit 5b0420769e

View File

@ -1,5 +1,6 @@
{ lib
, fetchFromGitHub
, nix-update-script
, stdenvNoCC }:
stdenvNoCC.mkDerivation {
@ -18,6 +19,10 @@ stdenvNoCC.mkDerivation {
preferLocalBuild = true;
installPhase = "install -Dt $out/share/mpv/scripts chapterskip.lua";
passthru.updateScript = nix-update-script {
extraArgs = [ "--version=branch" ];
};
meta = with lib; {
homepage = "https://github.com/po5/chapterskip";
platforms = platforms.all;