2020-01-14 20:27:23 +00:00
|
|
|
{ stdenvNoCC, lib, fetchFromGitHub }:
|
2019-12-14 22:28:44 +00:00
|
|
|
|
2020-01-14 20:27:23 +00:00
|
|
|
stdenvNoCC.mkDerivation rec {
|
2019-12-14 22:28:44 +00:00
|
|
|
pname = "pfetch";
|
2020-04-01 17:26:39 +00:00
|
|
|
version = "0.6.0";
|
2019-12-14 22:28:44 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dylanaraps";
|
|
|
|
repo = "pfetch";
|
|
|
|
rev = version;
|
2020-04-01 17:26:39 +00:00
|
|
|
sha256 = "06z0k1naw3k052p2z7241lx92rp5m07zlr0alx8pdm6mkc3c4v8f";
|
2019-12-14 22:28:44 +00:00
|
|
|
};
|
|
|
|
|
2020-01-14 20:18:04 +00:00
|
|
|
dontBuild = true;
|
2019-12-14 22:28:44 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
2020-01-14 20:18:04 +00:00
|
|
|
install -Dm755 -t $out/bin pfetch
|
2019-12-14 22:28:44 +00:00
|
|
|
'';
|
|
|
|
|
2020-01-14 20:27:23 +00:00
|
|
|
meta = with lib; {
|
2019-12-14 22:28:44 +00:00
|
|
|
description = "A pretty system information tool written in POSIX sh";
|
2020-04-01 17:26:39 +00:00
|
|
|
homepage = "https://github.com/dylanaraps/pfetch";
|
2019-12-14 22:28:44 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ equirosa ];
|
2023-11-27 01:17:53 +00:00
|
|
|
mainProgram = "pfetch";
|
2019-12-14 22:28:44 +00:00
|
|
|
};
|
|
|
|
}
|