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";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "1.06";
|
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}";
|
2024-09-19 14:19:46 +00:00
|
|
|
sha256 = "sha256-sE3i2rw8W362BExFEImjw/t17qX8D4/0Ty8jG63bjbk=";
|
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 ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "cpufetch";
|
2021-04-17 00:35:05 +00:00
|
|
|
};
|
|
|
|
}
|