1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2024-11-30 08:06:52 +02:00
woodpecker/flake.nix

43 lines
930 B
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
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
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
};
}
);
}