This repository has been archived on 2024-05-03. You can view files and clone it, but cannot push or open issues or pull requests.
treefmt/nix/devshell.nix
2023-12-23 12:50:51 +00:00

59 lines
1014 B
Nix

{inputs, ...}: {
imports = [
inputs.devshell.flakeModule
];
config.perSystem = {
pkgs,
config,
...
}: {
config.devshells.default = {
env = [
{
name = "GOROOT";
value = pkgs.go + "/share/go";
}
{
name = "LD_LIBRARY_PATH";
value = "$DEVSHELL_DIR/lib";
}
];
packages = with pkgs; [
# golang
go
go-tools
delve
golangci-lint
# formatters for testing
elmPackages.elm-format
haskellPackages.cabal-fmt
haskellPackages.ormolu
mdsh
nixpkgs-fmt
nodePackages.prettier
python3.pkgs.black
rufo
rustfmt
shellcheck
shfmt
terraform
];
commands = [
{
category = "development";
package = pkgs.gomod2nix;
}
{
category = "development";
package = pkgs.enumer;
}
];
};
};
}