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

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