IPMIView: create desktop file

This commit is contained in:
László Vaskó 2019-09-25 09:59:02 +02:00
parent 15b8478211
commit 3848206bd2

View File

@ -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