summaryrefslogtreecommitdiff
path: root/flake.nix
blob: 6a41337196192311e7ce88e54792814f1e0e37f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{
  description = "Godot project environment with OpenCode and MCP support";

  inputs = {
    nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
    flake-utils.url = "github:numtide/flake-utils";
  };

  outputs = { self, nixpkgs, flake-utils }:
    flake-utils.lib.eachDefaultSystem (system:
      let
        pkgs = import nixpkgs { inherit system; };
      in
      {
        devShells.default = pkgs.mkShell {
          packages = with pkgs; [
            godot_4
            nodejs_22
            opencode
          ];

          shellHook = ''
            export GODOT_PATH="${pkgs.godot_4}/bin/godot"
            echo "Godot development environment loaded."
          '';
        };
      }
    );
}