diff --git a/pkgs/applications/misc/gkrellm/default.nix b/pkgs/applications/misc/gkrellm/default.nix new file mode 100644 index 00000000000..ae5386dcd1e --- /dev/null +++ b/pkgs/applications/misc/gkrellm/default.nix @@ -0,0 +1,33 @@ +args: with args; + +stdenv.mkDerivation { + name = "gkrellm-2.3.1"; + src = fetchurl { + url = http://members.dslextreme.com/users/billw/gkrellm/gkrellm-2.3.1.tar.bz2; + sha256 = "1a2a7e3ee9d1f2d7305da0d33d9be71ffe5d1903ed6a9c69cf77ffe10fc95b4d"; + }; + + buildInputs = [gettext pkgconfig glib gtk libX11 libSM libICE]; + + # 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 + cat "$i" | sed -e "s|/usr/X11R6|${libX11}|g ; + s|-lICE|-lX11 -lICE|g" > ",,tmp" && \ + mv ",,tmp" "$i" + done ''; + + buildPhase = '' + make PREFIX="$out" ''; + installPhase = '' + make install PREFIX="$out" ''; + + meta = { + description = "GKrellM, a themeable process stack of system monitors."; + homepage = http://members.dslextreme.com/users/billw/gkrellm/gkrellm.html; + license = "GPL"; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 5680d0b0d13..43a684b2f23 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -4791,6 +4791,12 @@ rec { inherit fetchurl stdenv curl openssl zlib expat perl; }; + gkrellm = import ../applications/misc/gkrellm { + inherit fetchurl stdenv gettext pkgconfig; + inherit (gtkLibs) glib gtk; + inherit (xlibs) libX11 libICE libSM; + }; + gnash = assert mesaSupported; import ../applications/video/gnash { inherit fetchurl stdenv SDL SDL_mixer GStreamer libogg libxml2 libjpeg mesa libpng;