2024-05-13 18:11:09 +00:00
|
|
|
{
|
|
|
|
# Override nixpkgs to use the latest set of node packages
|
2024-05-13 19:57:36 +00:00
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "github:NixOS/nixpkgs/master";
|
|
|
|
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
|
|
|
|
pkgs = import nixpkgs { inherit system; };
|
|
|
|
in
|
|
|
|
{
|
|
|
|
devShells.default = pkgs.mkShell {
|
|
|
|
buildInputs = with pkgs; [
|
|
|
|
# generic
|
|
|
|
gnumake
|
|
|
|
gnutar
|
|
|
|
|
|
|
|
# frontend
|
|
|
|
nodejs
|
|
|
|
nodePackages.pnpm
|
|
|
|
nodePackages.typescript
|
|
|
|
nodePackages.typescript-language-server
|
|
|
|
|
|
|
|
# backend
|
|
|
|
go
|
|
|
|
gofumpt
|
|
|
|
golangci-lint
|
|
|
|
go-mockery
|
|
|
|
protobuf
|
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
);
|
|
|
|
}
|