about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/wayqt/fix-qtwayland-header-path.diff
blob: 648cecd918e891a5fe87ee8920a78a6d26818552 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/meson.build b/meson.build
index 5c09644..fc65d37 100644
--- a/meson.build
+++ b/meson.build
@@ -39,9 +39,8 @@ elif get_option('use_qt_version') == 'qt6'
 		private_headers: [ 'Gui', 'WaylandClient', 'WaylandGlobalPrivate' ],
 	)
 
-	qmake = find_program( [ 'qmake-qt6', 'qmake6' ], required: true )
-	ret = run_command( qmake, '-query', 'QT_INSTALL_HEADERS', check: true )
-	QtHeaderPath = ret.stdout().strip()
+	qmake = find_program( [ 'qmake-qt6', 'qmake6' ], required: false )
+	QtHeaderPath = '@qtWaylandPath@'
 
 	QtGlobal = '@0@/QtWaylandGlobal/@1@'.format( QtHeaderPath, QtDeps.version() )