2024-05-13 18:11:09 +00:00
|
|
|
{
|
2024-05-13 19:57:36 +00:00
|
|
|
inputs = {
|
2024-06-12 16:02:55 +00:00
|
|
|
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
|
2024-05-13 19:57:36 +00:00
|
|
|
flake-utils.url = "github:numtide/flake-utils";
|
|
|
|
};
|
2024-05-13 18:11:09 +00:00
|
|
|
|
|
|
|
outputs =
|
2024-05-13 19:57:36 +00:00
|
|
|
{ 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
|
2024-07-14 20:59:45 +00:00
|
|
|
zip
|
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
|
2024-07-12 16:37:02 +00:00
|
|
|
sqlite
|
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
|
|
|
};
|
|
|
|
}
|
|
|
|
);
|
|
|
|
}
|