19 stdenv.mkDerivation rec {
24 url = "http://gkrellm.srcbox.net/releases/gkrellm-${version}.tar.bz2";
25 sha256 = "01lccz4fga40isv09j8rjgr0qy10rff9vj042n6gi6gdv4z69q0y";
41 ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ IOKit ];
43 hardeningDisable = [ "format" ];
45 # Makefiles are patched to fix references to `/usr/X11R6' and to add
46 # `-lX11' to make sure libX11's store path is in the RPATH.
48 echo "patching makefiles..."
49 for i in Makefile src/Makefile server/Makefile
51 sed -i "$i" -e "s|/usr/X11R6|${libX11.dev}|g ; s|-lICE|-lX11 -lICE|g"
55 makeFlags = [ "STRIP=-s" ];
56 installFlags = [ "DESTDIR=$(out)" ];
58 # This icon is used by the desktop file.
60 install -Dm444 -T src/icon.xpm $out/share/pixmaps/gkrellm.xpm
68 desktopName = "GKrellM";
69 genericName = "System monitor";
70 comment = "The GNU Krell Monitors";
79 description = "Themeable process stack of system monitors";
81 GKrellM is a single process stack of system monitors which
82 supports applying themes to match its appearance to your window
83 manager, Gtk, or any other theme.
86 homepage = "http://gkrellm.srcbox.net";
87 license = licenses.gpl3Plus;
88 platforms = platforms.linux;