ytdl-sub: 2025.05.23 -> 2025.06.01.post1, fix updateScript (#413411)

This commit is contained in:
Felix Bargfeldt 2025-06-06 00:12:20 +02:00 committed by GitHub
commit 59457363e3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 9 additions and 4 deletions

View file

@ -4,18 +4,18 @@
ffmpeg,
lib,
versionCheckHook,
nix-update-script,
}:
python3Packages.buildPythonApplication rec {
pname = "ytdl-sub";
version = "2025.05.23";
version = "2025.06.01.post1";
pyproject = true;
src = fetchFromGitHub {
owner = "jmbannon";
repo = "ytdl-sub";
tag = version;
hash = "sha256-296lizseyBJdpu80MnquPB1ldGgpAcey3iDwiaLqpOQ=";
hash = "sha256-qwsUb9w/eeNO1mGYpnwkWgH5AfcUm7Y7DtkWep8SAcA=";
};
postPatch = ''
@ -45,7 +45,7 @@ python3Packages.buildPythonApplication rec {
nativeCheckInputs = [ versionCheckHook ];
versionCheckProgramArg = "--version";
passthru.updateScript = nix-update-script { };
passthru.updateScript = ./update.sh;
meta = {
homepage = "https://github.com/jmbannon/ytdl-sub";

View file

@ -0,0 +1,5 @@
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p curl jq nix-update
version=$(curl ${GITHUB_TOKEN:+-u ":$GITHUB_TOKEN"} -sfL "https://api.github.com/repos/jmbannon/ytdl-sub/releases/latest" | jq -r .tag_name)
nix-update --version="$version" ytdl-sub