c594a97518
GitOrigin-RevId: 301aada7a64812853f2e2634a530ef5d34505048
31 lines
738 B
Nix
31 lines
738 B
Nix
{ lib, fetchFromGitHub, buildGoModule }:
|
|
|
|
buildGoModule rec {
|
|
version = "1.6.0";
|
|
pname = "drone-cli";
|
|
revision = "v${version}";
|
|
|
|
vendorSha256 = "sha256-0vHOPuSn7eczlUeCTz+SOMuDdRQTzw/TnH1rt/ltWOQ=";
|
|
|
|
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-TVOj1C5X3fTRZF29hId13LjkkwaAFntlozpmYVUfVJI=";
|
|
};
|
|
|
|
meta = with lib; {
|
|
mainProgram = "drone";
|
|
maintainers = with maintainers; [ techknowlogick ];
|
|
license = licenses.asl20;
|
|
description = "Command line client for the Drone continuous integration server";
|
|
};
|
|
}
|