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

58 lines
1010 B
Nix
Raw Normal View History

2023-12-23 12:50:47 +00:00
{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
2023-12-24 11:19:48 +00:00
gotools
2023-12-23 12:50:47 +00:00
delve
golangci-lint
# formatters for testing
alejandra
2023-12-23 12:50:47 +00:00
elmPackages.elm-format
haskellPackages.cabal-fmt
haskellPackages.ormolu
mdsh
nodePackages.prettier
python3.pkgs.black
rufo
rustfmt
shellcheck
shfmt
terraform
];
commands = [
{
category = "development";
package = pkgs.gomod2nix;
}
{
category = "development";
package = pkgs.enumer;
}
];
};
};
}