woodpecker/flake.nix

49 lines
1.1 KiB
Nix
Raw Normal View History

2024-05-13 18:11:09 +00:00
{
inputs = {
2024-06-12 16:02:55 +00:00
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
2024-05-13 18:11:09 +00:00
outputs =
{ nixpkgs, flake-utils, ... }:
flake-utils.lib.eachDefaultSystem (
2024-05-13 18:11:09 +00:00
system:
let
2024-06-12 16:02:55 +00:00
pkgs = nixpkgs.legacyPackages.${system};
2024-05-13 18:11:09 +00:00
in
{
devShells.default = pkgs.mkShell {
buildInputs = with pkgs; [
# generic
gnumake
gnutar
zip
tree
2024-05-13 18:11:09 +00:00
# frontend
2024-06-12 16:02:55 +00:00
nodejs_20
pnpm
2024-05-13 18:11:09 +00:00
nodePackages.typescript
nodePackages.typescript-language-server
# backend
2024-06-12 16:02:55 +00:00
go_1_22
glibc.static
2024-05-13 18:11:09 +00:00
gofumpt
golangci-lint
go-mockery
protobuf
sqlite
go-swag # for generate-openapi
addlicense
protoc-gen-go
protoc-gen-go-grpc
gcc
2024-05-13 18:11:09 +00:00
];
2024-06-12 16:02:55 +00:00
CFLAGS = "-I${pkgs.glibc.dev}/include";
LDFLAGS = "-L${pkgs.glibc}/lib";
2024-05-13 18:11:09 +00:00
};
}
);
}