ncspot: use versionCheckHook

This commit is contained in:
awwpotato
2025-07-04 17:15:44 -07:00
parent da8158dbd7
commit b86ec4ba6d
+5 -6
View File
@@ -7,7 +7,6 @@
fetchFromGitHub,
libpulseaudio,
libxcb,
ncspot,
ncurses,
nix-update-script,
openssl,
@@ -15,7 +14,7 @@
portaudio,
python3,
rustPlatform,
testers,
versionCheckHook,
ueberzug,
withALSA ? stdenv.hostPlatform.isLinux,
withClipboard ? true,
@@ -82,10 +81,10 @@ rustPlatform.buildRustPackage (finalAttrs: {
install -D --mode=444 $src/images/logo.svg $out/share/icons/hicolor/scalable/apps/ncspot.svg
'';
passthru = {
tests.version = testers.testVersion { package = ncspot; };
updateScript = nix-update-script { };
};
doInstallCheck = true;
nativeInstallCheckInputs = [ versionCheckHook ];
passthru.updateScript = nix-update-script { };
meta = {
description = "Cross-platform ncurses Spotify client written in Rust, inspired by ncmpc and the likes";