summaryrefslogtreecommitdiffstats
path: root/pkgs/by-name/go/goat-cli/package.nix
blob: 0098ab06028edbb524464024ac0b0268b8e85aff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
{
  lib,
  fetchFromGitHub,
  buildGoModule,
}:

buildGoModule (finalAttrs: {
  pname = "goat-cli";
  version = "1.4.0";

  src = fetchFromGitHub {
    repo = "goat";
    owner = "studio-b12";
    rev = "v${finalAttrs.version}";
    hash = "sha256-7inoRBVR7zmt0jUFAGYjoYT2cdda0qgzyXLL+GiBFMg=";
  };

  vendorHash = "sha256-b/v27pHA9LcFe4TC/EpelJVSkAg4sq7b8p2gk0bWsQc=";

  ldflags = [
    "-s"
    "-w"
    "-X github.com/studio-b12/goat/internal/version.Version=${finalAttrs.version}"
    "-X github.com/studio-b12/goat/internal/version.CommitHash=${finalAttrs.src.rev}"
  ];

  patches = [
    ./mock-fix.patch
  ];

  # Checks currently fail because of an issue with github.com/studio-b12/goat/mocks
  doCheck = false;

  meta = {
    description = "Integration testing tool for HTTP APIs using a simple script language";
    homepage = "https://studio-b12.github.io/goat/";
    license = lib.licenses.bsd3;
    maintainers = with lib.maintainers; [ kashw2 ];
    mainProgram = "goat";
  };

})