DEVELOPMENT ENVIRONMENT

~liljamo/deck-builder

ref: f2af0141369d5ca4bb44f3f24d0b8402e1ac7e90 deck-builder/api/flake.nix -rw-r--r-- 668 bytes
f2af0141 — skye feat(client): something to browse in browse 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
      ];
    };
  });
}