mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 19:55:41 +03:00
ytdl-sub: 2025.05.23 -> 2025.06.01.post1, fix updateScript (#413411)
This commit is contained in:
commit
59457363e3
2 changed files with 9 additions and 4 deletions
|
@ -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";
|
||||
|
|
5
pkgs/by-name/yt/ytdl-sub/update.sh
Executable file
5
pkgs/by-name/yt/ytdl-sub/update.sh
Executable 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
|
Loading…
Add table
Add a link
Reference in a new issue