qt6Packages.qzxing: Fix build
Upstream QMake code doesn't use the correct functions for version-gating code.
This commit is contained in:
@@ -19,6 +19,14 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
hash = "sha256-ASgsF5ocNWAiIy2jm6ygpDkggBcEpno6iVNWYkuWcVI=";
|
||||
};
|
||||
|
||||
# greaterThan/lessThan don't handle versions, use versionAtLeast/versionAtMost instead
|
||||
# Versions are different due to versionAtLeast/-Most using an inclusive limit, while greater-/lessThan use exclusive ones
|
||||
postPatch = ''
|
||||
substituteInPlace src/QZXing-components.pri \
|
||||
--replace-fail 'lessThan(QT_VERSION, 6.2)' 'versionAtMost(QT_VERSION, 6.1)' \
|
||||
--replace-fail 'greaterThan(QT_VERSION, 6.1)' 'versionAtLeast(QT_VERSION, 6.2)'
|
||||
'';
|
||||
|
||||
# QMake can't find qtmultimedia in buildInputs
|
||||
strictDeps = false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user