Initial commit
This commit is contained in:
33
flake.nix
Executable file
33
flake.nix
Executable 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"
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user