about summary refs log tree commit diff
path: root/pkgs/tools/misc/pfetch
diff options
context:
space:
mode:
authorEduardo QuirĂ³s <39096810+equirosa@users.noreply.github.com>2019-12-14 16:28:44 -0600
committermarkuskowa <markus.kowalewski@gmail.com>2019-12-14 23:28:44 +0100
commit297604cb355693979995727b9530782a1f72dacb (patch)
tree65b8a4944891899f57c28ee654dd67a855766538 /pkgs/tools/misc/pfetch
parentbafaf78ead6d287cd29bab25467fb1024dec2a47 (diff)
pfetch: init at 0.4.0
* pfetch: init at 0.4.0
Diffstat (limited to 'pkgs/tools/misc/pfetch')
-rw-r--r--pkgs/tools/misc/pfetch/default.nix28
1 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/tools/misc/pfetch/default.nix b/pkgs/tools/misc/pfetch/default.nix
new file mode 100644
index 0000000000000..491844f26b75b
--- /dev/null
+++ b/pkgs/tools/misc/pfetch/default.nix
@@ -0,0 +1,28 @@
+{ stdenv, fetchFromGitHub }:
+
+stdenv.mkDerivation rec {
+  pname = "pfetch";
+  version = "0.4.0";
+
+  src = fetchFromGitHub {
+    owner = "dylanaraps";
+    repo = "pfetch";
+    rev = version;
+    sha256 = "180vvbmvak888vs4dgzlmqk0ss4qfsz09700n4p8s68j7krkxsfq";
+  };
+
+  dontbuild = true;
+
+  installPhase = ''
+    mkdir -p $out/bin
+    cp pfetch $out/bin
+  '';
+
+  meta = with stdenv.lib; {
+    description = "A pretty system information tool written in POSIX sh";
+    homepage = https://github.com/dylanaraps/pfetch;
+    license = licenses.mit;
+    platforms = platforms.all;
+    maintainers = with maintainers; [ equirosa ];
+  };
+}