simgear: darwin support

This commit is contained in:
Kirill Radzikhovskyy
2026-04-12 20:08:19 +10:00
parent ad40d71c2e
commit 51261e3310
+14 -12
View File
@@ -14,7 +14,7 @@
libxmu,
libGLU,
libGL,
boost179,
boost,
zlib,
libjpeg,
freealut,
@@ -44,6 +44,18 @@ stdenv.mkDerivation (finalAttrs: {
nativeBuildInputs = [ cmake ];
buildInputs = [
plib
boost
zlib
libjpeg
freealut
openscenegraph
openal
expat
apr
curl
xz
]
++ lib.optionals (!stdenv.hostPlatform.isDarwin) [
libglut
xorgproto
libx11
@@ -55,16 +67,6 @@ stdenv.mkDerivation (finalAttrs: {
libxmu
libGLU
libGL
boost179
zlib
libjpeg
freealut
openscenegraph
openal
expat
apr
curl
xz
];
propagatedBuildInputs = [ c-ares ];
@@ -73,7 +75,7 @@ stdenv.mkDerivation (finalAttrs: {
description = "Simulation construction toolkit";
homepage = "https://wiki.flightgear.org/SimGear";
maintainers = with lib.maintainers; [ raskin ];
platforms = lib.platforms.linux;
platforms = lib.platforms.linux ++ lib.platforms.darwin;
license = lib.licenses.lgpl2;
};
})