Skip to content

Commit

Permalink
fastfetch: use versionCheckHook
Browse files Browse the repository at this point in the history
No longer need manual version checking test and can verify on build.
  • Loading branch information
khaneliman committed Nov 2, 2024
1 parent aeeb4c2 commit 8e829c0
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions pkgs/by-name/fa/fastfetch/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
python3,
rpm,
sqlite,
testers,
util-linux,
versionCheckHook,
vulkan-loader,
wayland,
xfce,
Expand Down Expand Up @@ -140,14 +140,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";
Expand Down

0 comments on commit 8e829c0

Please sign in to comment.