nixpkgs-suyu/pkgs/development/libraries/simgear/default.nix
2021-01-21 19:11:02 -08:00

31 lines
1 KiB
Nix

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