lol
1{ lib
2, buildGoModule
3, fetchFromGitHub
4}:
5
6buildGoModule rec {
7 pname = "fits-cloudctl";
8 version = "0.12.19"; # also update these 3 vars:
9 gitversion = "tags/v0.12.19-0-g0a0d89a"; # git describe --long --all
10 gitsha = "0a0d89a8"; # git rev-parse --short=8 HEAD
11 gittime = "2024-05-15T17:34:46+02:00"; # date --iso-8601=seconds
12
13 src = fetchFromGitHub {
14 owner = "fi-ts";
15 repo = "cloudctl";
16 rev = "v${version}";
17 hash = "sha256-4R+wBjlCjk/7/iucC3zptrQ5D5wtQeqdeyfJ1DiFusY=";
18 };
19
20 vendorHash = "sha256-mK10DxDUrEkCdumq6MM6h7B8C8P1hGE466ko3yj1kto=";
21
22 ldflags = [
23 "-X github.com/metal-stack/v.Version=${version}"
24 "-X github.com/metal-stack/v.Revision=${gitversion}"
25 "-X github.com/metal-stack/v.GitSHA1=${gitsha}"
26 "-X github.com/metal-stack/v.BuildDate=${gittime}"
27 ];
28
29 meta = with lib; {
30 description = "Command-line client for FI-TS Finance Cloud Native services";
31 homepage = "https://github.com/fi-ts/cloudctl";
32 license = licenses.mit;
33 maintainers = with maintainers; [ j0xaf ];
34 mainProgram = "cloudctl";
35 };
36}