nixpkgs/pkgs/tools/misc/cpufetch/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

42 lines
932 B
Nix
Raw Normal View History

2021-11-28 10:38:30 +00:00
{ lib
, stdenv
, fetchFromGitHub
, installShellFiles
}:
stdenv.mkDerivation rec {
pname = "cpufetch";
2023-05-07 07:09:39 +00:00
version = "1.04";
src = fetchFromGitHub {
2021-11-28 10:38:30 +00:00
owner = "Dr-Noob";
repo = "cpufetch";
rev = "v${version}";
2023-05-07 07:09:39 +00:00
sha256 = "sha256-+vfAhUVEMKkt3cvMczUn7O55DnkEHkk0xeuLd5L2MMU=";
};
2021-11-28 10:38:30 +00: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 10:53:59 +00:00
installManPage cpufetch.1
runHook postInstall
'';
meta = with lib; {
description = "Simplistic yet fancy CPU architecture fetching tool";
2022-04-25 13:01:28 +00:00
license = licenses.gpl2Only;
homepage = "https://github.com/Dr-Noob/cpufetch";
changelog = "https://github.com/Dr-Noob/cpufetch/releases/tag/v${version}";
maintainers = with maintainers; [ devhell ];
2023-11-27 01:17:53 +00:00
mainProgram = "cpufetch";
};
}