summary refs log tree commit diff
path: root/pkgs/tools/misc/cpufetch
diff options
context:
space:
mode:
authordevhell <devhell@mailfresser.de>2021-04-03 16:04:34 +0100
committerdevhell <devhell@mailfresser.de>2021-04-15 14:40:16 +0100
commit96fc3c38802696486693d30c7a783e294eee4e3b (patch)
treedb4f5429cfc95eb29a1b35054cc0bcbf6fa34c53 /pkgs/tools/misc/cpufetch
parent032fc65fcaa407f099d6ab1e1276e24852f07dde (diff)
downloadnixpkgs-96fc3c38802696486693d30c7a783e294eee4e3b.tar
nixpkgs-96fc3c38802696486693d30c7a783e294eee4e3b.tar.gz
nixpkgs-96fc3c38802696486693d30c7a783e294eee4e3b.tar.bz2
nixpkgs-96fc3c38802696486693d30c7a783e294eee4e3b.tar.lz
nixpkgs-96fc3c38802696486693d30c7a783e294eee4e3b.tar.xz
nixpkgs-96fc3c38802696486693d30c7a783e294eee4e3b.tar.zst
nixpkgs-96fc3c38802696486693d30c7a783e294eee4e3b.zip
cpufetch: init at 0.94
A "[s]implistic yet fancy CPU architecture fetching tool", similar to
neofetch, screenfetch, etc.
Diffstat (limited to 'pkgs/tools/misc/cpufetch')
-rw-r--r--pkgs/tools/misc/cpufetch/default.nix34
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/tools/misc/cpufetch/default.nix b/pkgs/tools/misc/cpufetch/default.nix
new file mode 100644
index 00000000000..37a6dfdc9dd
--- /dev/null
+++ b/pkgs/tools/misc/cpufetch/default.nix
@@ -0,0 +1,34 @@
+{ stdenv, lib, fetchFromGitHub, installShellFiles }:
+
+stdenv.mkDerivation rec {
+  pname = "cpufetch";
+  version = "0.94";
+
+  src = fetchFromGitHub {
+    owner  = "Dr-Noob";
+    repo   = "cpufetch";
+    rev    = "v${version}";
+    sha256 = "1gncgkhqd8bnz254qa30yyl10qm28dwx6aif0dwrj38z5ql40ck9";
+  };
+
+  nativeBuildInputs = [ installShellFiles ];
+
+  installPhase = ''
+    runHook preInstall
+
+    mkdir $out
+    install -Dm755 cpufetch   $out/bin/cpufetch
+    install -Dm644 LICENSE    $out/share/licenses/cpufetch/LICENSE
+    installManPage cpufetch.8
+
+    runHook postInstall
+  '';
+
+  meta = with lib; {
+    description = "Simplistic yet fancy CPU architecture fetching tool";
+    license = licenses.mit;
+    homepage = "https://github.com/Dr-Noob/cpufetch";
+    changelog = "https://github.com/Dr-Noob/cpufetch/releases/tag/v${version}";
+    maintainers = with maintainers; [ devhell ];
+  };
+}