Files
qyouradio/flake.nix
Dark Steveneq a4dfc5b9bc Initial commit
2025-10-10 21:19:26 +02:00

33 lines
1004 B
Nix
Executable File

{
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"
'';
};
};
};
}