Merge pull request #261642 from nbraud/mpvScripts/chapterskip

This commit is contained in:
Maciej Krüger 2023-10-28 00:26:43 +02:00 committed by GitHub
commit 298571686f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 32 additions and 0 deletions

View File

@ -0,0 +1,31 @@
{ lib
, fetchFromGitHub
, nix-update-script
, stdenvNoCC }:
stdenvNoCC.mkDerivation {
pname = "chapterskip";
passthru.scriptName = "chapterskip.lua";
version = "unstable-2022-09-08";
src = fetchFromGitHub {
owner = "po5";
repo = "chapterskip";
rev = "b26825316e3329882206ae78dc903ebc4613f039";
hash = "sha256-OTrLQE3rYvPQamEX23D6HttNjx3vafWdTMxTiWpDy90=";
};
dontBuild = true;
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;
maintainers = with maintainers; [ nicoo ];
};
}

View File

@ -9,6 +9,7 @@ lib.recurseIntoAttrs
autocrop = callPackage ./autocrop.nix { };
autodeint = callPackage ./autodeint.nix { };
autoload = callPackage ./autoload.nix { };
chapterskip = callPackage ./chapterskip.nix { };
convert = callPackage ./convert.nix { };
inhibit-gnome = callPackage ./inhibit-gnome.nix { };
mpris = callPackage ./mpris.nix { };