DEVELOPMENT ENVIRONMENT

~liljamo/deck-builder

ref: d2c89141eae4f0932cab1f98147b0085f1e07290 deck-builder/api/flake.nix -rw-r--r-- 668 bytes
d2c89141Jonni Liljamo feat(client): end game endpoint call 1 year, 4 months ago
                                                                                
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
30
31
{
  description = "Laurelin API";

  inputs = {
    nixpkgs.url = "github:nixos/nixpkgs/nixos-22.11";
    flake-utils.url = "github:numtide/flake-utils";
    gomod2nix = {
      url = "github:nix-community/gomod2nix";
      inputs.nixpkgs.follows = "nixpkgs";
      inputs.utils.follows = "flake-utils";
    };
  };

  outputs = { self, nixpkgs, flake-utils, gomod2nix }:
  flake-utils.lib.eachDefaultSystem (system:
  let
    pkgs = import nixpkgs {
      inherit system;
      overlays = [ gomod2nix.overlays.default ];
    };
  in {
    devShell = with pkgs; pkgs.mkShell {
      buildInputs = [
        go
        gopls

        postgresql
      ];
    };
  });
}