evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / by-name / fi / fits-cloudctl / package.nix
blobe4c56659c733244f9ed4b49c46c469297fb0d829
1 { lib
2 , buildGoModule
3 , fetchFromGitHub
4 }:
6 buildGoModule rec {
7   pname = "fits-cloudctl";
8   version = "0.12.21"; # also update these 3 vars:
9   gitversion = "tags/v0.12.21-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
13   src = fetchFromGitHub {
14     owner = "fi-ts";
15     repo = "cloudctl";
16     rev = "v${version}";
17     hash = "sha256-O3wX7IW2puMg0xhOf9BUfxzCMCKHxtPJxOCpc+wY0Ao=";
18   };
20   vendorHash = "sha256-YSWO7Y9qtqCWfAMnzSMOWlXezjnggMLV8xF42vgOS7s=";
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   ];
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   };