DEVELOPMENT ENVIRONMENT

~liljamo/deck-builder

ref: cc547779101de47447e5afa40457aef9662f7701 deck-builder/api/flake.nix -rw-r--r-- 668 bytes
cc547779Jonni Liljamo feat(client): change camera pso 1 year, 7 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
      ];
    };
  });
}