mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-05 03:53:41 +00:00
18 lines
613 B
Diff
18 lines
613 B
Diff
+++ build/SConstruct
|
|
@@ -63,10 +63,10 @@ elif platform_arg == 'javascript':
|
|
custom_tools = ['cc', 'c++', 'ar', 'link', 'textfile', 'zip']
|
|
|
|
env_base = Environment(tools=custom_tools)
|
|
-if 'TERM' in os.environ:
|
|
- env_base['ENV']['TERM'] = os.environ['TERM']
|
|
-env_base.AppendENVPath('PATH', os.getenv('PATH'))
|
|
-env_base.AppendENVPath('PKG_CONFIG_PATH', os.getenv('PKG_CONFIG_PATH'))
|
|
+for k in ("TERM", "PATH", "PKG_CONFIG_PATH"):
|
|
+ if (k in os.environ):
|
|
+ env_base["ENV"][k] = os.environ[k]
|
|
+
|
|
env_base.android_maven_repos = []
|
|
env_base.android_flat_dirs = []
|
|
env_base.android_dependencies = []
|
|
|