ytui-music: modernize

* Prefer finalAttrs over rec
* Remove `with lib;`
* Prefer tag over rev in fetchFromGitHub
This commit is contained in:
Kenichi Kamiya
2025-11-14 01:00:29 +09:00
parent d81158d9dc
commit 3e5768e6ef
+6 -6
View File
@@ -10,14 +10,14 @@
makeBinaryWrapper,
}:
rustPlatform.buildRustPackage rec {
rustPlatform.buildRustPackage (finalAttrs: {
pname = "ytui-music";
version = "2.0.0-rc1";
src = fetchFromGitHub {
owner = "sudipghimire533";
repo = "ytui-music";
rev = "v${version}";
tag = "v${finalAttrs.version}";
hash = "sha256-f/23PVk4bpUCvcQ25iNI/UVXqiPBzPKWq6OohVF41p8=";
};
@@ -59,11 +59,11 @@ rustPlatform.buildRustPackage rec {
runHook postInstallCheck
'';
meta = with lib; {
meta = {
description = "Youtube client in terminal for music";
homepage = "https://github.com/sudipghimire533/ytui-music";
license = licenses.gpl2Only;
maintainers = with maintainers; [ kashw2 ];
license = lib.licenses.gpl2Only;
maintainers = with lib.maintainers; [ kashw2 ];
mainProgram = "ytui_music";
};
}
})