-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
64 lines (58 loc) · 1.56 KB
/
flake.nix
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
{
description = "Nhost's nix operations";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs?rev=9e2f27689a02e0ec978b92c1c4f775a41108c28d";
flake-utils.url = "github:numtide/flake-utils";
nix-filter.url = "github:numtide/nix-filter";
};
outputs = { self, nixpkgs, flake-utils, nix-filter }:
let
nix-src = nix-filter.lib.filter {
root = ./.;
include = [
(nix-filter.lib.matchExt "nix")
];
};
overlays = [
(import ./overlays/default.nix)
];
in
{
overlays.default = import ./overlays/default.nix;
lib = import ./lib/lib.nix;
} // flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs {
inherit system overlays;
};
nix-lib = import ./lib/nix/nix.nix { inherit pkgs; };
in
{
checks = {
nix-tests = nix-lib.check { src = nix-src; };
};
devShells = flake-utils.lib.flattenTree {
default = pkgs.mkShell {
buildInputs = with pkgs; [
go
golangci-lint
mockgen
golines
govulncheck
gqlgen
gqlgenc
oapi-codegen
nhost-cli
postgresql_14_15-client
postgresql_15_10-client
postgresql_16_6-client
postgresql_17_2-client
postgresql_14_15
postgresql_15_10
postgresql_16_6
postgresql_17_2
];
};
};
});
}