biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / applications / video / mpv / scripts / sponsorblock-minimal.nix
blob7ea503ddd62c56edecfeddfa2a7452bcaeef6732
1 { lib, buildLua, fetchFromGitea, unstableGitUpdater, curl, coreutils }:
3 buildLua {
4   pname = "mpv_sponsorblock_minimal";
5   version = "unstable-2023-08-20";
6   scriptPath = "sponsorblock_minimal.lua";
8   src = fetchFromGitea {
9     domain = "codeberg.org";
10     owner = "jouni";
11     repo = "mpv_sponsorblock_minimal";
12     rev = "ca2844b8cf7674bfccd282d389a50427742251d3";
13     hash = "sha256-28HWZ6nOhKiE+5Ya1N3Vscd8aeH9OKS0t72e/xPfFQQ=";
14   };
15   passthru.updateScript = unstableGitUpdater { };
17   preInstall = ''
18     substituteInPlace sponsorblock_minimal.lua \
19       --replace-fail "curl" "${lib.getExe curl}" \
20       --replace-fail "sha256sum" "${lib.getExe' coreutils "sha256sum"}"
21   '';
23   meta = with lib; {
24     description =
25       "A minimal script to skip sponsored segments of YouTube videos";
26     homepage = "https://codeberg.org/jouni/mpv_sponsorblock_minimal";
27     license = licenses.gpl3Only;
28     platforms = platforms.all;
29     maintainers = with maintainers; [ arthsmn ];
30   };