2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, plib, freeglut, xorgproto, libX11, libXext, libXi
|
2020-04-24 23:36:52 +00:00
|
|
|
, libICE, libSM, libXt, libXmu, libGLU, libGL, boost, zlib, libjpeg, freealut
|
2021-04-22 02:08:21 +00:00
|
|
|
, openscenegraph, openal, expat, cmake, apr, xz
|
2020-04-24 23:36:52 +00:00
|
|
|
, curl
|
|
|
|
}:
|
|
|
|
let
|
2021-09-18 10:52:07 +00:00
|
|
|
version = "2020.3.11";
|
2020-04-24 23:36:52 +00:00
|
|
|
shortVersion = builtins.substring 0 6 version;
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "simgear";
|
|
|
|
inherit version;
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/flightgear/release-${shortVersion}/${pname}-${version}.tar.bz2";
|
2021-09-18 10:52:07 +00:00
|
|
|
sha256 = "sha256-u438vCo7AUPR/88B0alh5WbvId0z2cx2jW2apYcdTzw=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [ plib freeglut xorgproto libX11 libXext libXi
|
|
|
|
libICE libSM libXt libXmu libGLU libGL boost zlib libjpeg freealut
|
2021-04-22 02:08:21 +00:00
|
|
|
openscenegraph openal expat apr curl xz ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Simulation construction toolkit";
|
|
|
|
homepage = "https://gitorious.org/fg/simgear";
|
|
|
|
maintainers = with maintainers; [ raskin ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.lgpl2;
|
|
|
|
};
|
|
|
|
}
|