lol
1{ stdenv, lib, fetchFromGitHub, installShellFiles }:
2
3stdenv.mkDerivation rec {
4 pname = "cpufetch";
5 version = "1.00";
6
7 src = fetchFromGitHub {
8 owner = "Dr-Noob";
9 repo = "cpufetch";
10 rev = "v${version}";
11 sha256 = "sha256-2Iar7RwL3T4DrFbqKJFys/R+VENRg2lmYFkslEaZeVE=";
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.1
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}