Address PR comments
This commit is contained in:
committed by
Profpatsch
parent
f47e6ff4ed
commit
3a3ccb106e
@@ -0,0 +1,11 @@
|
|||||||
|
{ fetchzip }:
|
||||||
|
|
||||||
|
rec {
|
||||||
|
pname = "irrlicht";
|
||||||
|
version = "1.8.4";
|
||||||
|
|
||||||
|
src = fetchzip {
|
||||||
|
url = "mirror://sourceforge/irrlicht/${pname}-${version}.zip";
|
||||||
|
sha256 = "02sq067fn4xpf0lcyb4vqxmm43qg2nxx770bgrl799yymqbvih5f";
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -1,14 +1,14 @@
|
|||||||
{ stdenv, fetchzip, libGLU, libGL, unzip, libXrandr, libX11, libXxf86vm }:
|
{ stdenv, fetchzip, libGLU, libGL, unzip, libXrandr, libX11, libXxf86vm }:
|
||||||
|
|
||||||
|
let
|
||||||
|
common = import ./common.nix { inherit fetchzip; };
|
||||||
|
in
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "irrlicht";
|
pname = common.pname;
|
||||||
version = "1.8.4";
|
version = common.version;
|
||||||
|
|
||||||
src = fetchzip {
|
src = common.src;
|
||||||
url = "mirror://sourceforge/irrlicht/${pname}-${version}.zip";
|
|
||||||
sha256 = "02sq067fn4xpf0lcyb4vqxmm43qg2nxx770bgrl799yymqbvih5f";
|
|
||||||
};
|
|
||||||
|
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
cd source/Irrlicht
|
cd source/Irrlicht
|
||||||
|
|||||||
@@ -1,19 +1,12 @@
|
|||||||
{ stdenv, fetchzip, libGLU, libGL, unzip, fetchFromGitHub, cmake, Cocoa, OpenGL, IOKit }:
|
{ stdenv, fetchzip, libGLU, libGL, unzip, fetchFromGitHub, cmake, Cocoa, OpenGL, IOKit }:
|
||||||
|
|
||||||
let
|
let
|
||||||
version = "1.8.4";
|
common = import ./common.nix { inherit fetchzip; };
|
||||||
|
|
||||||
irrlichtZip = fetchzip {
|
|
||||||
name = "irrlichtZip";
|
|
||||||
url = "mirror://sourceforge/irrlicht/irrlicht-${version}.zip";
|
|
||||||
sha256 = "02sq067fn4xpf0lcyb4vqxmm43qg2nxx770bgrl799yymqbvih5f";
|
|
||||||
};
|
|
||||||
|
|
||||||
in
|
in
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "irrlicht-mac";
|
pname = "irrlicht-mac";
|
||||||
inherit version;
|
version = common.version;
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "quiark";
|
owner = "quiark";
|
||||||
@@ -23,7 +16,7 @@ stdenv.mkDerivation rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
postUnpack = ''
|
postUnpack = ''
|
||||||
cp -r ${irrlichtZip}/* $sourceRoot/
|
cp -r ${common.src}/* $sourceRoot/
|
||||||
chmod -R 777 $sourceRoot
|
chmod -R 777 $sourceRoot
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchFromGitHub }:
|
{ stdenv, fetchFromGitHub, fixDarwinDylibNames }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "leveldb";
|
pname = "leveldb";
|
||||||
@@ -11,16 +11,14 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "01kxga1hv4wp94agx5vl3ybxfw5klqrdsrb6p6ywvnjmjxm8322y";
|
sha256 = "01kxga1hv4wp94agx5vl3ybxfw5klqrdsrb6p6ywvnjmjxm8322y";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = []
|
||||||
|
++ stdenv.lib.optional stdenv.isDarwin [ fixDarwinDylibNames ];
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
make all
|
make all
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = (stdenv.lib.optionalString stdenv.isDarwin ''
|
installPhase = "
|
||||||
for file in out-shared/*.dylib.*.*; do
|
|
||||||
install_name_tool -id $out/lib/$(basename $file) $file
|
|
||||||
done
|
|
||||||
'') + # XXX consider removing above after transition to cmake in the next release
|
|
||||||
"
|
|
||||||
mkdir -p $out/{bin,lib,include}
|
mkdir -p $out/{bin,lib,include}
|
||||||
|
|
||||||
cp -r include $out
|
cp -r include $out
|
||||||
|
|||||||
@@ -40,8 +40,6 @@ let
|
|||||||
"-DOpenGL_GL_PREFERENCE=GLVND"
|
"-DOpenGL_GL_PREFERENCE=GLVND"
|
||||||
];
|
];
|
||||||
|
|
||||||
patches = [ ./fix_wordsize_confusion.patch ];
|
|
||||||
|
|
||||||
NIX_CFLAGS_COMPILE = "-DluaL_reg=luaL_Reg"; # needed since luajit-2.1.0-beta3
|
NIX_CFLAGS_COMPILE = "-DluaL_reg=luaL_Reg"; # needed since luajit-2.1.0-beta3
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake doxygen graphviz ];
|
nativeBuildInputs = [ cmake doxygen graphviz ];
|
||||||
|
|||||||
Reference in New Issue
Block a user