diff options
author | Aaron Andersen <aaron@fosslib.net> | 2018-11-01 18:07:12 -0400 |
---|---|---|
committer | Aaron Andersen <aaron@fosslib.net> | 2018-11-01 18:07:12 -0400 |
commit | 0cca209943e8dfb326ae0ca09a60a02e1028da20 (patch) | |
tree | a2574fb9c87a4c756f00d56863052e295afd42f9 | |
parent | 3dfd66fb0304d638d5c55e3ad1bc63a4f611d315 (diff) | |
download | nixlib-0cca209943e8dfb326ae0ca09a60a02e1028da20.tar nixlib-0cca209943e8dfb326ae0ca09a60a02e1028da20.tar.gz nixlib-0cca209943e8dfb326ae0ca09a60a02e1028da20.tar.bz2 nixlib-0cca209943e8dfb326ae0ca09a60a02e1028da20.tar.lz nixlib-0cca209943e8dfb326ae0ca09a60a02e1028da20.tar.xz nixlib-0cca209943e8dfb326ae0ca09a60a02e1028da20.tar.zst nixlib-0cca209943e8dfb326ae0ca09a60a02e1028da20.zip |
openscenegraph: revive version 3.4.0
-rw-r--r-- | pkgs/development/libraries/openscenegraph/3.4.0.nix | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/pkgs/development/libraries/openscenegraph/3.4.0.nix b/pkgs/development/libraries/openscenegraph/3.4.0.nix new file mode 100644 index 000000000000..8d0839041890 --- /dev/null +++ b/pkgs/development/libraries/openscenegraph/3.4.0.nix @@ -0,0 +1,39 @@ +{ stdenv, lib, fetchurl, cmake, pkgconfig, doxygen, unzip +, freetype, libjpeg, jasper, libxml2, zlib, gdal, curl, libX11 +, cairo, poppler, librsvg, libpng, libtiff, libXrandr +, xineLib, boost +, withApps ? false +, withSDL ? false, SDL +, withQt4 ? false, qt4 +}: + +stdenv.mkDerivation rec { + name = "openscenegraph-${version}"; + version = "3.4.0"; + + src = fetchurl { + url = "http://trac.openscenegraph.org/downloads/developer_releases/OpenSceneGraph-${version}.zip"; + sha256 = "03h4wfqqk7rf3mpz0sa99gy715cwpala7964z2npd8jxfn27swjw"; + }; + + nativeBuildInputs = [ pkgconfig cmake doxygen unzip ]; + + buildInputs = [ + freetype libjpeg jasper libxml2 zlib gdal curl libX11 + cairo poppler librsvg libpng libtiff libXrandr boost + xineLib + ] ++ lib.optional withSDL SDL + ++ lib.optional withQt4 qt4; + + enableParallelBuilding = true; + + cmakeFlags = lib.optional (!withApps) "-DBUILD_OSG_APPLICATIONS=OFF"; + + meta = with stdenv.lib; { + description = "A 3D graphics toolkit"; + homepage = http://www.openscenegraph.org/; + maintainers = [ maintainers.raskin ]; + platforms = platforms.linux; + license = "OpenSceneGraph Public License - free LGPL-based license"; + }; +} |