pfetch: add version check
Co-authored-by: Gaétan Lepage <33058747+GaetanLepage@users.noreply.github.com>
This commit is contained in:
committed by
phanirithvij
co-authored by
Gaétan Lepage
parent
c4db87b6bc
commit
5aab9a0db4
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user