Skip to content

Commit

Permalink
pfetch: add version check
Browse files Browse the repository at this point in the history
Co-authored-by: Gaétan Lepage <33058747+GaetanLepage@users.noreply.github.com>
  • Loading branch information
phanirithvij and GaetanLepage committed Dec 24, 2024
1 parent c4db87b commit 5aab9a0
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions pkgs/by-name/pf/pfetch/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
lib,
stdenvNoCC,
fetchFromGitHub,
gitUpdater,
versionCheckHook,
}:

stdenvNoCC.mkDerivation rec {
Expand All @@ -21,6 +23,16 @@ stdenvNoCC.mkDerivation rec {
install -Dm755 -t $out/bin pfetch
'';

nativeInstallCheckInputs = [
versionCheckHook
];
versionCheckProgramArg = [ "--version" ];
doInstallCheck = true;

passthru = {
updateScript = gitUpdater { };
};

meta = {
description = "Pretty system information tool written in POSIX sh";
homepage = "https://github.com/Un1q32/pfetch";
Expand Down

0 comments on commit 5aab9a0

Please sign in to comment.