add cxx templates and improve rust template
This commit is contained in:
parent
bc0c2c736b
commit
e8317da51b
22 changed files with 2634 additions and 3 deletions
34
templates/cxx/flake.nix
Normal file
34
templates/cxx/flake.nix
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
{
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
||||
flake-utils = {
|
||||
url = "github:numtide/flake-utils";
|
||||
};
|
||||
};
|
||||
outputs = {
|
||||
self,
|
||||
flake-utils,
|
||||
nixpkgs,
|
||||
...
|
||||
}:
|
||||
flake-utils.lib.eachDefaultSystem (system: let
|
||||
inherit (pkgs) lib;
|
||||
pkgs = import nixpkgs {
|
||||
inherit system;
|
||||
};
|
||||
in {
|
||||
formatter = pkgs.alejandra;
|
||||
devShells.default = pkgs.mkShell {
|
||||
packages = with pkgs; [
|
||||
clang-tools
|
||||
|
||||
gcc
|
||||
bear
|
||||
gnumake
|
||||
];
|
||||
};
|
||||
});
|
||||
nixConfig = {
|
||||
keepOutputs = true;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue