mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-22 16:36:30 +00:00
47 lines
1 KiB
Nix
47 lines
1 KiB
Nix
{
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
|
|
flake-utils.url = "github:numtide/flake-utils";
|
|
};
|
|
|
|
outputs =
|
|
{ nixpkgs, flake-utils, ... }:
|
|
flake-utils.lib.eachDefaultSystem (
|
|
system:
|
|
let
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
|
in
|
|
{
|
|
devShells.default = pkgs.mkShell {
|
|
buildInputs = with pkgs; [
|
|
# generic
|
|
gnumake
|
|
gnutar
|
|
zip
|
|
tree
|
|
|
|
# frontend
|
|
nodejs_20
|
|
pnpm
|
|
nodePackages.typescript
|
|
nodePackages.typescript-language-server
|
|
|
|
# backend
|
|
go_1_22
|
|
glibc.static
|
|
gofumpt
|
|
golangci-lint
|
|
go-mockery
|
|
protobuf
|
|
sqlite
|
|
go-swag # for generate-swagger
|
|
addlicense
|
|
protoc-gen-go
|
|
protoc-gen-go-grpc
|
|
];
|
|
CFLAGS = "-I${pkgs.glibc.dev}/include";
|
|
LDFLAGS = "-L${pkgs.glibc}/lib";
|
|
};
|
|
}
|
|
);
|
|
}
|