zint: fix build with qt 6.4

main
Nick Cao 2 years ago
parent de795b62a7
commit d3d06877ba
No known key found for this signature in database
  1. 2
      pkgs/development/libraries/zint/default.nix
  2. 12
      pkgs/development/libraries/zint/qobject.patch

@ -21,6 +21,8 @@ stdenv.mkDerivation rec {
sha256 = "sha256-ozhXy7ftmGz1XvmF8AS1ifWJ3Q5hLSsysB8qLUP60n8=";
};
patches = [ ./qobject.patch ];
outputs = [ "out" "dev" ];
nativeBuildInputs = [ cmake wrapQtAppsHook ];

@ -0,0 +1,12 @@
diff --git a/backend_qt/qzint.h b/backend_qt/qzint.h
index d57ab6a..62fb0a4 100644
--- a/backend_qt/qzint.h
+++ b/backend_qt/qzint.h
@@ -19,6 +19,7 @@
#ifndef QZINT_H
#define QZINT_H
+#include <QObject>
#include <QColor>
#include <QPainter>
#include "zint.h"
Loading…
Cancel
Save