2016-09-11 21:24:51 +00:00
|
|
|
{ fetchurl, stdenv, gettext, pkgconfig, glib, gtk2, libX11, libSM, libICE
|
2016-08-12 03:21:13 +00:00
|
|
|
, IOKit ? null }:
|
2008-02-13 16:38:33 +00:00
|
|
|
|
2010-02-08 13:24:22 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2013-12-11 08:10:58 +00:00
|
|
|
name = "gkrellm-2.3.5";
|
2008-02-13 16:38:33 +00:00
|
|
|
src = fetchurl {
|
2010-02-08 13:24:22 +00:00
|
|
|
url = "http://members.dslextreme.com/users/billw/gkrellm/${name}.tar.bz2";
|
2013-12-11 08:10:58 +00:00
|
|
|
sha256 = "12rc6zaa7kb60b9744lbrlfkxxfniprm6x0mispv63h4kh75navh";
|
2008-02-13 16:38:33 +00:00
|
|
|
};
|
|
|
|
|
2016-09-11 21:24:51 +00:00
|
|
|
buildInputs = [gettext pkgconfig glib gtk2 libX11 libSM libICE]
|
2016-08-12 03:21:13 +00:00
|
|
|
++ stdenv.lib.optionals stdenv.isDarwin [ IOKit ];
|
2008-02-13 16:38:33 +00:00
|
|
|
|
2016-02-26 17:38:15 +00:00
|
|
|
hardeningDisable = [ "format" ];
|
2016-02-08 10:15:32 +00:00
|
|
|
|
2008-02-13 16:38:33 +00:00
|
|
|
# Makefiles are patched to fix references to `/usr/X11R6' and to add
|
|
|
|
# `-lX11' to make sure libX11's store path is in the RPATH.
|
|
|
|
patchPhase = ''
|
|
|
|
echo "patching makefiles..."
|
|
|
|
for i in Makefile src/Makefile server/Makefile
|
|
|
|
do
|
2016-04-16 17:53:46 +00:00
|
|
|
sed -i "$i" -e "s|/usr/X11R6|${libX11.dev}|g ; s|-lICE|-lX11 -lICE|g"
|
2008-02-13 16:38:33 +00:00
|
|
|
done '';
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
make PREFIX="$out" '';
|
|
|
|
installPhase = ''
|
|
|
|
make install PREFIX="$out" '';
|
|
|
|
|
|
|
|
meta = {
|
2013-10-06 09:49:53 +00:00
|
|
|
description = "Themeable process stack of system monitors";
|
2010-02-08 13:24:22 +00:00
|
|
|
longDescription =
|
|
|
|
'' GKrellM is a single process stack of system monitors which supports
|
|
|
|
applying themes to match its appearance to your window manager, Gtk,
|
|
|
|
or any other theme.
|
|
|
|
'';
|
|
|
|
|
2008-02-13 16:38:33 +00:00
|
|
|
homepage = http://members.dslextreme.com/users/billw/gkrellm/gkrellm.html;
|
2014-06-19 04:19:00 +00:00
|
|
|
license = stdenv.lib.licenses.gpl3Plus;
|
2010-02-08 13:24:22 +00:00
|
|
|
|
2015-01-13 21:33:24 +00:00
|
|
|
maintainers = [ ];
|
2010-02-08 13:24:22 +00:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2008-02-13 16:38:33 +00:00
|
|
|
};
|
|
|
|
}
|