gkrellm: add desktop file, maintainer; other fixups
This commit is contained in:
parent
eee95f7660
commit
12b185c040
|
@ -1,5 +1,6 @@
|
||||||
{ lib, fetchurl, stdenv, gettext, pkg-config, glib, gtk2, libX11, libSM, libICE, which
|
{ lib, fetchurl, stdenv, gettext, pkg-config, glib, gtk2, libX11, libSM, libICE, which
|
||||||
, IOKit ? null }:
|
, IOKit, copyDesktopItems, makeDesktopItem, wrapGAppsHook
|
||||||
|
}:
|
||||||
|
|
||||||
with lib;
|
with lib;
|
||||||
|
|
||||||
|
@ -11,7 +12,7 @@ stdenv.mkDerivation rec {
|
||||||
sha256 = "01lccz4fga40isv09j8rjgr0qy10rff9vj042n6gi6gdv4z69q0y";
|
sha256 = "01lccz4fga40isv09j8rjgr0qy10rff9vj042n6gi6gdv4z69q0y";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkg-config which ];
|
nativeBuildInputs = [ copyDesktopItems pkg-config which wrapGAppsHook ];
|
||||||
buildInputs = [gettext glib gtk2 libX11 libSM libICE]
|
buildInputs = [gettext glib gtk2 libX11 libSM libICE]
|
||||||
++ optionals stdenv.isDarwin [ IOKit ];
|
++ optionals stdenv.isDarwin [ IOKit ];
|
||||||
|
|
||||||
|
@ -19,7 +20,7 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
# Makefiles are patched to fix references to `/usr/X11R6' and to add
|
# Makefiles are patched to fix references to `/usr/X11R6' and to add
|
||||||
# `-lX11' to make sure libX11's store path is in the RPATH.
|
# `-lX11' to make sure libX11's store path is in the RPATH.
|
||||||
patchPhase = ''
|
postPatch = ''
|
||||||
echo "patching makefiles..."
|
echo "patching makefiles..."
|
||||||
for i in Makefile src/Makefile server/Makefile
|
for i in Makefile src/Makefile server/Makefile
|
||||||
do
|
do
|
||||||
|
@ -30,6 +31,23 @@ stdenv.mkDerivation rec {
|
||||||
makeFlags = [ "STRIP=-s" ];
|
makeFlags = [ "STRIP=-s" ];
|
||||||
installFlags = [ "DESTDIR=$(out)" ];
|
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;";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Themeable process stack of system monitors";
|
description = "Themeable process stack of system monitors";
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
|
@ -40,7 +58,7 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
homepage = "http://gkrellm.srcbox.net";
|
homepage = "http://gkrellm.srcbox.net";
|
||||||
license = licenses.gpl3Plus;
|
license = licenses.gpl3Plus;
|
||||||
maintainers = [ ];
|
maintainers = with maintainers; [ khumba ];
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -22485,7 +22485,7 @@ in
|
||||||
gitit = callPackage ../applications/misc/gitit {};
|
gitit = callPackage ../applications/misc/gitit {};
|
||||||
|
|
||||||
gkrellm = callPackage ../applications/misc/gkrellm {
|
gkrellm = callPackage ../applications/misc/gkrellm {
|
||||||
inherit (darwin) IOKit;
|
inherit (darwin.apple_sdk.frameworks) IOKit;
|
||||||
};
|
};
|
||||||
|
|
||||||
glow = callPackage ../applications/editors/glow { };
|
glow = callPackage ../applications/editors/glow { };
|
||||||
|
|
Loading…
Reference in a new issue