32 lines
580 B
Nix
32 lines
580 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 {
|
|
inherit system;
|
|
};
|
|
in {
|
|
formatter = pkgs.alejandra;
|
|
devShells.default = pkgs.mkShell {
|
|
packages = with pkgs; [
|
|
clang-tools
|
|
|
|
gcc
|
|
bear
|
|
gnumake
|
|
];
|
|
};
|
|
});
|
|
nixConfig = {
|
|
keepOutputs = true;
|
|
};
|
|
}
|