mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 18:03:04 +00:00
42 lines
932 B
Nix
42 lines
932 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, installShellFiles
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "cpufetch";
|
|
version = "1.04";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Dr-Noob";
|
|
repo = "cpufetch";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-+vfAhUVEMKkt3cvMczUn7O55DnkEHkk0xeuLd5L2MMU=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
installShellFiles
|
|
];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
mkdir $out
|
|
install -Dm755 cpufetch $out/bin/cpufetch
|
|
install -Dm644 LICENSE $out/share/licenses/cpufetch/LICENSE
|
|
installManPage cpufetch.1
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Simplistic yet fancy CPU architecture fetching tool";
|
|
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 ];
|
|
mainProgram = "cpufetch";
|
|
};
|
|
}
|