uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
78
pkgs/development/libraries/openscenegraph/default.nix
Normal file
78
pkgs/development/libraries/openscenegraph/default.nix
Normal file
|
|
@ -0,0 +1,78 @@
|
|||
{ stdenv, lib, fetchFromGitHub, cmake, pkg-config, doxygen,
|
||||
libX11, libXinerama, libXrandr, libGLU, libGL,
|
||||
glib, ilmbase, libxml2, pcre, zlib,
|
||||
AGL, Carbon, Cocoa, Foundation,
|
||||
boost,
|
||||
jpegSupport ? true, libjpeg,
|
||||
exrSupport ? false, openexr,
|
||||
gifSupport ? true, giflib,
|
||||
pngSupport ? true, libpng,
|
||||
tiffSupport ? true, libtiff,
|
||||
gdalSupport ? false, gdal,
|
||||
curlSupport ? true, curl,
|
||||
colladaSupport ? false, collada-dom,
|
||||
opencascadeSupport ? false, opencascade,
|
||||
ffmpegSupport ? false, ffmpeg,
|
||||
nvttSupport ? false, nvidia-texture-tools,
|
||||
freetypeSupport ? true, freetype,
|
||||
svgSupport ? false, librsvg,
|
||||
pdfSupport ? false, poppler,
|
||||
vncSupport ? false, libvncserver,
|
||||
lasSupport ? false, libLAS,
|
||||
luaSupport ? false, lua,
|
||||
sdlSupport ? false, SDL2,
|
||||
restSupport ? false, asio,
|
||||
withApps ? false,
|
||||
withExamples ? false, fltk, wxGTK,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "openscenegraph";
|
||||
version = "3.6.5";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "openscenegraph";
|
||||
repo = "OpenSceneGraph";
|
||||
rev = "OpenSceneGraph-${version}";
|
||||
sha256 = "00i14h82qg3xzcyd8p02wrarnmby3aiwmz0z43l50byc9f8i05n1";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pkg-config cmake doxygen ];
|
||||
|
||||
buildInputs = [
|
||||
libX11 libXinerama libXrandr libGLU libGL
|
||||
glib ilmbase libxml2 pcre zlib
|
||||
] ++ lib.optional jpegSupport libjpeg
|
||||
++ lib.optional exrSupport openexr
|
||||
++ lib.optional gifSupport giflib
|
||||
++ lib.optional pngSupport libpng
|
||||
++ lib.optional tiffSupport libtiff
|
||||
++ lib.optional gdalSupport gdal
|
||||
++ lib.optional curlSupport curl
|
||||
++ lib.optional colladaSupport collada-dom
|
||||
++ lib.optional opencascadeSupport opencascade
|
||||
++ lib.optional ffmpegSupport ffmpeg
|
||||
++ lib.optional nvttSupport nvidia-texture-tools
|
||||
++ lib.optional freetypeSupport freetype
|
||||
++ lib.optional svgSupport librsvg
|
||||
++ lib.optional pdfSupport poppler
|
||||
++ lib.optional vncSupport libvncserver
|
||||
++ lib.optional lasSupport libLAS
|
||||
++ lib.optional luaSupport lua
|
||||
++ lib.optional sdlSupport SDL2
|
||||
++ lib.optional restSupport asio
|
||||
++ lib.optionals withExamples [ fltk wxGTK ]
|
||||
++ lib.optionals stdenv.isDarwin [ AGL Carbon Cocoa Foundation ]
|
||||
++ lib.optional (restSupport || colladaSupport) boost
|
||||
;
|
||||
|
||||
cmakeFlags = lib.optional (!withApps) "-DBUILD_OSG_APPLICATIONS=OFF" ++ lib.optional withExamples "-DBUILD_OSG_EXAMPLES=ON";
|
||||
|
||||
meta = with lib; {
|
||||
description = "A 3D graphics toolkit";
|
||||
homepage = "http://www.openscenegraph.org/";
|
||||
maintainers = with maintainers; [ aanderse raskin ];
|
||||
platforms = with platforms; linux ++ darwin;
|
||||
license = "OpenSceneGraph Public License - free LGPL-based license";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue