diff --git a/pkgs/development/libraries/qt-6/modules/qtsvg.nix b/pkgs/development/libraries/qt-6/modules/qtsvg.nix index d81634d9ef1b..3d7df288839a 100644 --- a/pkgs/development/libraries/qt-6/modules/qtsvg.nix +++ b/pkgs/development/libraries/qt-6/modules/qtsvg.nix @@ -5,11 +5,20 @@ , libmng , zlib , pkg-config +, lib +, stdenv }: qtModule { pname = "qtsvg"; propagatedBuildInputs = [ qtbase ]; - buildInputs = [ libwebp jasper libmng zlib ]; + buildInputs = [ + libwebp + ] ++ lib.optionals (stdenv.buildPlatform.canExecute stdenv.hostPlatform) [ + jasper + ] ++ [ + libmng + zlib + ]; nativeBuildInputs = [ pkg-config ]; }