nix-config/shells/code-format/flake.nix

32 lines
735 B
Nix
Raw Normal View History

2023-09-28 15:28:32 +00:00
{
description = "Nix shell for code-format tools";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/release-23.05";
flake-utils.url = "github:numtide/flake-utils";
};
outputs =
2023-10-16 18:46:06 +00:00
{ nixpkgs
2023-09-28 15:28:32 +00:00
, flake-utils
}:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs { inherit system; };
in
{
devShells.default = pkgs.mkShell {
packages = with pkgs; [
black # Code format Python
chroma # Code syntax highlighter
mdp # Terminal Markdown presenter
nodePackages.prettier # Code format
rustfmt # Code format Rust
shellcheck # Code lint Shell
shfmt # Code format Shell
];
};
});
}