nixpkgs/pkgs/development/tools/continuous-integration/drone-cli/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
739 B
Nix
Raw Normal View History

{ lib, fetchFromGitHub, buildGoModule }:
2021-07-17 17:56:23 +00:00
buildGoModule rec {
2022-01-11 06:34:26 +00:00
version = "1.5.0";
pname = "drone-cli";
revision = "v${version}";
2022-02-11 20:27:37 +00:00
vendorSha256 = "0hh079qvxs4bcf0yy42y6sb303wxxam5h2mz56irdl0q2vqkk0f0";
2019-10-06 19:31:23 +00:00
doCheck = false;
2022-02-11 20:27:37 +00:00
patches = [ ./0001-use-different-upstream-for-gomod.patch ];
2021-08-21 08:23:48 +00:00
ldflags = [
"-X main.version=${version}"
];
src = fetchFromGitHub {
2022-02-11 20:27:37 +00:00
owner = "harness";
repo = "drone-cli";
rev = revision;
2022-01-11 06:34:26 +00:00
sha256 = "sha256-TFIGKTVrAMSOFEmu3afdDKBgyEwF2KIv3rt1fS6rCxw=";
};
meta = with lib; {
2021-10-18 15:59:41 +00:00
mainProgram = "drone";
2022-02-11 20:27:37 +00:00
maintainers = with maintainers; [ techknowlogick ];
license = licenses.asl20;
description = "Command line client for the Drone continuous integration server";
};
}