about summary refs log tree commit diff
path: root/pkgs/development/tools/continuous-integration/drone-cli/default.nix
blob: ac434fb9fdd55cfd9275efec14332c6906f50769 (plain) (blame)
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
{ lib, fetchFromGitHub, buildGoModule }:

buildGoModule rec {
  version = "1.5.0";
  pname = "drone-cli";
  revision = "v${version}";

  vendorSha256 = "0hh079qvxs4bcf0yy42y6sb303wxxam5h2mz56irdl0q2vqkk0f0";

  doCheck = false;

  patches = [ ./0001-use-different-upstream-for-gomod.patch ];

  ldflags = [
    "-X main.version=${version}"
  ];

  src = fetchFromGitHub {
    owner = "harness";
    repo = "drone-cli";
    rev = revision;
    sha256 = "sha256-TFIGKTVrAMSOFEmu3afdDKBgyEwF2KIv3rt1fS6rCxw=";
  };

  meta = with lib; {
    mainProgram = "drone";
    maintainers = with maintainers; [ techknowlogick ];
    license = licenses.asl20;
    description = "Command line client for the Drone continuous integration server";
  };
}