nixpkgs/pkgs/development/libraries/simgear/default.nix
2019-08-06 16:04:24 -04:00

34 lines
1.0 KiB
Nix

{ stdenv, fetchurl, plib, freeglut, xorgproto, libX11, libXext, libXi
, libICE, libSM, libXt, libXmu, libGLU_combined, boost, zlib, libjpeg, freealut
, openscenegraph, openal, expat, cmake, apr
, curl
}:
let
version = "2019.1.1";
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 = "12sl18limlj61hlwl3bcv5ysfdpsjmd07cxchhf9xa8shk6d87i0";
};
nativeBuildInputs = [ cmake ];
buildInputs = [ plib freeglut xorgproto libX11 libXext libXi
libICE libSM libXt libXmu libGLU_combined boost zlib libjpeg freealut
openscenegraph openal expat apr curl ];
enableParallelBuilding = true;
meta = with stdenv.lib; {
description = "Simulation construction toolkit";
homepage = "https://gitorious.org/fg/simgear";
maintainers = with maintainers; [ raskin ];
platforms = platforms.linux;
license = licenses.lgpl2;
};
}