From 3848206bd22fc2e5ba1aa04389ae0517dfacb80c Mon Sep 17 00:00:00 2001 From: László Vaskó Date: Wed, 25 Sep 2019 09:59:02 +0200 Subject: IPMIView: create desktop file --- pkgs/applications/misc/ipmiview/default.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'pkgs/applications/misc/ipmiview') diff --git a/pkgs/applications/misc/ipmiview/default.nix b/pkgs/applications/misc/ipmiview/default.nix index 774b84947da..e46df5d59e0 100644 --- a/pkgs/applications/misc/ipmiview/default.nix +++ b/pkgs/applications/misc/ipmiview/default.nix @@ -1,5 +1,6 @@ { stdenv , fetchurl +, makeDesktopItem , makeWrapper , patchelf , fontconfig @@ -35,10 +36,20 @@ stdenv.mkDerivation rec { patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" ./BMCSecurity/${stunnelBinary} ''; + desktopItem = makeDesktopItem rec { + name = "IPMIView"; + exec = "IPMIView"; + desktopName = name; + genericName = "Supermicro BMC manager"; + categories = "Network;Configuration"; + }; + installPhase = '' mkdir -p $out/bin cp -R . $out/ + ln -s ${desktopItem}/share $out/share + # LD_LIBRARY_PATH: fontconfig is used from java code # PATH: iputils is used for ping, and psmisc is for killall # WORK_DIR: unfortunately the ikvm related binaries are loaded from -- cgit 1.4.1