Skip to content

Commit

Permalink
feat: use nested commands for the default devShell
Browse files Browse the repository at this point in the history
  • Loading branch information
deemp committed Jan 13, 2024
1 parent 0d4e6e4 commit 5c275f5
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,31 @@
};
};

devShells.default = devshell.fromTOML ./devshell.toml;
devShells = {
default = devshell.mkShell {
commands = {
packages = [
"diffutils" # used by golangci-lint
"goreleaser"
];
scripts = [
{
prefix = "nix run .#";
inherit packages;
}
{
name = "nix fmt";
help = "format Nix files";
}
];
utilites = [
[ "GitHub utility" "gitAndTools.hub" ]
[ "golang linter" "golangci-lint" ]
];
};
};
toml = devshell.fromTOML ./devshell.toml;
};

legacyPackages = import inputs.self {
inherit system;
Expand Down

0 comments on commit 5c275f5

Please sign in to comment.