1{
2 lib,
3 fetchFromGitLab,
4 buildGoModule,
5 stdenv,
6}:
7
8buildGoModule rec {
9 pname = "gitlab-release-cli";
10 version = "0.24.0";
11
12 src = fetchFromGitLab {
13 owner = "gitlab-org";
14 repo = "release-cli";
15 rev = "v${version}";
16 hash = "sha256-ivOyDctjDfA4iGhZ0UxHTQYQGSQuQYDxndSn+IpOaJQ=";
17 };
18
19 vendorHash = "sha256-UwDMRsWbk8rEv2d5FssIzCLby68YZULoxd3/JGLsCQU=";
20
21 checkFlags = lib.optionals stdenv.hostPlatform.isDarwin [
22 # Skip failing test
23 "-skip TestHTTPSCustomCA"
24 ];
25
26 meta = {
27 description = "Toolset to create, retrieve and update releases on GitLab";
28 homepage = "https://gitlab.com/gitlab-org/release-cli";
29 license = lib.licenses.mit;
30 maintainers = with lib.maintainers; [ kilimnik ];
31 mainProgram = "release-cli";
32 };
33}