flightgear: remove unnecessary desktop item

Upstream already provides a (better) desktop file.
This commit is contained in:
Kirill Radzikhovskyy 2023-11-07 17:47:26 +11:00 committed by Bjørn Forsman
parent 6f92f147c0
commit 51ea6bf33c

View File

@ -35,23 +35,6 @@ stdenv.mkDerivation rec {
sha256 = "sha256-Fn0I3pzA9yIYs3myPNflbH9u4Y19VZUS2lGjvWfzjm4=";
};
# Of all the files in the source and data archives, there doesn't seem to be
# a decent icon :-)
iconsrc = fetchurl {
url = "https://wiki.flightgear.org/w/images/6/62/FlightGear_logo.png";
sha256 = "1ikz413jia55vfnmx8iwrlxvx8p16ggm81mbrj66wam3q7s2dm5p";
};
desktopItem = makeDesktopItem {
name = "flightgear";
exec = "fgfs";
icon = iconsrc;
comment = "FlightGear Flight Simulator";
desktopName = "FlightGear";
genericName = "Flight simulator";
categories = [ "Game" "Simulation" ];
};
nativeBuildInputs = [ cmake wrapQtAppsHook ];
buildInputs = [
freeglut freealut libGLU libGL libICE libjpeg openal openscenegraph plib
@ -60,11 +43,6 @@ stdenv.mkDerivation rec {
glew qtdeclarative curl
];
postInstall = ''
mkdir -p "$out/share/applications/"
cp "${desktopItem}"/share/applications/* "$out/share/applications/" #*/
'';
qtWrapperArgs = [
"--set FG_ROOT ${data}/share/FlightGear"
];