git.iko.soy/typeable/nixpkgs
on master help sign in
cpufetch: init at 0.94

A "[s]implistic yet fancy CPU architecture fetching tool", similar to neofetch, screenfetch, etc.

commit96fc3c38802696486693d30c7a783e294eee4e3b authordevhell <devhell@mailfresser.de> dateSat 3 Apr 2021, 16:04 (6 years ago) parent032fc65
2 files changed+36
pkgs/tools/misc/cpufetch/default.nix+34 pkgs/top-level/all-packages.nix+2
pkgs/tools/misc/cpufetch/default.nixnew file+34
@@ -0,0 +1,34 @@
1+{ stdenv, lib, fetchFromGitHub, installShellFiles }:
2+
3+stdenv.mkDerivation rec {
4+ pname = "cpufetch";
5+ version = "0.94";
6+
7+ src = fetchFromGitHub {
8+ owner = "Dr-Noob";
9+ repo = "cpufetch";
10+ rev = "v${version}";
11+ sha256 = "1gncgkhqd8bnz254qa30yyl10qm28dwx6aif0dwrj38z5ql40ck9";
12+ };
13+
14+ nativeBuildInputs = [ installShellFiles ];
15+
16+ installPhase = ''
17+ runHook preInstall
18+
19+ mkdir $out
20+ install -Dm755 cpufetch $out/bin/cpufetch
21+ install -Dm644 LICENSE $out/share/licenses/cpufetch/LICENSE
22+ installManPage cpufetch.8
23+
24+ runHook postInstall
25+ '';
26+
27+ meta = with lib; {
28+ description = "Simplistic yet fancy CPU architecture fetching tool";
29+ license = licenses.mit;
30+ homepage = "https://github.com/Dr-Noob/cpufetch";
31+ changelog = "https://github.com/Dr-Noob/cpufetch/releases/tag/v${version}";
32+ maintainers = with maintainers; [ devhell ];
33+ };
34+}
pkgs/top-level/all-packages.nix+2
@@ -3577,6 +3577,8 @@ in
35773577
35783578 cpio = callPackage ../tools/archivers/cpio { };
35793579
3580+ cpufetch = callPackage ../tools/misc/cpufetch { };
3581+
35803582 crackxls = callPackage ../tools/security/crackxls { };
35813583
35823584 create-cycle-app = nodePackages.create-cycle-app;