2021-12-06 16:07:01 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, installShellFiles
|
|
|
|
}:
|
2021-04-17 00:35:05 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "cpufetch";
|
2023-01-11 07:51:40 +00:00
|
|
|
version = "1.03";
|
2021-04-17 00:35:05 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2021-12-06 16:07:01 +00:00
|
|
|
owner = "Dr-Noob";
|
|
|
|
repo = "cpufetch";
|
|
|
|
rev = "v${version}";
|
2023-01-11 07:51:40 +00:00
|
|
|
sha256 = "sha256-SiIRw2nWCoe3pfFp1xyzkuFK5fe++0ypSxblYViRgZY=";
|
2021-04-17 00:35:05 +00:00
|
|
|
};
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
installShellFiles
|
|
|
|
];
|
2021-04-17 00:35:05 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
mkdir $out
|
|
|
|
install -Dm755 cpufetch $out/bin/cpufetch
|
|
|
|
install -Dm644 LICENSE $out/share/licenses/cpufetch/LICENSE
|
2021-07-03 03:11:41 +00:00
|
|
|
installManPage cpufetch.1
|
2021-04-17 00:35:05 +00:00
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Simplistic yet fancy CPU architecture fetching tool";
|
2022-04-27 09:35:20 +00:00
|
|
|
license = licenses.gpl2Only;
|
2021-04-17 00:35:05 +00:00
|
|
|
homepage = "https://github.com/Dr-Noob/cpufetch";
|
|
|
|
changelog = "https://github.com/Dr-Noob/cpufetch/releases/tag/v${version}";
|
|
|
|
maintainers = with maintainers; [ devhell ];
|
|
|
|
};
|
|
|
|
}
|