2021-11-07 20:29:51 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
fetchurl,
|
|
|
|
stdenv,
|
|
|
|
gettext,
|
|
|
|
pkg-config,
|
|
|
|
glib,
|
|
|
|
gtk2,
|
|
|
|
libX11,
|
|
|
|
libSM,
|
|
|
|
libICE,
|
|
|
|
which,
|
|
|
|
IOKit,
|
|
|
|
copyDesktopItems,
|
|
|
|
makeDesktopItem,
|
2024-04-26 20:24:03 +00:00
|
|
|
wrapGAppsHook3,
|
2021-02-11 12:23:04 +00:00
|
|
|
}:
|
2008-02-13 16:38:33 +00:00
|
|
|
|
2010-02-08 13:24:22 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2021-11-07 20:29:51 +00:00
|
|
|
pname = "gkrellm";
|
|
|
|
version = "2.3.11";
|
2017-03-23 01:35:44 +00:00
|
|
|
|
2008-02-13 16:38:33 +00:00
|
|
|
src = fetchurl {
|
2021-11-07 20:29:51 +00:00
|
|
|
url = "http://gkrellm.srcbox.net/releases/gkrellm-${version}.tar.bz2";
|
2019-08-04 09:22:28 +00:00
|
|
|
sha256 = "01lccz4fga40isv09j8rjgr0qy10rff9vj042n6gi6gdv4z69q0y";
|
2008-02-13 16:38:33 +00:00
|
|
|
};
|
|
|
|
|
2024-04-26 20:24:03 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
copyDesktopItems
|
|
|
|
pkg-config
|
|
|
|
which
|
|
|
|
wrapGAppsHook3
|
|
|
|
];
|
2021-11-07 20:29:51 +00:00
|
|
|
buildInputs = [
|
|
|
|
gettext
|
|
|
|
glib
|
|
|
|
gtk2
|
|
|
|
libX11
|
|
|
|
libSM
|
|
|
|
libICE
|
2021-11-08 08:57:49 +00:00
|
|
|
] ++ lib.optionals stdenv.hostPlatform.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.
|
2021-02-11 12:23:04 +00:00
|
|
|
postPatch = ''
|
2017-08-13 20:37:05 +00: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 20:35:25 +00:00
|
|
|
makeFlags = [ "STRIP=-s" ];
|
|
|
|
installFlags = [ "DESTDIR=$(out)" ];
|
2008-02-13 16:38:33 +00:00
|
|
|
|
2021-02-11 12:23:04 +00:00
|
|
|
# This icon is used by the desktop file.
|
|
|
|
postInstall = ''
|
|
|
|
install -Dm444 -T src/icon.xpm $out/share/pixmaps/gkrellm.xpm
|
|
|
|
'';
|
|
|
|
|
|
|
|
desktopItems = [
|
|
|
|
(makeDesktopItem {
|
|
|
|
name = "gkrellm";
|
|
|
|
exec = "gkrellm";
|
|
|
|
icon = "gkrellm";
|
|
|
|
desktopName = "GKrellM";
|
|
|
|
genericName = "System monitor";
|
|
|
|
comment = "The GNU Krell Monitors";
|
2022-02-22 14:56:15 +00:00
|
|
|
categories = [
|
|
|
|
"System"
|
|
|
|
"Monitor"
|
|
|
|
];
|
2021-02-11 12:23:04 +00:00
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2021-11-08 08:57:49 +00:00
|
|
|
meta = with lib; {
|
2013-10-06 09:49:53 +00:00
|
|
|
description = "Themeable process stack of system monitors";
|
2017-08-13 20:37:05 +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.
|
|
|
|
'';
|
2010-02-08 13:24:22 +00:00
|
|
|
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://gkrellm.srcbox.net";
|
2017-03-23 01:35:44 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2018-03-17 22:17:44 +00:00
|
|
|
platforms = platforms.linux;
|
2008-02-13 16:38:33 +00:00
|
|
|
};
|
|
|
|
}
|