aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/applications/graphics/fluxus/fix-build.patch
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/applications/graphics/fluxus/fix-build.patch')
-rw-r--r--nixpkgs/pkgs/applications/graphics/fluxus/fix-build.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/applications/graphics/fluxus/fix-build.patch b/nixpkgs/pkgs/applications/graphics/fluxus/fix-build.patch
new file mode 100644
index 00000000000..7810dd59e35
--- /dev/null
+++ b/nixpkgs/pkgs/applications/graphics/fluxus/fix-build.patch
@@ -0,0 +1,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
+