Hello,
I am currently developing a QML based application, and would like to use Qt Quick Test to test the GUI components. The only trouble is that Qt Quick Test is not included in qt6.qtbase or any of the other packages I have tried. For a little more reference, here is the flake.nix I have written so far (it’s short):
{
inputs.nixpkgs.url = "github:nixos/nixpkgs";
outputs = { self, nixpkgs }:
let
pkgs = nixpkgs.legacyPackages.x86_64-linux;
in
{
devShells.x86_64-linux.default = pkgs.mkShell {
buildInputs = with pkgs; [
cmake
curl
qt6.qtbase
qt6.qtquick3d
qt6.qtcharts
qt6.qtdeclarative
qtcreator
# Shellhook
qt6.wrapQtAppsHook
makeWrapper
bashInteractive
];
# Set environment variables
shellHook = ''
bashdir=$(mktemp -d)
makeWrapper "$(type -p bash)" "$bashdir/bash" "''${qtWrapperArgs[@]}"
exec "$bashdir/bash"
'';
};
};
}
Any direction would be appreciated.