Commit 51ea6bf3 authored by Kirill Radzikhovskyy's avatar Kirill Radzikhovskyy Committed by Bjørn Forsman
Browse files

flightgear: remove unnecessary desktop item

Upstream already provides a (better) desktop file.
parent 6f92f147
Loading
Loading
Loading
Loading
+0 −22
Original line number Diff line number Diff line
@@ -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"
  ];