fork
Configure Feed
Select the types of activity you want to include in your feed.
lol
fork
Configure Feed
Select the types of activity you want to include in your feed.
1{ stdenv, lib, fetchurl, cmake, pkgconfig, doxygen, unzip
2, freetype, libjpeg, jasper, libxml2, zlib, gdal, curl, libX11
3, cairo, poppler, librsvg, libpng, libtiff, libXrandr
4, xineLib, boost
5, withApps ? false
6, withSDL ? false, SDL
7, withQt4 ? false, qt4
8}:
9
10stdenv.mkDerivation rec {
11 name = "openscenegraph-${version}";
12 version = "3.4.0";
13
14 src = fetchurl {
15 url = "http://trac.openscenegraph.org/downloads/developer_releases/OpenSceneGraph-${version}.zip";
16 sha256 = "03h4wfqqk7rf3mpz0sa99gy715cwpala7964z2npd8jxfn27swjw";
17 };
18
19 nativeBuildInputs = [ pkgconfig cmake doxygen unzip ];
20
21 buildInputs = [
22 freetype libjpeg jasper libxml2 zlib gdal curl libX11
23 cairo poppler librsvg libpng libtiff libXrandr boost
24 xineLib
25 ] ++ lib.optional withSDL SDL
26 ++ lib.optional withQt4 qt4;
27
28 enableParallelBuilding = true;
29
30 cmakeFlags = lib.optional (!withApps) "-DBUILD_OSG_APPLICATIONS=OFF";
31
32 meta = with stdenv.lib; {
33 description = "A 3D graphics toolkit";
34 homepage = http://www.openscenegraph.org/;
35 maintainers = [ maintainers.raskin ];
36 platforms = platforms.linux;
37 license = "OpenSceneGraph Public License - free LGPL-based license";
38 };
39}