summary refs log tree commit diff
path: root/pkgs/tools/misc/screenfetch
diff options
context:
space:
mode:
authorRicky Elrod <ricky@elrod.me>2014-05-27 07:11:34 -0400
committerRicky Elrod <ricky@elrod.me>2014-05-27 07:13:44 -0400
commitc1bbfbc13e3f6746c726ce2fe24fe2c3c2b426d4 (patch)
tree90ef61eaa1f6c4f7a83707aaa60f7088edff5523 /pkgs/tools/misc/screenfetch
parenta0072b4d2d4233d29ba6456d20f1d87070fcfad2 (diff)
downloadnixlib-c1bbfbc13e3f6746c726ce2fe24fe2c3c2b426d4.tar
nixlib-c1bbfbc13e3f6746c726ce2fe24fe2c3c2b426d4.tar.gz
nixlib-c1bbfbc13e3f6746c726ce2fe24fe2c3c2b426d4.tar.bz2
nixlib-c1bbfbc13e3f6746c726ce2fe24fe2c3c2b426d4.tar.lz
nixlib-c1bbfbc13e3f6746c726ce2fe24fe2c3c2b426d4.tar.xz
nixlib-c1bbfbc13e3f6746c726ce2fe24fe2c3c2b426d4.tar.zst
nixlib-c1bbfbc13e3f6746c726ce2fe24fe2c3c2b426d4.zip
add screenfetch
Signed-off-by: Ricky Elrod <ricky@elrod.me>
Diffstat (limited to 'pkgs/tools/misc/screenfetch')
-rw-r--r--pkgs/tools/misc/screenfetch/default.nix38
1 files changed, 38 insertions, 0 deletions
diff --git a/pkgs/tools/misc/screenfetch/default.nix b/pkgs/tools/misc/screenfetch/default.nix
new file mode 100644
index 000000000000..0ebc712fcf0d
--- /dev/null
+++ b/pkgs/tools/misc/screenfetch/default.nix
@@ -0,0 +1,38 @@
+{ stdenv, fetchgit, xdpyinfo, xprop }:
+
+let
+  version = "2014-05-27";
+in
+stdenv.mkDerivation {
+  name = "screenFetch-${version}";
+  pname = "screenfetch";
+
+  src = fetchgit {
+    url = git://github.com/KittyKatt/screenFetch.git;
+    rev = "69c46cb94b5765dbcb36905c5a35c42eb8e6e470";
+    sha256 = "0479na831120bpyrg5nb3nb1jr8p8ahkixk1znwg730q3vdcjd6j";
+  };
+
+  installPhase = ''
+    install -Dm 0755 $pname-dev $out/bin/$pname
+    install -Dm 0644 $pname.1 $out/man/man1/$pname.1
+  '';
+
+  meta = {
+    description = "Fetches system/theme information in terminal for Linux desktop screenshots.";
+    longDescription = ''
+    screenFetch is a "Bash Screenshot Information Tool". This handy Bash
+    script can be used to generate one of those nifty terminal theme
+    information + ASCII distribution logos you see in everyone's screenshots
+    nowadays. It will auto-detect your distribution and display an ASCII
+    version of that distribution's logo and some valuable information to the
+    right. There are options to specify no ascii art, colors, taking a
+    screenshot upon displaying info, and even customizing the screenshot
+    command! This script is very easy to add to and can easily be extended.
+    '';
+    license = stdenv.lib.licenses.gpl3;
+    homepage = http://git.silverirc.com/cgit.cgi/screenfetch-dev.git/;
+    maintainers = with stdenv.lib.maintainers; [relrod];
+    platforms = stdenv.lib.platforms.all;
+  };
+}