Unverified Commit 3fbab70c authored by Naïm Camille Favier's avatar Naïm Camille Favier Committed by GitHub
Browse files

mpvScripts.cut: init at 2.2.0-unstable-2023-11-21 (#477579)

parents 88f9052d 171d889f
Loading
Loading
Loading
Loading
+38 −0
Original line number Diff line number Diff line
{
  lib,
  stdenvNoCC,
  fetchFromGitHub,
}:

stdenvNoCC.mkDerivation {
  pname = "mpv-cut";
  version = "2.2.0-unstable-2023-11-21";

  src = fetchFromGitHub {
    owner = "familyfriendlymikey";
    repo = "mpv-cut";
    rev = "3b18f1161ffb2ff822c88cb97e099772d4b3c26d";
    hash = "sha256-c4NHJM1qeXXBz8oyGUzS9QiAzRYiNKjmArM1K0Q2Xo0=";
  };

  dontBuild = true;
  dontCheck = true;

  installPhase = ''
    runHook preInstall

    install -Dm644 main.lua $out/share/mpv/scripts/cut.lua
    install -Dm644 utils $out/share/mpv/scripts/cut/utils

    runHook postInstall
  '';

  passthru.scriptName = "cut.lua";

  meta = with lib; {
    description = "An mpv plugin for cutting videos incredibly quickly";
    homepage = "https://github.com/familyfriendlymikey/mpv-cut";
    license = licenses.unfree; # the repository doesn't have a license
    maintainers = with maintainers; [ ncfavier ];
  };
}