blueopinion/templates/default/nix/devshells/default.nix

29 lines
577 B
Nix
Raw Normal View History

2024-12-23 11:55:36 +01:00
{
pkgs,
flake,
system,
}:
pkgs.mkShell {
# Add build dependencies
packages = [
flake.formatter.${system}
pkgs.jq
];
# Add environment variables
env = { };
# Load custom bash code
shellHook =
# TODO(blocked/upstream): remove this once https://github.com/isbecker/treefmt-vscode/issues/3 is resolved
2025-03-29 17:53:42 +01:00
# (flake.inputs.nixago.lib.${system}.make {
# data = flake.formatter.${system}.settings;
# output = "treefmt.toml";
# format = "toml";
# }).shellHook
# +
''
2024-12-23 11:55:36 +01:00
echo $(git rev-parse --show-toplevel)
'';
}