nixos/templates/cxx/flake.nix

37 lines
663 B
Nix

{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
flake-utils = {
url = "github:numtide/flake-utils";
};
};
outputs =
{
flake-utils,
nixpkgs,
...
}:
flake-utils.lib.eachDefaultSystem (
system:
let
pkgs = import nixpkgs {
localSystem = { inherit system; };
};
in
{
formatter = pkgs.alejandra;
devShells.default = pkgs.mkShell {
packages = with pkgs; [
clang-tools
gcc
bear
gnumake
];
};
}
);
nixConfig = {
keepOutputs = true;
};
}