1{
2 lib,
3 fetchFromGitHub,
4 buildGoModule,
5}:
6
7buildGoModule rec {
8 pname = "goat-cli";
9 version = "1.4.0";
10
11 src = fetchFromGitHub {
12 repo = "goat";
13 owner = "studio-b12";
14 rev = "v${version}";
15 hash = "sha256-7inoRBVR7zmt0jUFAGYjoYT2cdda0qgzyXLL+GiBFMg=";
16 };
17
18 vendorHash = "sha256-b/v27pHA9LcFe4TC/EpelJVSkAg4sq7b8p2gk0bWsQc=";
19
20 ldflags = [
21 "-s"
22 "-w"
23 "-X github.com/studio-b12/goat/internal/version.Version=${version}"
24 "-X github.com/studio-b12/goat/internal/version.CommitHash=${src.rev}"
25 ];
26
27 patches = [
28 ./mock-fix.patch
29 ];
30
31 # Checks currently fail because of an issue with github.com/studio-b12/goat/mocks
32 doCheck = false;
33
34 meta = {
35 description = "Integration testing tool for HTTP APIs using a simple script language";
36 homepage = "https://studio-b12.github.io/goat/";
37 license = lib.licenses.bsd3;
38 maintainers = with lib.maintainers; [ kashw2 ];
39 mainProgram = "goat";
40 };
41
42}