2024-05-13 20:11:09 +02:00
|
|
|
{
|
2024-05-13 21:57:36 +02:00
|
|
|
inputs = {
|
2024-06-12 18:02:55 +02:00
|
|
|
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
|
2024-05-13 21:57:36 +02:00
|
|
|
flake-utils.url = "github:numtide/flake-utils";
|
|
|
|
};
|
2024-05-13 20:11:09 +02:00
|
|
|
|
|
|
|
outputs =
|
2024-05-13 21:57:36 +02:00
|
|
|
{ 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
|
2024-07-14 22:59:45 +02:00
|
|
|
zip
|
2024-07-18 22:54:29 +02:00
|
|
|
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
|
2024-07-12 18:37:02 +02:00
|
|
|
sqlite
|
2024-10-27 05:00:18 +02:00
|
|
|
go-swag # for generate-swagger
|
|
|
|
addlicense
|
|
|
|
protoc-gen-go
|
|
|
|
protoc-gen-go-grpc
|
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
|
|
|
};
|
|
|
|
}
|
|
|
|
);
|
|
|
|
}
|