This commit is contained in:
2026-01-03 23:27:14 +01:00
commit 61486008f6
11 changed files with 412 additions and 0 deletions
+39
View File
@@ -0,0 +1,39 @@
{
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
outputs = { self, nixpkgs }:
let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
pkg = pkgs.callPackage ./build.nix {};
in {
packages.${system}.default = pkg;
apps.${system}.default = {
type = "app";
program = "${pkg}/bin/appuntitled";
};
devShells.${system}.default = pkgs.mkShell {
buildInputs = with pkgs; [
cmake
gdb
qt6.qtbase
qt6.qtdeclarative
qt6.qtwayland
qtcreator
qt6.wrapQtAppsHook
makeWrapper
bashInteractive
];
shellHook = ''
export QT_QPA_PLATFORM=wayland
bashdir=$(mktemp -d)
makeWrapper "$(type -p bash)" "$bashdir/bash" "''${qtWrapperArgs[@]}"
exec "$bashdir/bash"
'';
};
};
}