DEVELOPMENT ENVIRONMENT

~liljamo/deck-builder

ref: de6cc1598b1f22b6bdf0e9f06e0753d0265f901f deck-builder/api/flake.nix -rw-r--r-- 668 bytes
de6cc159 — skye feat(client): take cards from supply piles 1 year, 7 months ago
                                                                                
d7aff545 skye
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
      ];
    };
  });
}