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
|
2023-05-24 13:37:59 +00:00
|
|
|
version = "2020.3.18";
|
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";
|
2023-05-24 13:37:59 +00:00
|
|
|
sha256 = "sha256-bMHPJVaxckB5KezyurJDLG+wXuFt0ZAm6QNp8lc2Nso=";
|
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";
|
2021-12-06 16:07:01 +00:00
|
|
|
homepage = "https://wiki.flightgear.org/SimGear";
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ raskin ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.lgpl2;
|
|
|
|
};
|
|
|
|
}
|