at v192 60 lines 1.6 kB view raw
1x@{builderDefsPackage 2 , cmake, giflib, libjpeg, libtiff, lib3ds, freetype, libpng 3 , coin3d, jasper, gdal_1_11_2, xproto, libX11, libXmu, freeglut, mesa 4 , doxygen, ffmpeg, xineLib, unzip, zlib, openal, libxml2 5 , curl, a52dec, faad2, gdk_pixbuf, pkgconfig, kbproto, SDL 6 , qt4, poppler, librsvg, gtk 7 , ...}: 8builderDefsPackage 9(a : 10let 11 helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++ 12 []; 13 14 buildInputs = map (n: builtins.getAttr n x) 15 (builtins.attrNames (builtins.removeAttrs x helperArgNames)); 16 sourceInfo = rec { 17 baseName="OpenSceneGraph"; 18 version="3.2.1"; 19 name="${baseName}-${version}"; 20 url="http://trac.openscenegraph.org/downloads/developer_releases/${name}.zip"; 21 hash="0v9y1gxb16y0mj994jd0mhcz32flhv2r6kc01xdqb4817lk75bnr"; 22 }; 23in 24rec { 25 src = a.fetchurl { 26 url = sourceInfo.url; 27 sha256 = sourceInfo.hash; 28 }; 29 30 inherit (sourceInfo) name version; 31 inherit buildInputs; 32 33 /* doConfigure should be removed if not needed */ 34 phaseNames = ["setVars" "addInputs" "doUnpack" "doPatch" "doCmake" "doMakeInstall"]; 35 36 cmakeFlags = [ 37 "-D MATH_LIBRARY=" 38 ]; 39 40 setVars = a.noDepEntry '' 41 export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -D__STDC_CONSTANT_MACROS=1" 42 ''; 43 44 meta = { 45 description = "A 3D graphics toolkit"; 46 maintainers = with a.lib.maintainers; 47 [ 48 raskin 49 ]; 50 platforms = with a.lib.platforms; 51 linux; 52 license = "OpenSceneGraph Public License - free LGPL-based license"; 53 }; 54 passthru = { 55 updateInfo = { 56 downloadPage = "http://www.openscenegraph.org/projects/osg/wiki/Downloads"; 57 }; 58 }; 59}) x 60