arche / flake.nix

commit 154431fd
 1{
 2  description = "Arche VCS — development environment";
 3
 4  inputs = {
 5    nixpkgs.url     = "github:NixOS/nixpkgs/nixos-unstable";
 6    flake-utils.url = "github:numtide/flake-utils";
 7  };
 8
 9  outputs = { self, nixpkgs, flake-utils }:
10    flake-utils.lib.eachDefaultSystem (system:
11      let
12        pkgs = nixpkgs.legacyPackages.${system};
13      in {
14        devShells.default = pkgs.mkShell {
15          name = "arche";
16
17          packages = with pkgs; [
18            go
19            gopls
20            gotools
21            golangci-lint
22            gofumpt
23
24            djlint
25            gnumake
26            git
27            just
28          ];
29
30          CGO_ENABLED = "1";
31
32          shellHook = ''
33            echo "Arche dev environment"
34            echo "   Go:     $(go version)"
35            echo "   SQLite: $(sqlite3 --version)"
36            echo ""
37          '';
38        };
39      }
40    );
41}