forked from woodpecker-ci/woodpecker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
59 lines (55 loc) · 1.31 KB
/
flake.nix
File metadata and controls
59 lines (55 loc) · 1.31 KB
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
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=master";
flake-utils.url = "github:numtide/flake-utils";
};
outputs =
{ nixpkgs, flake-utils, ... }:
flake-utils.lib.eachDefaultSystem (
system:
let
pkgs = nixpkgs.legacyPackages.${system};
in
{
devShells.default =
with pkgs;
let
go = go_1_25;
in
pkgs.mkShell {
buildInputs = [
# generic
gnumake
gnutar
gzip
zip
tree
# frontend
nodejs_24
pnpm
nodePackages.typescript
nodePackages.typescript-language-server
# backend
go
glibc.static
gofumpt
golangci-lint
go-mockery
protobuf
sqlite
go-swag # for generate-openapi
addlicense
protoc-gen-go
protoc-gen-go-grpc
gcc
# docs
graphviz
];
CFLAGS = "-I${pkgs.glibc.dev}/include";
LDFLAGS = "-L${pkgs.glibc}/lib";
GO = "${go}/bin/go";
GOROOT = "${go}/share/go";
};
}
);
}