bcb2f287e1
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
36 lines
1.1 KiB
Nix
36 lines
1.1 KiB
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "fits-cloudctl";
|
|
version = "0.12.20"; # also update these 3 vars:
|
|
gitversion = "tags/v0.12.20-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
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "fi-ts";
|
|
repo = "cloudctl";
|
|
rev = "v${version}";
|
|
hash = "sha256-WDqdp9E9O6nzwLJNwljV2FcgTqdEVVRppOeNxrSrBv8=";
|
|
};
|
|
|
|
vendorHash = "sha256-18iCTv0H9X3IccWsTD44qEEt9nXnq/En5zoqEwkC8Bs=";
|
|
|
|
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}"
|
|
];
|
|
|
|
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 ];
|
|
mainProgram = "cloudctl";
|
|
};
|
|
}
|