Hi,
I would like to play a little with the qt6 examples but qtbase is installed without the examples.
Is there a way to simply add them to qtcreator ?
my flake.nix :
{
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
gdb
qt6.qtbase
qt6.full
qtcreator
# this is for the shellhook portion
qt6.wrapQtAppsHook
makeWrapper
bashInteractive
];
# set the environment variables that Qt apps expect
shellHook = ''
#export QT_QPA_PLATFORM=wayland
bashdir=$(mktemp -d)
makeWrapper "$(type -p bash)" "$bashdir/bash" "''${qtWrapperArgs[@]}"
exec "$bashdir/bash"
'';
};
};
}
Reference :
and :
Thanks