ytui-music: 2.0.0-rc1 -> 0-unstable-2025-03-03

Diff: https://github.com/sudipghimire533/ytui-music/compare/d505c018fa4b093dbd76aaadcccec289b071a989...b90293d226f6fc27835372f145e55d385112768b

Using the added updateScript
This commit is contained in:
Kenichi Kamiya
2025-11-14 01:02:30 +09:00
parent 3e5768e6ef
commit a078decbd4
+31 -4
View File
@@ -8,20 +8,23 @@
mpv,
yt-dlp,
makeBinaryWrapper,
_experimental-update-script-combinators,
unstableGitUpdater,
nix-update-script,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "ytui-music";
version = "2.0.0-rc1";
version = "0-unstable-2025-03-03";
src = fetchFromGitHub {
owner = "sudipghimire533";
repo = "ytui-music";
tag = "v${finalAttrs.version}";
hash = "sha256-f/23PVk4bpUCvcQ25iNI/UVXqiPBzPKWq6OohVF41p8=";
rev = "b90293d226f6fc27835372f145e55d385112768b";
hash = "sha256-pRD8ySpkJz8o7DURXG8DmBsbZV9MqVlMN63gAjYl4vc=";
};
cargoHash = "sha256-I+ciLSMvV9EqlfA1+/IC1w7pWpj9HHF/DTfAbKw2CVM=";
cargoHash = "sha256-zwlg4BDHCM+KALjP929upaDpgy1mXEz5PYaVw+BhRp0=";
checkFlags = [
"--skip=tests::display_config_path"
@@ -59,11 +62,35 @@ rustPlatform.buildRustPackage (finalAttrs: {
runHook postInstallCheck
'';
passthru = {
updateScript = _experimental-update-script-combinators.sequence [
(unstableGitUpdater {
# Since a suitable formatted tag isn't available, using branch is a better way.
# ref: https://github.com/NixOS/nixpkgs/issues/258033#issuecomment-1741070349
hardcodeZeroVersion = true;
# * "main" branch is newer than "latest" branch
# * "main" branch is newer than "main" tag
# * The "main" tag doesn't seem to be associated with commits on branches like "main" or "latest".
branch = "main";
})
(nix-update-script {
# Updating `cargoHash`
extraArgs = [ "--version=skip" ];
})
];
};
meta = {
description = "Youtube client in terminal for music";
homepage = "https://github.com/sudipghimire533/ytui-music";
license = lib.licenses.gpl2Only;
maintainers = with lib.maintainers; [ kashw2 ];
mainProgram = "ytui_music";
# On Darwin, this package requires sandbox-relaxed to build.
# If the sandbox is enabled, `fetch-cargo-vendor-util` causes errors.
# This issue may be related to: https://github.com/NixOS/nixpkgs/issues/394972
# broken = stdenv.hostPlatform.isDarwin;
};
})