2 description = "Crush development environment";
5 nixpkgs.url = "github:NixOS/nixpkgs";
6 flake-utils.url = "github:numtide/flake-utils";
14 flake-utils.lib.eachDefaultSystem (
16 pkgs = nixpkgs.legacyPackages.${system};
19 packages.default = pkgs.buildGoModule {
27 # Match the Go toolchain used in the dev shell.
35 "-X github.com/charmbracelet/crush/internal/version.Version=${version}"
38 # The test suite requires network access and external tools.
42 description = "Terminal-based AI coding assistant";
43 homepage = "https://github.com/charmbracelet/crush";
44 license = pkgs.lib.licenses.mit;
45 mainProgram = "crush";
49 devShells.default = pkgs.mkShell {
50 buildInputs = with pkgs; [
55 gopls # Go language server
56 golangci-lint # Linter
57 gofumpt # Formatter (stricter than gofmt)
64 svu # Semantic version utility
65 sqlc # SQL code generator
69 # Set Go environment variables
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list