mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 08:23:09 +00:00
flightgear: remove unnecessary desktop item
Upstream already provides a (better) desktop file.
This commit is contained in:
parent
6f92f147c0
commit
51ea6bf33c
@ -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"
|
||||
];
|
||||
|
Loading…
Reference in New Issue
Block a user