mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-30 09:07:02 +00:00
Merge pull request #93281 from danieldk/darktable-opencl
darktable: fix OpenCL support
This commit is contained in:
commit
b5e5800a0b
1 changed files with 4 additions and 0 deletions
|
@ -45,6 +45,10 @@ stdenv.mkDerivation rec {
|
||||||
libPathEnvVar = if stdenv.isDarwin then "DYLD_LIBRARY_PATH" else "LD_LIBRARY_PATH";
|
libPathEnvVar = if stdenv.isDarwin then "DYLD_LIBRARY_PATH" else "LD_LIBRARY_PATH";
|
||||||
libPathPrefix = "$out/lib/darktable" + stdenv.lib.optionalString stdenv.isLinux ":${ocl-icd}/lib";
|
libPathPrefix = "$out/lib/darktable" + stdenv.lib.optionalString stdenv.isLinux ":${ocl-icd}/lib";
|
||||||
in ''
|
in ''
|
||||||
|
for f in $out/share/darktable/kernels/*.cl; do
|
||||||
|
sed -r "s|#include \"(.*)\"|#include \"$out/share/darktable/kernels/\1\"|g" -i "$f"
|
||||||
|
done
|
||||||
|
|
||||||
gappsWrapperArgs+=(
|
gappsWrapperArgs+=(
|
||||||
--prefix ${libPathEnvVar} ":" "${libPathPrefix}"
|
--prefix ${libPathEnvVar} ":" "${libPathPrefix}"
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Reference in a new issue