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