nixpkgs/pkgs/development/libraries/simgear/default.nix

32 lines
1.0 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, plib, freeglut, xorgproto, libX11, libXext, libXi
2019-11-10 19:44:34 +03:00
, libICE, libSM, libXt, libXmu, libGLU, libGL, boost, zlib, libjpeg, freealut
2014-09-26 14:35:49 +04:00
, openscenegraph, openal, expat, cmake, apr
2016-12-25 00:57:25 +03:00
, curl
2014-09-26 14:35:49 +04:00
}:
2019-08-06 23:04:24 +03:00
let
2020-12-15 01:57:26 +03:00
version = "2020.3.4";
2019-08-06 23:04:24 +03:00
shortVersion = builtins.substring 0 6 version;
in
2014-09-26 14:35:49 +04:00
stdenv.mkDerivation rec {
2019-08-06 23:04:24 +03:00
pname = "simgear";
inherit version;
2014-09-26 14:35:49 +04:00
src = fetchurl {
2019-08-06 23:04:24 +03:00
url = "mirror://sourceforge/flightgear/release-${shortVersion}/${pname}-${version}.tar.bz2";
2020-12-15 01:57:26 +03:00
sha256 = "1laa8dllpvf2z0cjxx22ravdf1d7a18bm708gd2ny35fhjfibm0h";
2014-09-26 14:35:49 +04:00
};
2019-08-06 23:04:24 +03:00
nativeBuildInputs = [ cmake ];
buildInputs = [ plib freeglut xorgproto libX11 libXext libXi
2019-11-10 19:44:34 +03:00
libICE libSM libXt libXmu libGLU libGL boost zlib libjpeg freealut
2019-08-06 23:04:24 +03:00
openscenegraph openal expat apr curl ];
2013-02-23 23:10:15 +04:00
2014-09-26 14:35:49 +04:00
meta = with stdenv.lib; {
description = "Simulation construction toolkit";
2019-08-06 23:04:24 +03:00
homepage = "https://gitorious.org/fg/simgear";
2014-09-26 14:35:49 +04:00
maintainers = with maintainers; [ raskin ];
platforms = platforms.linux;
license = licenses.lgpl2;
};
2014-09-26 14:35:49 +04:00
}