Merge pull request #296194 from seanybaggins/add-mingw-support-qt6-qtshadertools

qt6.qtshadertools: add mingw support
This commit is contained in:
Nick Cao 2024-03-16 11:41:02 -07:00 committed by GitHub
commit b04ddfe8e5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,8 +1,14 @@
{ qtModule
, qtbase
, stdenv
, lib
, pkgsBuildBuild
}:
qtModule {
pname = "qtshadertools";
propagatedBuildInputs = [ qtbase ];
cmakeFlags = lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [
"-DQt6ShaderToolsTools_DIR=${pkgsBuildBuild.qt6.qtshadertools}/lib/cmake/Qt6ShaderToolsTools"
];
}