2015-05-10 01:41:40 +01:00
|
|
|
{ stdenv, fetchgit, makeWrapper
|
2015-08-05 13:37:37 +01:00
|
|
|
, coreutils, gawk, procps, gnused, findutils, xdpyinfo, xprop, gnugrep
|
2015-05-10 01:41:40 +01:00
|
|
|
}:
|
2014-05-27 12:11:34 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2016-01-13 09:06:41 +00:00
|
|
|
name = "screenFetch-2016-01-13";
|
2014-05-27 12:11:34 +01:00
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = git://github.com/KittyKatt/screenFetch.git;
|
2016-01-13 09:06:41 +00:00
|
|
|
rev = "22e5bee7647453d45ec82f543f37b8a6a062835d";
|
|
|
|
sha256 = "0xdiz02bqg7ajj547j496qq9adysm1f6zymcy3yyfgw3prnzvdir";
|
2014-05-27 12:11:34 +01:00
|
|
|
};
|
|
|
|
|
2015-05-10 01:41:40 +01:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
2014-05-27 12:11:34 +01:00
|
|
|
installPhase = ''
|
2015-05-10 01:41:40 +01:00
|
|
|
install -Dm 0755 screenfetch-dev $out/bin/screenfetch
|
|
|
|
install -Dm 0644 screenfetch.1 $out/man/man1/screenfetch.1
|
|
|
|
|
|
|
|
# Fix all of the depedencies of screenfetch
|
|
|
|
patchShebangs $out/bin/screenfetch
|
|
|
|
wrapProgram "$out/bin/screenfetch" \
|
|
|
|
--set PATH : "" \
|
|
|
|
--prefix PATH : "${coreutils}/bin" \
|
|
|
|
--prefix PATH : "${gawk}/bin" \
|
|
|
|
--prefix PATH : "${procps}/bin" \
|
|
|
|
--prefix PATH : "${gnused}/bin" \
|
|
|
|
--prefix PATH : "${findutils}/bin" \
|
|
|
|
--prefix PATH : "${xdpyinfo}/bin" \
|
|
|
|
--prefix PATH : "${xprop}/bin" \
|
2015-08-05 13:37:37 +01:00
|
|
|
--prefix PATH : "${gnugrep}/bin"
|
2014-05-27 12:11:34 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2014-11-11 13:20:43 +00:00
|
|
|
description = "Fetches system/theme information in terminal for Linux desktop screenshots";
|
2014-05-27 12:11:34 +01:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|