fork
Configure Feed
Select the types of activity you want to include in your feed.
nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
fork
Configure Feed
Select the types of activity you want to include in your feed.
1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 installShellFiles,
6}:
7
8stdenv.mkDerivation (finalAttrs: {
9 pname = "cpufetch";
10 version = "1.07";
11
12 src = fetchFromGitHub {
13 owner = "Dr-Noob";
14 repo = "cpufetch";
15 rev = "v${finalAttrs.version}";
16 sha256 = "sha256-qmT7WBWKtSWGIK/dEd3/bF1bBjqSjfkP99htfnlFLCw=";
17 };
18
19 nativeBuildInputs = [
20 installShellFiles
21 ];
22
23 installPhase = ''
24 runHook preInstall
25
26 mkdir $out
27 install -Dm755 cpufetch $out/bin/cpufetch
28 install -Dm644 LICENSE $out/share/licenses/cpufetch/LICENSE
29 installManPage cpufetch.1
30
31 runHook postInstall
32 '';
33
34 meta = {
35 description = "Simplistic yet fancy CPU architecture fetching tool";
36 license = lib.licenses.gpl2Only;
37 homepage = "https://github.com/Dr-Noob/cpufetch";
38 changelog = "https://github.com/Dr-Noob/cpufetch/releases/tag/v${finalAttrs.version}";
39 maintainers = with lib.maintainers; [ devhell ];
40 mainProgram = "cpufetch";
41 };
42})