Files
nixpkgs/pkgs/applications/video/mpv/scripts/sponsorblock-minimal.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

38 lines
995 B
Nix

{
lib,
buildLua,
fetchFromGitea,
unstableGitUpdater,
curl,
coreutils,
}:
buildLua {
pname = "mpv_sponsorblock_minimal";
version = "0-unstable-2025-09-09";
scriptPath = "sponsorblock_minimal.lua";
src = fetchFromGitea {
domain = "codeberg.org";
owner = "jouni";
repo = "mpv_sponsorblock_minimal";
rev = "fc0db1fbffc873ca02ced7602274393fde8857e5";
hash = "sha256-DOgJ1gZybfIFJQ5qt4B93ugHz1o+RJ7E8Cnb7itYfTs=";
};
passthru.updateScript = unstableGitUpdater { };
preInstall = ''
substituteInPlace sponsorblock_minimal.lua \
--replace-fail "curl" "${lib.getExe curl}" \
--replace-fail "sha256sum" "${lib.getExe' coreutils "sha256sum"}"
'';
meta = with lib; {
description = "Minimal script to skip sponsored segments of YouTube videos";
homepage = "https://codeberg.org/jouni/mpv_sponsorblock_minimal";
license = licenses.gpl3Only;
platforms = platforms.all;
maintainers = with maintainers; [ arthsmn ];
};
}