nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 fetchFromGitHub,
4 buildGoModule,
5}:
6
7buildGoModule rec {
8 version = "1.9.0";
9 pname = "drone-cli";
10 revision = "v${version}";
11
12 src = fetchFromGitHub {
13 owner = "harness";
14 repo = "drone-cli";
15 rev = revision;
16 hash = "sha256-XE0myh+PAl8JhoUhEdjdCe52vQo3NuA8/v/x+v5zHK4=";
17 };
18
19 vendorHash = "sha256-22sefx/2iLvVzN+6wJ7kbDFAv10PQNmWbia+HFzmaW8=";
20
21 # patch taken from https://patch-diff.githubusercontent.com/raw/harness/drone-cli/pull/179.patch
22 # but with go.mod changes removed due to conflict
23 patches = [ ./0001-use-builtin-go-syscerts.patch ];
24
25 ldflags = [
26 "-X main.version=${version}"
27 ];
28
29 meta = {
30 mainProgram = "drone";
31 maintainers = with lib.maintainers; [ techknowlogick ];
32 license = lib.licenses.asl20;
33 description = "Command line client for the Drone continuous integration server";
34 };
35}