18 stdenv.mkDerivation rec {
23 url = "http://gkrellm.srcbox.net/releases/gkrellm-${version}.tar.bz2";
24 sha256 = "01lccz4fga40isv09j8rjgr0qy10rff9vj042n6gi6gdv4z69q0y";
27 nativeBuildInputs = [ copyDesktopItems pkg-config which wrapGAppsHook ];
28 buildInputs = [ gettext glib gtk2 libX11 libSM libICE ]
29 ++ lib.optionals stdenv.isDarwin [ IOKit ];
31 hardeningDisable = [ "format" ];
33 # Makefiles are patched to fix references to `/usr/X11R6' and to add
34 # `-lX11' to make sure libX11's store path is in the RPATH.
36 echo "patching makefiles..."
37 for i in Makefile src/Makefile server/Makefile
39 sed -i "$i" -e "s|/usr/X11R6|${libX11.dev}|g ; s|-lICE|-lX11 -lICE|g"
43 makeFlags = [ "STRIP=-s" ];
44 installFlags = [ "DESTDIR=$(out)" ];
46 # This icon is used by the desktop file.
48 install -Dm444 -T src/icon.xpm $out/share/pixmaps/gkrellm.xpm
56 desktopName = "GKrellM";
57 genericName = "System monitor";
58 comment = "The GNU Krell Monitors";
59 categories = [ "System" "Monitor" ];
64 description = "Themeable process stack of system monitors";
66 GKrellM is a single process stack of system monitors which
67 supports applying themes to match its appearance to your window
68 manager, Gtk, or any other theme.
71 homepage = "http://gkrellm.srcbox.net";
72 license = licenses.gpl3Plus;
73 maintainers = with maintainers; [ khumba ];
74 platforms = platforms.linux;