2021-09-22 15:38:15 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
2021-09-18 10:52:07 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "fits-cloudctl";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "0.12.19"; # also update these 3 vars:
|
|
|
|
gitversion = "tags/v0.12.19-0-g0a0d89a"; # git describe --long --all
|
|
|
|
gitsha = "0a0d89a8"; # git rev-parse --short=8 HEAD
|
|
|
|
gittime = "2024-05-15T17:34:46+02:00"; # date --iso-8601=seconds
|
2021-09-18 10:52:07 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "fi-ts";
|
|
|
|
repo = "cloudctl";
|
|
|
|
rev = "v${version}";
|
2024-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-4R+wBjlCjk/7/iucC3zptrQ5D5wtQeqdeyfJ1DiFusY=";
|
2021-09-18 10:52:07 +00:00
|
|
|
};
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
vendorHash = "sha256-mK10DxDUrEkCdumq6MM6h7B8C8P1hGE466ko3yj1kto=";
|
2021-09-18 10:52:07 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
ldflags = [
|
|
|
|
"-X github.com/metal-stack/v.Version=${version}"
|
|
|
|
"-X github.com/metal-stack/v.Revision=${gitversion}"
|
|
|
|
"-X github.com/metal-stack/v.GitSHA1=${gitsha}"
|
|
|
|
"-X github.com/metal-stack/v.BuildDate=${gittime}"
|
|
|
|
];
|
|
|
|
|
2021-09-18 10:52:07 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Command-line client for FI-TS Finance Cloud Native services";
|
|
|
|
homepage = "https://github.com/fi-ts/cloudctl";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ j0xaf ];
|
2021-09-22 15:38:15 +00:00
|
|
|
mainProgram = "cloudctl";
|
2021-09-18 10:52:07 +00:00
|
|
|
};
|
|
|
|
}
|