From b86ec4ba6df0fa5853db17e60079d76183227f33 Mon Sep 17 00:00:00 2001 From: awwpotato Date: Fri, 4 Jul 2025 17:15:44 -0700 Subject: [PATCH] ncspot: use versionCheckHook --- pkgs/by-name/nc/ncspot/package.nix | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/pkgs/by-name/nc/ncspot/package.nix b/pkgs/by-name/nc/ncspot/package.nix index 565e51530f08..84ddcf446fa3 100644 --- a/pkgs/by-name/nc/ncspot/package.nix +++ b/pkgs/by-name/nc/ncspot/package.nix @@ -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";