Initial commit

This commit is contained in:
Dark Steveneq
2025-10-10 21:19:26 +02:00
commit a4dfc5b9bc
19 changed files with 495 additions and 0 deletions

33
flake.nix Executable file
View File

@@ -0,0 +1,33 @@
{
inputs = {
flake-parts.url = "github:hercules-ci/flake-parts";
nixpkgs.url = "github:nixos/nixpkgs";
};
outputs = inputs@{ flake-parts, ... }:
flake-parts.lib.mkFlake { inherit inputs; } {
systems = [ "aarch64-linux" "x86_64-linux" ];
perSystem = { config, pkgs, ... }: {
packages.default = pkgs.qt6Packages.callPackage ./build.nix { };
devShells.default = pkgs.mkShell {
inputsFrom = [ config.packages.default ];
buildInputs = with pkgs; [
gdb
qtcreator
qt6.qttools
# this is for the shellhook portion
qt6.wrapQtAppsHook
makeWrapper
bashInteractive
];
# set the environment variables that unpatched Qt apps expect
shellHook = ''
bashdir=$(mktemp -d)
makeWrapper "$(type -p bash)" "$bashdir/bash" "''${qtWrapperArgs[@]}"
exec "$bashdir/bash"
'';
};
};
};
}