summary refs log tree commit diff
path: root/pkgs/applications/graphics/fluxus/fix-build.patch
blob: 7810dd59e357222542deb57e70c5238caaf37ff9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/SConstruct b/SConstruct
index 32cb644..0b3a208 100644
--- a/SConstruct
+++ b/SConstruct
@@ -225,6 +225,11 @@ if env['PLATFORM'] == 'posix':
                     ["asound", "alsa/asoundlib.h"],
                     ["openal", "AL/al.h"]]

+env.Append(ENV={'PATH': ' ' + os.environ['PATH'], })
+env.Append(LIBPATH=ARGUMENTS.get('LIBPATH', '').split(':'))
+env.Append(CCFLAGS=' ' + os.environ.get('NIX_CFLAGS_COMPILE',''))
+env.Append(CCFLAGS=' -DNULL=0')
+
 ################################################################################
 # Make sure we have these libraries availible