0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-13 21:50:33 +03:00

pfetch: 0.6.0 -> 1.7.0 (#367570)

This commit is contained in:
Gaétan Lepage 2024-12-24 09:00:25 +01:00 committed by GitHub
commit 19a0241918
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,18 +1,20 @@
{
stdenvNoCC,
lib,
stdenvNoCC,
fetchFromGitHub,
gitUpdater,
versionCheckHook,
}:
stdenvNoCC.mkDerivation rec {
pname = "pfetch";
version = "0.6.0";
version = "1.7.0";
src = fetchFromGitHub {
owner = "dylanaraps";
owner = "Un1q32";
repo = "pfetch";
rev = version;
sha256 = "06z0k1naw3k052p2z7241lx92rp5m07zlr0alx8pdm6mkc3c4v8f";
tag = version;
hash = "sha256-omI1Y1UKxSkg1QUd/GHHuGBwxfNOtxqYpzPbJdG7j3A=";
};
dontBuild = true;
@ -21,12 +23,26 @@ stdenvNoCC.mkDerivation rec {
install -Dm755 -t $out/bin pfetch
'';
meta = with lib; {
nativeInstallCheckInputs = [
versionCheckHook
];
versionCheckProgramArg = [ "--version" ];
doInstallCheck = true;
passthru = {
updateScript = gitUpdater { };
};
meta = {
description = "Pretty system information tool written in POSIX sh";
homepage = "https://github.com/dylanaraps/pfetch";
license = licenses.mit;
platforms = platforms.all;
maintainers = with maintainers; [ equirosa ];
homepage = "https://github.com/Un1q32/pfetch";
changelog = "https://github.com/Un1q32/pfetch/releases/tag/${version}";
license = lib.licenses.mit;
platforms = lib.platforms.all;
maintainers = with lib.maintainers; [
equirosa
phanirithvij
];
mainProgram = "pfetch";
};
}