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 1, 2024
1 parent f3b9aad commit 7bf047c
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 @@ -28,7 +28,6 @@
python3,
rpm,
sqlite,
testers,
util-linux,
vulkan-loader,
wayland,
Expand All @@ -42,6 +41,7 @@
x11Support ? true,
apple-sdk_15,
darwinMinVersionHook,
versionCheckHook,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "fastfetch";
Expand Down Expand Up @@ -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";
Expand Down

0 comments on commit 7bf047c

Please sign in to comment.