1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2024-12-06 08:16:19 +02:00
woodpecker/flake.nix

49 lines
1.1 KiB
Nix
Raw Normal View History

2024-05-13 20:11:09 +02:00
{
inputs = {
2024-06-12 18:02:55 +02:00
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
2024-05-13 20:11:09 +02:00
outputs =
{ nixpkgs, flake-utils, ... }:
flake-utils.lib.eachDefaultSystem (
2024-05-13 20:11:09 +02:00
system:
let
2024-06-12 18:02:55 +02:00
pkgs = nixpkgs.legacyPackages.${system};
2024-05-13 20:11:09 +02:00
in
{
devShells.default = pkgs.mkShell {
buildInputs = with pkgs; [
# generic
gnumake
gnutar
zip
tree
2024-05-13 20:11:09 +02:00
# frontend
2024-06-12 18:02:55 +02:00
nodejs_20
pnpm
2024-05-13 20:11:09 +02:00
nodePackages.typescript
nodePackages.typescript-language-server
# backend
2024-06-12 18:02:55 +02:00
go_1_22
glibc.static
2024-05-13 20:11:09 +02: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 20:11:09 +02:00
];
2024-06-12 18:02:55 +02:00
CFLAGS = "-I${pkgs.glibc.dev}/include";
LDFLAGS = "-L${pkgs.glibc}/lib";
2024-05-13 20:11:09 +02:00
};
}
);
}