mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 13:40:28 +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,
|
ffmpeg,
|
||||||
lib,
|
lib,
|
||||||
versionCheckHook,
|
versionCheckHook,
|
||||||
nix-update-script,
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
python3Packages.buildPythonApplication rec {
|
python3Packages.buildPythonApplication rec {
|
||||||
pname = "ytdl-sub";
|
pname = "ytdl-sub";
|
||||||
version = "2025.05.23";
|
version = "2025.06.01.post1";
|
||||||
pyproject = true;
|
pyproject = true;
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "jmbannon";
|
owner = "jmbannon";
|
||||||
repo = "ytdl-sub";
|
repo = "ytdl-sub";
|
||||||
tag = version;
|
tag = version;
|
||||||
hash = "sha256-296lizseyBJdpu80MnquPB1ldGgpAcey3iDwiaLqpOQ=";
|
hash = "sha256-qwsUb9w/eeNO1mGYpnwkWgH5AfcUm7Y7DtkWep8SAcA=";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
|
@ -45,7 +45,7 @@ python3Packages.buildPythonApplication rec {
|
||||||
nativeCheckInputs = [ versionCheckHook ];
|
nativeCheckInputs = [ versionCheckHook ];
|
||||||
versionCheckProgramArg = "--version";
|
versionCheckProgramArg = "--version";
|
||||||
|
|
||||||
passthru.updateScript = nix-update-script { };
|
passthru.updateScript = ./update.sh;
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = "https://github.com/jmbannon/ytdl-sub";
|
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