mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-17 14:19:58 +03:00
7e1d0c12a3
I updated ogre and mygui, too. Now myguiSvn is older than mygui. We should check if this commit breaks other games that use ogre (ror?)
43 lines
1.2 KiB
Nix
43 lines
1.2 KiB
Nix
{ fetchurl, stdenv
|
|
, cmake, mesa
|
|
, freetype, freeimage, zziplib, randrproto, libXrandr
|
|
, libXaw, freeglut, libXt, libpng, boost, ois
|
|
, xproto, libX11, libXmu, libSM, pkgconfig
|
|
, libXxf86vm, xf86vidmodeproto, libICE
|
|
, renderproto, libXrender
|
|
, nvidia_cg_toolkit }:
|
|
|
|
stdenv.mkDerivation {
|
|
name = "ogre-1.8.1";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/ogre/1.8.1/ogre_src_v1-8-1.tar.bz2";
|
|
sha256 = "1avadx87sdfdk8165wlffnd5dzks694dcdnkg3ijap966k4qm46s";
|
|
};
|
|
|
|
cmakeFlags = [ "-DOGRE_INSTALL_SAMPLES=yes" ]
|
|
++ (map (x: "-DOGRE_BUILD_PLUGIN_${x}=on")
|
|
[ "BSP" "CG" "OCTREE" "PCZ" "PFX" ])
|
|
++ (map (x: "-DOGRE_BUILD_RENDERSYSTEM_${x}=on") [ "GL" ]);
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
buildInputs =
|
|
[ cmake mesa
|
|
freetype freeimage zziplib randrproto libXrandr
|
|
libXaw freeglut libXt libpng boost ois
|
|
xproto libX11 libXmu libSM pkgconfig
|
|
libXxf86vm xf86vidmodeproto libICE
|
|
renderproto libXrender
|
|
nvidia_cg_toolkit
|
|
];
|
|
|
|
meta = {
|
|
description = "A 3D engine";
|
|
homepage = http://www.ogre3d.org/;
|
|
maintainers = [ stdenv.lib.maintainers.raskin ];
|
|
platforms = stdenv.lib.platforms.linux;
|
|
license = "MIT";
|
|
};
|
|
}
|