2017-11-19 04:07:46 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub, makeWrapper, coreutils, gawk, procps, gnused
|
2016-11-03 04:01:36 +00:00
|
|
|
, bc, findutils, xdpyinfo, xprop, gnugrep, ncurses
|
2017-11-19 04:07:46 +00:00
|
|
|
, darwin
|
2015-05-10 01:41:40 +01:00
|
|
|
}:
|
2014-05-27 12:11:34 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2016-10-17 00:07:49 +01:00
|
|
|
name = "screenFetch-2016-10-11";
|
2014-05-27 12:11:34 +01:00
|
|
|
|
2016-10-17 00:07:49 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "KittyKatt";
|
|
|
|
repo = "screenFetch";
|
|
|
|
rev = "89e51f24018c89b3647deb24406a9af3a78bbe99";
|
|
|
|
sha256 = "0i2k261jj2s4sfhav7vbsd362pa0gghw6qhwafhmicmf8hq2a18v";
|
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
|
2017-08-11 21:42:10 +01:00
|
|
|
install -Dm 0644 screenfetch.1 $out/share/man/man1/screenfetch.1
|
2015-05-10 01:41:40 +01:00
|
|
|
|
|
|
|
# Fix all of the depedencies of screenfetch
|
|
|
|
patchShebangs $out/bin/screenfetch
|
|
|
|
wrapProgram "$out/bin/screenfetch" \
|
2017-11-19 04:07:46 +00:00
|
|
|
--set PATH ${lib.makeBinPath ([
|
|
|
|
coreutils gawk gnused findutils
|
|
|
|
gnugrep ncurses bc
|
|
|
|
] ++ lib.optionals stdenv.isLinux [
|
|
|
|
procps
|
|
|
|
xdpyinfo
|
|
|
|
xprop
|
|
|
|
] ++ lib.optionals stdenv.isDarwin (with darwin; [
|
|
|
|
adv_cmds
|
|
|
|
DarwinTools
|
|
|
|
system_cmds
|
|
|
|
"/usr" # some commands like defaults is not available to us
|
|
|
|
]))}
|
2014-05-27 12:11:34 +01:00
|
|
|
'';
|
|
|
|
|
2017-11-19 04:07:46 +00:00
|
|
|
meta = with lib; {
|
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.
|
|
|
|
'';
|
2017-11-19 04:07:46 +00:00
|
|
|
license = licenses.gpl3;
|
2014-05-27 12:11:34 +01:00
|
|
|
homepage = http://git.silverirc.com/cgit.cgi/screenfetch-dev.git/;
|
2017-11-19 04:07:46 +00:00
|
|
|
maintainers = with maintainers; [relrod];
|
|
|
|
platforms = platforms.all;
|
2014-05-27 12:11:34 +01:00
|
|
|
};
|
|
|
|
}
|