build: point TURBOJPEG_PATH at lib.getLib, not the package's default output
The default output of libjpeg-turbo in this nixpkgs is the tools (-bin), which has no lib/ at all, so the check failed with 'cannot load libjpeg-turbo from .../-bin/lib/libturbojpeg.so'. lib.getLib selects the output that actually holds the shared library.
This commit is contained in:
1 parent
a417a6919d
commit
b2bc84602a
2 files changed
+5
-2
No files matched your search
+4
-1
@@ -38,7 +38,10 @@ python3.pkgs.buildPythonApplication {
|
||||
# one that actually decides, and `jpeg._load_library` checks it first.
|
||||
makeWrapperArgs = [
|
||||
"--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ libjpeg_turbo ]}"
|
||||
"--set TURBOJPEG_PATH ${libjpeg_turbo}/lib/libturbojpeg.so"
|
||||
# `lib.getLib`, not the bare package: the default output of libjpeg-turbo in
|
||||
# this nixpkgs is the *tools* (`-bin`), which has no `lib/` at all -- pointing
|
||||
# at it produced "cannot load libjpeg-turbo from .../-bin/lib/libturbojpeg.so".
|
||||
"--set TURBOJPEG_PATH ${lib.getLib libjpeg_turbo}/lib/libturbojpeg.so"
|
||||
];
|
||||
|
||||
# Unit tests are wired up in the flake's `checks` so they can run without
|
||||
|
||||
Reference in new issue
Block a user