mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 14:11:36 +00:00
fb6403aeaa
Old package expression had two problems: * source download link was broken * when working, it downloaded almost 400 MB of data because it cloned the entire mercurial repo, via http it's only about 140 MB. [Bjørn: extend commit message]
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.9.0";
|
|
|
|
src = fetchurl {
|
|
url = "https://bitbucket.org/sinbad/ogre/get/v1-9-0.tar.gz";
|
|
sha256 = "0p8gyn293qn3iyiy1smfmjd9zpnjb8h2zgvff8778fwh0ylbmlpa";
|
|
};
|
|
|
|
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 = stdenv.lib.licenses.mit;
|
|
};
|
|
}
|