mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 14:26:33 +01:00
fbda1dbfd6
Allow the macOS GLUT framework to be used automatically in many cases. Packages that specifically search for freeglut or require its additional APIs should still explicitly depend on it. Deliberately skip the Haskell package set, which is mostly automatically generated, and mupdf, which has its own fork of freeglut.
31 lines
1 KiB
Nix
31 lines
1 KiB
Nix
{ lib, stdenv, fetchurl, plib, libglut, xorgproto, libX11, libXext, libXi
|
|
, libICE, libSM, libXt, libXmu, libGLU, libGL, boost179, zlib, libjpeg, freealut
|
|
, openscenegraph, openal, expat, cmake, apr, xz
|
|
, curl
|
|
}:
|
|
let
|
|
version = "2020.3.19";
|
|
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";
|
|
sha256 = "sha256-O5N8W5RCJHjl15EUvc1seOQ6Cm/7qXVEqG1EHD+ejDo=";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
buildInputs = [ plib libglut xorgproto libX11 libXext libXi
|
|
libICE libSM libXt libXmu libGLU libGL boost179 zlib libjpeg freealut
|
|
openscenegraph openal expat apr curl xz ];
|
|
|
|
meta = with lib; {
|
|
description = "Simulation construction toolkit";
|
|
homepage = "https://wiki.flightgear.org/SimGear";
|
|
maintainers = with maintainers; [ raskin ];
|
|
platforms = platforms.linux;
|
|
license = licenses.lgpl2;
|
|
};
|
|
}
|