Merge pull request #302938 from onemoresuza/sponsorblock-minimal

sponsorblock-minimal: replace sha256sum with nix store path
This commit is contained in:
Jörg Thalheim 2024-04-10 09:01:51 +02:00 committed by GitHub
commit f53c874380
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 9 deletions

View File

@ -1,9 +1,4 @@
{ lib
, buildLua
, fetchFromGitea
, unstableGitUpdater
, curl
}:
{ lib, buildLua, fetchFromGitea, unstableGitUpdater, curl, coreutils }:
buildLua {
pname = "mpv_sponsorblock_minimal";
@ -17,15 +12,17 @@ buildLua {
rev = "ca2844b8cf7674bfccd282d389a50427742251d3";
hash = "sha256-28HWZ6nOhKiE+5Ya1N3Vscd8aeH9OKS0t72e/xPfFQQ=";
};
passthru.updateScript = unstableGitUpdater {};
passthru.updateScript = unstableGitUpdater { };
preInstall = ''
substituteInPlace sponsorblock_minimal.lua \
--replace "curl" "${lib.getExe curl}"
--replace-fail "curl" "${lib.getExe curl}" \
--replace-fail "sha256sum" "${lib.getExe' coreutils "sha256sum"}"
'';
meta = with lib; {
description = "A minimal script to skip sponsored segments of YouTube videos";
description =
"A minimal script to skip sponsored segments of YouTube videos";
homepage = "https://codeberg.org/jouni/mpv_sponsorblock_minimal";
license = licenses.gpl3Only;
platforms = platforms.all;