From 7bf047c7188ce953cdac55d45359d02f017028f9 Mon Sep 17 00:00:00 2001 From: Austin Horstman Date: Thu, 31 Oct 2024 19:05:05 -0500 Subject: [PATCH] fastfetch: use versionCheckHook No longer need manual version checking test and can verify on build. --- pkgs/by-name/fa/fastfetch/package.nix | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/pkgs/by-name/fa/fastfetch/package.nix b/pkgs/by-name/fa/fastfetch/package.nix index 8ae477db3396..7c7156f6c4dd 100644 --- a/pkgs/by-name/fa/fastfetch/package.nix +++ b/pkgs/by-name/fa/fastfetch/package.nix @@ -28,7 +28,6 @@ python3, rpm, sqlite, - testers, util-linux, vulkan-loader, wayland, @@ -42,6 +41,7 @@ x11Support ? true, apple-sdk_15, darwinMinVersionHook, + versionCheckHook, }: stdenv.mkDerivation (finalAttrs: { pname = "fastfetch"; @@ -142,14 +142,11 @@ stdenv.mkDerivation (finalAttrs: { --prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath finalAttrs.buildInputs}" ''; - passthru = { - updateScript = nix-update-script { }; - tests.version = testers.testVersion { - package = finalAttrs.finalPackage; - command = "fastfetch -v | cut -d '(' -f 1"; - version = "fastfetch ${finalAttrs.version}"; - }; - }; + nativeInstallCheckInputs = [ versionCheckHook ]; + versionCheckProgramArg = "--version"; + doInstallCheck = true; + + passthru.updateScript = nix-update-script { }; meta = { description = "An actively maintained, feature-rich and performance oriented, neofetch like system information tool";