2017-08-13 21:35:25 +01:00
|
|
|
{ fetchurl, stdenv, gettext, pkgconfig, glib, gtk2, libX11, libSM, libICE, which
|
2016-08-12 04:21:13 +01:00
|
|
|
, IOKit ? null }:
|
2008-02-13 16:38:33 +00:00
|
|
|
|
2017-03-23 01:35:44 +00:00
|
|
|
with stdenv.lib;
|
|
|
|
|
2010-02-08 13:24:22 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2017-03-23 01:35:44 +00:00
|
|
|
name = "gkrellm-2.3.10";
|
|
|
|
|
2008-02-13 16:38:33 +00:00
|
|
|
src = fetchurl {
|
2017-03-23 01:35:44 +00:00
|
|
|
url = "http://gkrellm.srcbox.net/releases/${name}.tar.bz2";
|
|
|
|
sha256 = "0rnpzjr0ys0ypm078y63q4aplcgdr5nshjzhmz330n6dmnxci7lb";
|
2008-02-13 16:38:33 +00:00
|
|
|
};
|
|
|
|
|
2017-08-13 21:35:25 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig which ];
|
2017-03-23 01:35:44 +00:00
|
|
|
buildInputs = [gettext glib gtk2 libX11 libSM libICE]
|
|
|
|
++ 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 = ''
|
2017-08-13 21:37:05 +01:00
|
|
|
echo "patching makefiles..."
|
|
|
|
for i in Makefile src/Makefile server/Makefile
|
|
|
|
do
|
|
|
|
sed -i "$i" -e "s|/usr/X11R6|${libX11.dev}|g ; s|-lICE|-lX11 -lICE|g"
|
|
|
|
done
|
|
|
|
'';
|
2008-02-13 16:38:33 +00:00
|
|
|
|
2017-08-13 21:35:25 +01:00
|
|
|
makeFlags = [ "STRIP=-s" ];
|
|
|
|
installFlags = [ "DESTDIR=$(out)" ];
|
2008-02-13 16:38:33 +00:00
|
|
|
|
2017-08-13 21:37:05 +01:00
|
|
|
meta = {
|
2013-10-06 10:49:53 +01:00
|
|
|
description = "Themeable process stack of system monitors";
|
2017-08-13 21:37:05 +01: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.
|
|
|
|
'';
|
2010-02-08 13:24:22 +00:00
|
|
|
|
2017-03-23 10:52:37 +00:00
|
|
|
homepage = http://gkrellm.srcbox.net;
|
2017-03-23 01:35:44 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2015-01-13 21:33:24 +00:00
|
|
|
maintainers = [ ];
|
2018-03-17 22:17:44 +00:00
|
|
|
platforms = platforms.linux;
|
2008-02-13 16:38:33 +00:00
|
|
|
};
|
|
|
|
}
|