diff --git a/pkgs/development/libraries/libjxl/default.nix b/pkgs/development/libraries/libjxl/default.nix index 6eba2d0112ef..461a3579ddef 100644 --- a/pkgs/development/libraries/libjxl/default.nix +++ b/pkgs/development/libraries/libjxl/default.nix @@ -69,11 +69,14 @@ stdenv.mkDerivation rec { pkg-config ] ++ lib.optionals buildDocs [ asciidoc - graphviz doxygen python3 ]; + depsBuildBuild = lib.optionals buildDocs [ + graphviz + ]; + # Functionality not currently provided by this package # that the cmake build can apparently use: # OpenGL/GLUT (for Examples -> comparison with sjpeg) @@ -125,6 +128,8 @@ stdenv.mkDerivation rec { # * the `gdk-pixbuf` one, which allows applications like `eog` to load jpeg-xl files # * the `gimp` one, which allows GIMP to load jpeg-xl files # "-DJPEGXL_ENABLE_PLUGINS=ON" + ] ++ lib.optionals stdenv.hostPlatform.isStatic [ + "-DJPEGXL_STATIC=ON" ]; LDFLAGS = lib.optionalString stdenv.hostPlatform.isRiscV "-latomic";