mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-10 16:45:51 +03:00
gambatte: Fix sandbox build
This commit is contained in:
parent
83f1a24080
commit
ce823a8dbc
@ -13,6 +13,8 @@ stdenv.mkDerivation rec {
|
||||
|
||||
buildInputs = [ scons qt4 ];
|
||||
|
||||
patches = [ ./fix-scons-paths.patch ];
|
||||
|
||||
buildPhase = ''
|
||||
./build_qt.sh
|
||||
'';
|
||||
|
15
pkgs/games/gambatte/fix-scons-paths.patch
Normal file
15
pkgs/games/gambatte/fix-scons-paths.patch
Normal file
@ -0,0 +1,15 @@
|
||||
diff --git a/libgambatte/SConstruct b/libgambatte/SConstruct
|
||||
index e882514..87e1eaa 100644
|
||||
--- a/libgambatte/SConstruct
|
||||
+++ b/libgambatte/SConstruct
|
||||
@@ -5,7 +5,9 @@ vars = Variables()
|
||||
vars.Add('CC')
|
||||
vars.Add('CXX')
|
||||
|
||||
-env = Environment(CPPPATH = ['src', 'include', '../common'],
|
||||
+import os
|
||||
+env = Environment(ENV = os.environ,
|
||||
+ CPPPATH = ['src', 'include', '../common'],
|
||||
CFLAGS = global_cflags + global_defines,
|
||||
CXXFLAGS = global_cxxflags + global_defines,
|
||||
variables = vars)
|
Loading…
Reference in New Issue
Block a user