Unverified Commit 29857168 authored by Maciej Krüger's avatar Maciej Krüger Committed by GitHub
Browse files

Merge pull request #261642 from nbraud/mpvScripts/chapterskip

parents 466f370e 5b042076
Loading
Loading
Loading
Loading
+31 −0
Original line number Diff line number Diff line
{ 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 ];
  };
}
+1 −0
Original line number Diff line number Diff line
@@ -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 { };