depot/third_party/nixpkgs/pkgs/development/libraries/qt-6/modules/qtshadertools.nix

15 lines
351 B
Nix

{ 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"
];
meta.mainProgram = "qsb";
}