mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-21 12:59:04 +02:00
sponsorblock-minimal: replace sha256sum with nix store path
Also format the file with nixfmt and replace `--replace` option with `--replace-fail`.
This commit is contained in:
parent
26e7632d0e
commit
b98497145c
|
@ -1,9 +1,4 @@
|
||||||
{ lib
|
{ lib, buildLua, fetchFromGitea, unstableGitUpdater, curl, coreutils }:
|
||||||
, buildLua
|
|
||||||
, fetchFromGitea
|
|
||||||
, unstableGitUpdater
|
|
||||||
, curl
|
|
||||||
}:
|
|
||||||
|
|
||||||
buildLua {
|
buildLua {
|
||||||
pname = "mpv_sponsorblock_minimal";
|
pname = "mpv_sponsorblock_minimal";
|
||||||
|
@ -17,15 +12,17 @@ buildLua {
|
||||||
rev = "ca2844b8cf7674bfccd282d389a50427742251d3";
|
rev = "ca2844b8cf7674bfccd282d389a50427742251d3";
|
||||||
hash = "sha256-28HWZ6nOhKiE+5Ya1N3Vscd8aeH9OKS0t72e/xPfFQQ=";
|
hash = "sha256-28HWZ6nOhKiE+5Ya1N3Vscd8aeH9OKS0t72e/xPfFQQ=";
|
||||||
};
|
};
|
||||||
passthru.updateScript = unstableGitUpdater {};
|
passthru.updateScript = unstableGitUpdater { };
|
||||||
|
|
||||||
preInstall = ''
|
preInstall = ''
|
||||||
substituteInPlace sponsorblock_minimal.lua \
|
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; {
|
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";
|
homepage = "https://codeberg.org/jouni/mpv_sponsorblock_minimal";
|
||||||
license = licenses.gpl3Only;
|
license = licenses.gpl3Only;
|
||||||
platforms = platforms.all;
|
platforms = platforms.all;
|
||||||
|
|
Loading…
Reference in a new issue