summary refs log tree commit diff
path: root/pkgs/development/libraries/xine-lib/builder.sh
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/libraries/xine-lib/builder.sh')
-rw-r--r--pkgs/development/libraries/xine-lib/builder.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/pkgs/development/libraries/xine-lib/builder.sh b/pkgs/development/libraries/xine-lib/builder.sh
new file mode 100644
index 00000000000..8b499bbefcf
--- /dev/null
+++ b/pkgs/development/libraries/xine-lib/builder.sh
@@ -0,0 +1,9 @@
+. $stdenv/setup
+
+if test -n "$libdvdcss"; then
+    # Ugly hack to force libdvdcss to be present (so the user doesn't
+    # have to set LD_LIBRARY_PATH).
+    export NIX_LDFLAGS="-rpath $libdvdcss/lib -L$libdvdcss/lib -ldvdcss $NIX_LDFLAGS"
+fi
+
+genericBuild
\ No newline at end of file