1 { lib, stdenv, fetchurl, wrapQtAppsHook
2 , libglut, freealut, libGLU, libGL, libICE, libjpeg, openal, openscenegraph, plib
3 , libSM, libunwind, libX11, xorgproto, libXext, libXi
4 , libXmu, libXt, simgear, zlib, boost, cmake, libpng, udev, fltk13, apr
5 , makeDesktopItem, qtbase, qtdeclarative, glew, curl
10 shortVersion = builtins.substring 0 6 version;
11 data = stdenv.mkDerivation rec {
12 pname = "flightgear-data";
16 url = "mirror://sourceforge/flightgear/release-${shortVersion}/FlightGear-${version}-data.txz";
17 sha256 = "sha256-863EnNBU+rYTdxHwMV6HbBu99lO6H3mKGuyumm6YR5U=";
23 mkdir -p "$out/share/FlightGear"
24 tar xf "${src}" -C "$out/share/FlightGear/" --strip-components=1
28 stdenv.mkDerivation rec {
30 # inheriting data for `nix-prefetch-url -A pkgs.flightgear.data.src`
34 url = "mirror://sourceforge/flightgear/release-${shortVersion}/${pname}-${version}.tar.bz2";
35 sha256 = "sha256-Fn0I3pzA9yIYs3myPNflbH9u4Y19VZUS2lGjvWfzjm4=";
38 nativeBuildInputs = [ cmake wrapQtAppsHook ];
40 libglut freealut libGLU libGL libICE libjpeg openal openscenegraph plib
41 libSM libunwind libX11 xorgproto libXext libXi
42 libXmu libXt simgear zlib boost libpng udev fltk13 apr qtbase
43 glew qtdeclarative curl
47 "--set FG_ROOT ${data}/share/FlightGear"
51 description = "Flight simulator";
52 maintainers = with maintainers; [ raskin ];
53 platforms = platforms.linux;
54 hydraPlatforms = []; # disabled from hydra because it's so big
55 license = licenses.gpl2Plus;