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

47 lines
1.3 KiB
Nix
Raw Normal View History

{ fetchurl, stdenv, gettext, pkgconfig, glib, gtk2, libX11, libSM, libICE
2016-08-12 05:21:13 +02:00
, IOKit ? null }:
2017-03-23 02:35:44 +01:00
with stdenv.lib;
stdenv.mkDerivation rec {
2017-03-23 02:35:44 +01:00
name = "gkrellm-2.3.10";
src = fetchurl {
2017-03-23 02:35:44 +01:00
url = "http://gkrellm.srcbox.net/releases/${name}.tar.bz2";
sha256 = "0rnpzjr0ys0ypm078y63q4aplcgdr5nshjzhmz330n6dmnxci7lb";
};
2017-03-23 02:35:44 +01:00
nativeBuildInputs = [ pkgconfig ];
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.
patchPhase = ''
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 '';
2017-03-23 02:35:44 +01:00
installPhase = ''
make DESTDIR=$out install
'';
2017-03-23 02:35:44 +01:00
meta = {
description = "Themeable process stack of system monitors";
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.
'';
2017-03-23 11:52:37 +01:00
homepage = http://gkrellm.srcbox.net;
2017-03-23 02:35:44 +01:00
license = licenses.gpl3Plus;
2015-01-13 22:33:24 +01:00
maintainers = [ ];
2017-03-23 02:35:44 +01:00
platforms = platforms.unix;
};
}