pfetch: add version check

Co-authored-by: Gaétan Lepage <33058747+GaetanLepage@users.noreply.github.com>
This commit is contained in:
Phani Rithvij
2024-12-24 13:08:15 +05:30
committed by phanirithvij
co-authored by Gaétan Lepage
parent c4db87b6bc
commit 5aab9a0db4
+12
View File
@@ -2,6 +2,8 @@
lib,
stdenvNoCC,
fetchFromGitHub,
gitUpdater,
versionCheckHook,
}:
stdenvNoCC.mkDerivation rec {
@@ -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";