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:
commit
19a0241918
1 changed files with 26 additions and 10 deletions
|
@ -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";
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue