1{ stdenv, fetchgit, makeWrapper
2, coreutils, gawk, procps, gnused, findutils, xdpyinfo, xprop, gnugrep
3}:
4
5stdenv.mkDerivation {
6 name = "screenFetch-2016-01-13";
7
8 src = fetchgit {
9 url = git://github.com/KittyKatt/screenFetch.git;
10 rev = "22e5bee7647453d45ec82f543f37b8a6a062835d";
11 sha256 = "0xdiz02bqg7ajj547j496qq9adysm1f6zymcy3yyfgw3prnzvdir";
12 };
13
14 nativeBuildInputs = [ makeWrapper ];
15
16 installPhase = ''
17 install -Dm 0755 screenfetch-dev $out/bin/screenfetch
18 install -Dm 0644 screenfetch.1 $out/man/man1/screenfetch.1
19
20 # Fix all of the depedencies of screenfetch
21 patchShebangs $out/bin/screenfetch
22 wrapProgram "$out/bin/screenfetch" \
23 --set PATH : "" \
24 --prefix PATH : "${coreutils}/bin" \
25 --prefix PATH : "${gawk}/bin" \
26 --prefix PATH : "${procps}/bin" \
27 --prefix PATH : "${gnused}/bin" \
28 --prefix PATH : "${findutils}/bin" \
29 --prefix PATH : "${xdpyinfo}/bin" \
30 --prefix PATH : "${xprop}/bin" \
31 --prefix PATH : "${gnugrep}/bin"
32 '';
33
34 meta = {
35 description = "Fetches system/theme information in terminal for Linux desktop screenshots";
36 longDescription = ''
37 screenFetch is a "Bash Screenshot Information Tool". This handy Bash
38 script can be used to generate one of those nifty terminal theme
39 information + ASCII distribution logos you see in everyone's screenshots
40 nowadays. It will auto-detect your distribution and display an ASCII
41 version of that distribution's logo and some valuable information to the
42 right. There are options to specify no ascii art, colors, taking a
43 screenshot upon displaying info, and even customizing the screenshot
44 command! This script is very easy to add to and can easily be extended.
45 '';
46 license = stdenv.lib.licenses.gpl3;
47 homepage = http://git.silverirc.com/cgit.cgi/screenfetch-dev.git/;
48 maintainers = with stdenv.lib.maintainers; [relrod];
49 platforms = stdenv.lib.platforms.all;
50 };
51}