mirror of
https://github.com/gburd/nix-config.git
synced 2024-11-20 10:36:25 +00:00
33 lines
746 B
Nix
33 lines
746 B
Nix
|
{
|
||
|
description = "Nix shell for code-format tools";
|
||
|
|
||
|
inputs = {
|
||
|
nixpkgs.url = "github:NixOS/nixpkgs/release-23.05";
|
||
|
flake-utils.url = "github:numtide/flake-utils";
|
||
|
};
|
||
|
|
||
|
outputs =
|
||
|
{ self
|
||
|
, nixpkgs
|
||
|
, 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
|
||
|
];
|
||
|
};
|
||
|
});
|
||
|
}
|