2021-04-03 17:04:34 +02:00
|
|
|
{ stdenv, lib, fetchFromGitHub, installShellFiles }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "cpufetch";
|
2021-08-24 04:36:16 +02:00
|
|
|
version = "1.00";
|
2021-04-03 17:04:34 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Dr-Noob";
|
|
|
|
repo = "cpufetch";
|
|
|
|
rev = "v${version}";
|
2021-08-24 04:36:16 +02:00
|
|
|
sha256 = "sha256-2Iar7RwL3T4DrFbqKJFys/R+VENRg2lmYFkslEaZeVE=";
|
2021-04-03 17:04:34 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
|
|
|
|
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";
|
|
|
|
license = licenses.mit;
|
|
|
|
homepage = "https://github.com/Dr-Noob/cpufetch";
|
|
|
|
changelog = "https://github.com/Dr-Noob/cpufetch/releases/tag/v${version}";
|
|
|
|
maintainers = with maintainers; [ devhell ];
|
|
|
|
};
|
|
|
|
}
|