2021-11-28 11:38:30 +01:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, installShellFiles
|
|
|
|
}:
|
2021-04-03 17:04:34 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "cpufetch";
|
2022-04-25 09:44:19 +02:00
|
|
|
version = "1.02";
|
2021-04-03 17:04:34 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2021-11-28 11:38:30 +01:00
|
|
|
owner = "Dr-Noob";
|
|
|
|
repo = "cpufetch";
|
|
|
|
rev = "v${version}";
|
2022-04-25 09:44:19 +02:00
|
|
|
sha256 = "sha256-bhw7+z4/50MrC5WyexHhtzmqnovwiA9X6Q2TcznDYZM=";
|
2021-04-03 17:04:34 +02:00
|
|
|
};
|
|
|
|
|
2021-11-28 11:38:30 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
installShellFiles
|
|
|
|
];
|
2021-04-03 17:04:34 +02:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
mkdir $out
|
|
|
|
install -Dm755 cpufetch $out/bin/cpufetch
|
|
|
|
install -Dm644 LICENSE $out/share/licenses/cpufetch/LICENSE
|
2021-06-30 12:53:59 +02:00
|
|
|
installManPage cpufetch.1
|
2021-04-03 17:04:34 +02:00
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Simplistic yet fancy CPU architecture fetching tool";
|
2022-04-25 15:01:28 +02:00
|
|
|
license = licenses.gpl2Only;
|
2021-04-03 17:04:34 +02:00
|
|
|
homepage = "https://github.com/Dr-Noob/cpufetch";
|
|
|
|
changelog = "https://github.com/Dr-Noob/cpufetch/releases/tag/v${version}";
|
|
|
|
maintainers = with maintainers; [ devhell ];
|
|
|
|
};
|
|
|
|
}
|