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

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

  vendorSha256 = "sha256-v2ijRZ5xvYkL3YO7Xfgalzxzd9C5BKdaQF7VT5UoqOk=";

  doCheck = false;

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

  src = fetchFromGitHub {
    owner = "drone";
    repo = "drone-cli";
    rev = revision;
    sha256 = "sha256-+70PWHGd8AQP6ih0b/+VOIbJcF8tSOAO9wsGqQWX+bU=";
  };

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