Add nix devshell

This commit is contained in:
SebastianStork 2024-12-03 20:41:39 +01:00
parent de6900aab7
commit f2e3a50169
2 changed files with 54 additions and 0 deletions

27
flake.nix Normal file
View file

@ -0,0 +1,27 @@
{
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";
outputs =
{ self, nixpkgs }:
let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
in
{
devShells.${system}.qtcreator =
pkgs.mkShell.override
{
stdenv = pkgs.clangStdenv;
}
{
packages = with pkgs; [
gdb
clang-tools
qt6.full
qtcreator
];
};
formatter.${system} = pkgs.nixfmt-rfc-style;
};
}