Skip to content

Commit 06bef75

Browse files
committed
refactor: use commands attrset for the default devshell
1 parent 1898481 commit 06bef75

1 file changed

Lines changed: 17 additions & 1 deletion

File tree

flake.nix

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,23 @@
3838
};
3939
};
4040

41-
devShells.default = devshell.fromTOML ./devshell.toml;
41+
devShells = {
42+
default = devshell.mkShell {
43+
commands = {
44+
packages = [
45+
"diffutils" # used by golangci-lint
46+
"goreleaser"
47+
];
48+
scripts = [
49+
{
50+
prefix = "nix run .#";
51+
inherit packages;
52+
}
53+
];
54+
};
55+
};
56+
toml = devshell.fromTOML ./devshell.toml;
57+
};
4258

4359
apps.default = devShells.default.flakeApp;
4460

0 commit comments

Comments
 (0)