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
Brian McGee fcce518d5e
feat: various perf improvements
Signed-off-by: Brian McGee <brian@bmcgee.ie>
2024-04-25 12:16:04 +01:00

47 lines
816 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
delve
graphviz
]
++
# include formatters for development and testing
(import ./formatters.nix pkgs);
commands = [
{
category = "development";
package = pkgs.gomod2nix;
}
{
category = "development";
package = pkgs.enumer;
}
];
};
};
}