1{
2 lib,
3 buildGoModule,
4 fetchFromGitHub,
5 stdenv,
6}:
7
8buildGoModule rec {
9 pname = "ali";
10 version = "0.7.5";
11
12 src = fetchFromGitHub {
13 owner = "nakabonne";
14 repo = "ali";
15 tag = "v${version}";
16 hash = "sha256-/pdHlI20IzSTX2pnsbxPiJiWmOCbp13eJWLi0Tcsueg=";
17 };
18
19 vendorHash = "sha256-YWx9K04kTMaI0FXebwRQVCt0nxIwZ6xlbtI2lk3qp0M=";
20
21 meta = {
22 description = "Generate HTTP load and plot the results in real-time";
23 homepage = "https://github.com/nakabonne/ali";
24 changelog = "https://github.com/nakabonne/ali/releases/tag/v${version}";
25 license = lib.licenses.mit;
26 platforms = lib.platforms.linux ++ lib.platforms.darwin;
27 maintainers = with lib.maintainers; [ farcaller ];
28 mainProgram = "ali";
29 # Broken on darwin for Go toolchain > 1.22, with error:
30 # 'link: golang.org/x/net/internal/socket: invalid reference to syscall.recvmsg'
31 broken = stdenv.hostPlatform.isDarwin;
32 };
33}