···1+{ stdenv, fetchgit, xdpyinfo, xprop }:
2+3+let
4+ version = "2014-05-27";
5+in
6+stdenv.mkDerivation {
7+ name = "screenFetch-${version}";
8+ pname = "screenfetch";
9+10+ src = fetchgit {
11+ url = git://github.com/KittyKatt/screenFetch.git;
12+ rev = "69c46cb94b5765dbcb36905c5a35c42eb8e6e470";
13+ sha256 = "0479na831120bpyrg5nb3nb1jr8p8ahkixk1znwg730q3vdcjd6j";
14+ };
15+16+ installPhase = ''
17+ install -Dm 0755 $pname-dev $out/bin/$pname
18+ install -Dm 0644 $pname.1 $out/man/man1/$pname.1
19+ '';
20+21+ meta = {
22+ description = "Fetches system/theme information in terminal for Linux desktop screenshots.";
23+ longDescription = ''
24+ screenFetch is a "Bash Screenshot Information Tool". This handy Bash
25+ script can be used to generate one of those nifty terminal theme
26+ information + ASCII distribution logos you see in everyone's screenshots
27+ nowadays. It will auto-detect your distribution and display an ASCII
28+ version of that distribution's logo and some valuable information to the
29+ right. There are options to specify no ascii art, colors, taking a
30+ screenshot upon displaying info, and even customizing the screenshot
31+ command! This script is very easy to add to and can easily be extended.
32+ '';
33+ license = stdenv.lib.licenses.gpl3;
34+ homepage = http://git.silverirc.com/cgit.cgi/screenfetch-dev.git/;
35+ maintainers = with stdenv.lib.maintainers; [relrod];
36+ platforms = stdenv.lib.platforms.all;
37+ };
38+}