2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchurl, plib, freeglut, xorgproto, libX11, libXext, libXi
|
2019-11-10 16:44:34 +00:00
|
|
|
, libICE, libSM, libXt, libXmu, libGLU, libGL, boost, zlib, libjpeg, freealut
|
2021-04-18 00:04:00 +01:00
|
|
|
, openscenegraph, openal, expat, cmake, apr, xz
|
2016-12-24 21:57:25 +00:00
|
|
|
, curl
|
2014-09-26 11:35:49 +01:00
|
|
|
}:
|
2019-08-06 21:04:24 +01:00
|
|
|
let
|
2022-04-06 19:34:00 +01:00
|
|
|
version = "2020.3.13";
|
2019-08-06 21:04:24 +01:00
|
|
|
shortVersion = builtins.substring 0 6 version;
|
|
|
|
in
|
2014-09-26 11:35:49 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-06 21:04:24 +01:00
|
|
|
pname = "simgear";
|
|
|
|
inherit version;
|
2011-04-09 17:43:00 +01:00
|
|
|
|
2014-09-26 11:35:49 +01:00
|
|
|
src = fetchurl {
|
2019-08-06 21:04:24 +01:00
|
|
|
url = "mirror://sourceforge/flightgear/release-${shortVersion}/${pname}-${version}.tar.bz2";
|
2022-04-06 19:34:00 +01:00
|
|
|
sha256 = "sha256-3AmQb9qLGBD+LLIrX1Fx0gi6kBxbnTkLrW0fP9ZsUeg=";
|
2014-09-26 11:35:49 +01:00
|
|
|
};
|
2011-04-09 17:43:00 +01:00
|
|
|
|
2019-08-06 21:04:24 +01:00
|
|
|
nativeBuildInputs = [ cmake ];
|
2018-12-31 03:40:47 +00:00
|
|
|
buildInputs = [ plib freeglut xorgproto libX11 libXext libXi
|
2019-11-10 16:44:34 +00:00
|
|
|
libICE libSM libXt libXmu libGLU libGL boost zlib libjpeg freealut
|
2021-04-18 00:04:00 +01:00
|
|
|
openscenegraph openal expat apr curl xz ];
|
2013-02-23 19:10:15 +00:00
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2011-04-09 17:43:00 +01:00
|
|
|
description = "Simulation construction toolkit";
|
2021-11-02 19:56:10 +00:00
|
|
|
homepage = "https://wiki.flightgear.org/SimGear";
|
2014-09-26 11:35:49 +01:00
|
|
|
maintainers = with maintainers; [ raskin ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.lgpl2;
|
2011-04-09 17:43:00 +01:00
|
|
|
};
|
2014-09-26 11:35:49 +01:00
|
|
|
}
|