-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add falke and use nix package to have stable astyle version
Signed-off-by: Duc Tri Nguyen <[email protected]>
- Loading branch information
Showing
3 changed files
with
147 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
{ | ||
description = "mlkem-c-embedded"; | ||
|
||
inputs = { | ||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11"; | ||
|
||
flake-parts = { | ||
url = "github:hercules-ci/flake-parts"; | ||
inputs.nixpkgs-lib.follows = "nixpkgs"; | ||
}; | ||
}; | ||
|
||
outputs = inputs@{ flake-parts, nixpkgs, ... }: | ||
flake-parts.lib.mkFlake { inherit inputs; } { | ||
imports = [ ]; | ||
systems = [ "x86_64-linux" "aarch64-linux" "aarch64-darwin" "x86_64-darwin" ]; | ||
perSystem = { pkgs, system, inputs', ... }: | ||
let | ||
core = with pkgs; [ | ||
# formatter & linters | ||
astyle # 3.4.10 | ||
|
||
# build dependencies | ||
gcc-arm-embedded-13 # arm-gnu-toolchain-13.2.rel1 | ||
openocd # 0.12.0 | ||
python311Packages.pyserial # 3.5 | ||
]; | ||
in | ||
{ | ||
devShells.default = with pkgs; mkShellNoCC { | ||
packages = core ++ [ | ||
direnv | ||
nix-direnv | ||
|
||
# formatter & linters | ||
nixpkgs-fmt | ||
shfmt | ||
codespell | ||
]; | ||
|
||
shellHook = '' | ||
export PATH=$PWD/dev-support/bin:$PATH | ||
''; | ||
}; | ||
|
||
devShells.ci = with pkgs; mkShellNoCC { | ||
packages = core; | ||
}; | ||
|
||
}; | ||
flake = { | ||
# The usual flake attributes can be defined here, including system- | ||
# agnostic ones like nixosModule and system-enumerating ones, although | ||
# those are more easily expressed in perSystem. | ||
|
||
}; | ||
}; | ||
} | ||
|