2022-02-18 16:42:24 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2019-06-30 20:00:21 +01:00
|
|
|
|
2022-02-18 16:42:24 +00:00
|
|
|
buildGoModule rec {
|
2019-06-30 20:00:21 +01:00
|
|
|
pname = "gsctl";
|
2022-02-18 16:42:24 +00:00
|
|
|
version = "1.1.4";
|
2019-06-30 20:00:21 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "giantswarm";
|
|
|
|
repo = pname;
|
2022-02-18 16:42:24 +00:00
|
|
|
rev = version;
|
|
|
|
sha256 = "sha256-uCNWgaLZMm1vPxFduj8mpjKYuYlp1ChF6bK+bmAWy50=";
|
2019-06-30 20:00:21 +01:00
|
|
|
};
|
|
|
|
|
2022-02-18 16:42:24 +00:00
|
|
|
vendorSha256 = "sha256-lZgHrQYqoyoM1Iv6vCqTMcv62zSKyxaAsq56kUXHrIA=";
|
|
|
|
|
|
|
|
ldflags =
|
|
|
|
[ "-s" "-w" "-X github.com/giantswarm/gsctl/buildinfo.Version=${version}" ];
|
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-06-30 20:00:21 +01:00
|
|
|
description = "The Giant Swarm command line interface";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/giantswarm/gsctl";
|
2019-06-30 20:00:21 +01:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ joesalisbury ];
|
|
|
|
};
|
|
|
|
}
|