nixpkgs/pkgs/applications/misc/gkrellm/default.nix

65 lines
1.8 KiB
Nix
Raw Normal View History

{ lib, fetchurl, stdenv, gettext, pkg-config, glib, gtk2, libX11, libSM, libICE, which
, IOKit, copyDesktopItems, makeDesktopItem, wrapGAppsHook
}:
2021-01-15 06:42:41 +01:00
with lib;
2017-03-23 02:35:44 +01:00
stdenv.mkDerivation rec {
name = "gkrellm-2.3.11";
2017-03-23 02:35:44 +01:00
src = fetchurl {
2017-03-23 02:35:44 +01:00
url = "http://gkrellm.srcbox.net/releases/${name}.tar.bz2";
sha256 = "01lccz4fga40isv09j8rjgr0qy10rff9vj042n6gi6gdv4z69q0y";
};
nativeBuildInputs = [ copyDesktopItems pkg-config which wrapGAppsHook ];
2017-03-23 02:35:44 +01:00
buildInputs = [gettext glib gtk2 libX11 libSM libICE]
++ optionals stdenv.isDarwin [ IOKit ];
hardeningDisable = [ "format" ];
2016-02-08 11:15:32 +01: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.
postPatch = ''
2017-08-13 22:37:05 +02: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
'';
makeFlags = [ "STRIP=-s" ];
installFlags = [ "DESTDIR=$(out)" ];
# 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";
categories = "System;Monitor;";
})
];
2017-08-13 22:37:05 +02:00
meta = {
description = "Themeable process stack of system monitors";
2017-08-13 22:37:05 +02: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.
'';
homepage = "http://gkrellm.srcbox.net";
2017-03-23 02:35:44 +01:00
license = licenses.gpl3Plus;
maintainers = with maintainers; [ khumba ];
2018-03-17 23:17:44 +01:00
platforms = platforms.linux;
};
}