This commit is contained in:
2026-07-07 12:44:31 -05:00
commit 8069dfcdc2
10 changed files with 229 additions and 0 deletions

49
flake.nix Normal file
View File

@@ -0,0 +1,49 @@
{
description = "QT Flake";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
};
outputs = {self, nixpkgs}: {
defaultPackage.x86_64-linux = let
pkgs = import nixpkgs { system = "x86_64-linux"; };
in
pkgs.stdenv.mkDerivation {
name = "QT";
src = builtins.path { path = ./.; filter = path: type: baseNameOf path != "build"; };
nativeBuildInputs = with pkgs; [
cmake
qt6.wrapQtAppsHook
];
buildInputs = with pkgs; [
qt6.qtbase
qt6.qtdeclarative
qt6.qtwayland
];
};
devShell.x86_64-linux = let
pkgs = import nixpkgs { system = "x86_64-linux"; };
in
pkgs.mkShell {
buildInputs = with pkgs; [
cmake
gcc
clang-tools
qt6.qtbase
qt6.qtdeclarative
qt6.qtlanguageserver
qt6.qttools
qt6.qtwayland
# qtcreator
];
shellHook = ''
export QML_IMPORT_PATH="${pkgs.qt6.qtdeclarative}/lib/qml"
'';
};
};
}